Skip to content

Commit

Permalink
Merge branch 'main' into ajewell/interrupt
Browse files Browse the repository at this point in the history
  • Loading branch information
texastony authored Nov 14, 2024
2 parents e1206d1 + ac5b472 commit 5b04644
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ phases:
- git fetch --tags
- git checkout $COMMIT_ID
- FOUND_VERSION=$(sed -n 's/version = "\(.*\)"/\1/p' AwsCryptographicMaterialProviders/runtimes/python/pyproject.toml)
# Assert we are not releasing "aws-cryptographic-material-providers==10.0.0" to prod PyPI.
# A bad release has already been uploaded under this name/version to prod PyPI.
# This release has been deleted.
# Prod PyPI does not allow re-uploading a release under the same name/version.
- |
if expr ${FOUND_VERSION} == "10.0.0"; then
echo "Cannot release version 10.0.0"
exit 1;
fi
- |
if expr ${FOUND_VERSION} != ${VERSION}; then
echo "pyproject.toml version (${FOUND_VERSION}) does not match expected version (${VERSION}), stopping"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ phases:
- git fetch --tags
- git checkout $COMMIT_ID
- FOUND_VERSION=$(sed -n 's/version = "\(.*\)"/\1/p' AwsCryptographicMaterialProviders/runtimes/python/pyproject.toml)
# Assert we are not releasing "aws-cryptographic-material-providers==10.0.0" to prod PyPI.
# A bad release has already been uploaded under this name/version to prod PyPI.
# This release has been deleted.
# Prod PyPI does not allow re-uploading a release under the same name/version.
# (We do not need this assertion for other libraries in the MPL; this only applies to "aws-cryptographic-material-providers==10.0.0".)
- |
if expr ${FOUND_VERSION} == "10.0.0"; then
echo "Cannot release version 10.0.0"
exit 1;
fi
- |
if expr ${FOUND_VERSION} != ${VERSION}; then
echo "pyproject.toml version (${FOUND_VERSION}) does not match expected version (${VERSION}), stopping"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ phases:
# The actual test code must be from local, since we don't publish tests.
- pip install aws-cryptographic-material-providers==$VERSION
# Install ESDK-Python, override its requirements to force use of the just-published MPL version
- git clone -b mpl-reviewed https://github.com/aws/aws-encryption-sdk-python.git
- git clone -b master https://github.com/aws/aws-encryption-sdk-python.git
- cd aws-encryption-sdk-python
- sed -i "s/aws-cryptographic-material-providers.*/aws-cryptographic-material-providers==$VERSION/" requirements_mpl.txt
- cd ..
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ phases:
batch:
fast-fail: true
build-graph:
- identifier: release_to_staging
- identifier: release_to_prod
env:
image: aws/codebuild/standard:7.0
- identifier: validate_staging_release
- identifier: validate_prod_release
depend-on:
- release_to_staging
- release_to_prod
buildspec: ComAmazonawsDynamodb/codebuild/release-python/validate.yml
env:
variables:
Expand Down

0 comments on commit 5b04644

Please sign in to comment.