Skip to content

Commit

Permalink
Fix build script to not release stable pkgs (#743)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanielRN authored Oct 15, 2021
1 parent b5d3074 commit f7256f5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ DISTDIR=dist
(
cd $DISTDIR
for x in *.tar.gz ; do
if [[ $x =~ ^opentelemetry-.*-1\.[0-9]+.*\.tar\.gz$ ]]; then
echo "Skipping $x because it is >=1.0 and should be released using a tag."
continue
# 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
pip wheel --no-deps $x
else
echo "Skipping $x because it is not in pre-1.0 state and should be released using a tag."
rm $x
fi
pip wheel --no-deps $x
done
)
)

0 comments on commit f7256f5

Please sign in to comment.