Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skipping certain folders in release script #2258

Merged
merged 2 commits into from
Feb 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,21 @@ DISTDIR=dist
fi
)
done

(
cd $DISTDIR
for x in *.tar.gz ; do
for x in * ; do
# FIXME: Remove this logic once these packages are available in Pypi
if (echo "$x" | grep -Eq ^opentelemetry_(instrumentation_aiohttp_server|resource_detector_container).*(\.tar\.gz|\.whl)$); then
echo "Skipping $x because of erroneous uploads. See: https://github.com/open-telemetry/opentelemetry-python-contrib/issues/2053"
rm $x
# FIXME: Remove this once opentelemetry-resource-detector-azure package goes 1.X
elif (echo "$x" | grep -Eq ^opentelemetry_resource_detector_azure.*(\.tar\.gz|\.whl)$); then
echo "Skipping $x because of manual upload by Azure maintainers."
rm $x
# NOTE: We filter beta vs 1.0 package at this point because we can read the
# version directly from the .tar.gz file.
if (echo "$x" | grep -Eq ^opentelemetry_.*-0\..*\.tar\.gz$); then
# version directly from the .tar.gz/whl file
elif (echo "$x" | grep -Eq ^opentelemetry_.*-0\..*(\.tar\.gz|\.whl)$); then
:
else
echo "Skipping $x because it is not in pre-1.0 state and should be released using a tag."
Expand Down
Loading