Skip to content

Commit

Permalink
Get version# in setup.py back in alignment with tag# (#131)
Browse files Browse the repository at this point in the history
* Get version# in setup.py back in alignment with tag#

* release pipeline detects if tag version != setup.py version
  • Loading branch information
graebm authored Feb 20, 2020
1 parent e4daed8 commit 2d19abb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions continuous-delivery/test-version-exists
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ if [ "$CURRENT_TAG" != "$CURRENT_TAG_VERSION" ]; then
exit 1
fi

SETUP_PY_VERSION=$(python setup.py --version)
if [ "$CURRENT_TAG" != "$SETUP_PY_VERSION" ]; then
echo "Current tag version does not match version in setup.py: $CURRENT_TAG != $SETUP_PY_VERSION"
exit 1
fi

if pip install --no-cache-dir -vvv awscrt==$CURRENT_TAG_VERSION; then
echo "$CURRENT_TAG_VERSION is already in pypi, cut a new tag if you want to upload another version."
exit 1
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def awscrt_ext():

setuptools.setup(
name="awscrt",
version="0.5.7",
version="0.5.11",
author="Amazon Web Services, Inc",
author_email="[email protected]",
description="A common runtime for AWS Python projects",
Expand Down

0 comments on commit 2d19abb

Please sign in to comment.