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

chore(Python): Fix release scripts #861

Merged
merged 21 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ phases:
exit 1;
fi
- cd AwsCryptographicMaterialProviders
# Build Dafny test source code
- make transpile_only_test_python
# Build Dafny source code
- make transpile_python
build:
commands:
- cd runtimes/python/
Expand All @@ -45,8 +45,7 @@ phases:
# Install project dependencies with release dependencies
- poetry install --with release
# Build whl/sdist, upload to PyPI
# TODO: When ready to prod release, uncomment this line
# tox -e release
- tox -e release

batch:
fast-fail: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ phases:
exit 1;
fi
- cd AwsCryptographicMaterialProviders
# Build Dafny test source code
- make transpile_only_test_python
# Build Dafny source code
- make transpile_python
build:
commands:
- cd runtimes/python/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ phases:
- NUM_RETRIES=3
# First, run tests with the published package
- cd AwsCryptographicMaterialProviders
- make transpile_python
- make transpile_only_test_python
- cd runtimes/python
- python -m pytest test/ -s -v
# Then, run ESDK local tests with the new MPL artifact installed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ phases:
exit 1;
fi
- cd AwsCryptographyPrimitives
# Build Dafny test source code
- make transpile_only_test_python
# Build Dafny source code
- make transpile_python
build:
commands:
- cd runtimes/python/
Expand All @@ -45,8 +45,7 @@ phases:
# Install project dependencies with release dependencies
- poetry install --with release
# Build whl/sdist, upload to PyPI
# TODO: When ready to prod release, uncomment this line
# tox -e release
- tox -e release

batch:
fast-fail: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ phases:
exit 1;
fi
- cd AwsCryptographyPrimitives
# Build Dafny test source code
- make transpile_only_test_python
# Build Dafny source code
- make transpile_python
build:
commands:
- cd runtimes/python/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ phases:
- NUM_RETRIES=3
- cd AwsCryptographyPrimitives
# Transpile code (for tests)
- make transpile_python
- make transpile_only_test_python
- cd runtimes/python
- python -m pytest test/ -s -v
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ phases:
exit 1;
fi
- cd ComAmazonawsDynamodb
# Build Dafny test source code
- make transpile_only_test_python
# Build Dafny source code
- make transpile_python
build:
commands:
- cd runtimes/python/
Expand All @@ -47,8 +47,7 @@ phases:
# Install project dependencies with release dependencies
- poetry install --with release
# Build whl/sdist, upload to PyPI
# TODO: When ready to prod release, uncomment this line
# tox -e release
- tox -e release

batch:
fast-fail: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ phases:
exit 1;
fi
- cd ComAmazonawsDynamodb
# Build Dafny test source code
- make transpile_only_test_python
# Build Dafny source code
- make transpile_python
build:
commands:
- cd runtimes/python/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ phases:
- NUM_RETRIES=3
- cd ComAmazonawsDynamodb
# Transpile code (for tests)
- make transpile_python
- make transpile_only_test_python
- cd runtimes/python
- python -m pytest test/ -s -v
7 changes: 3 additions & 4 deletions ComAmazonawsKms/codebuild/release-python/prod-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ phases:
exit 1;
fi
- cd ComAmazonawsKms
# Build Dafny test source code
- make transpile_only_test_python
# Build Dafny source code
- make transpile_python
build:
commands:
- cd runtimes/python/
Expand All @@ -45,8 +45,7 @@ phases:
# Install project dependencies with release dependencies
- poetry install --with release
# Build whl/sdist, upload to PyPI
# TODO: When ready to prod release, uncomment this line
# tox -e release
- tox -e release

batch:
fast-fail: true
Expand Down
4 changes: 2 additions & 2 deletions ComAmazonawsKms/codebuild/release-python/test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ phases:
exit 1;
fi
- cd ComAmazonawsKms
# Build Dafny test source code
- make transpile_only_test_python
# Build Dafny source code
- make transpile_python
build:
commands:
- cd runtimes/python/
Expand Down
2 changes: 1 addition & 1 deletion ComAmazonawsKms/codebuild/release-python/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ phases:
- NUM_RETRIES=3
- cd ComAmazonawsKms
# Transpile code (for tests)
- make transpile_python
- make transpile_only_test_python
- cd runtimes/python
- python -m pytest test/ -s -v
7 changes: 3 additions & 4 deletions StandardLibrary/codebuild/release-python/prod-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ phases:
exit 1;
fi
- cd StandardLibrary
# Build Dafny test source code
- make transpile_only_test_python
# Build Dafny source code
- make transpile_python
build:
commands:
- cd runtimes/python/
Expand All @@ -45,8 +45,7 @@ phases:
# Install project dependencies with release dependencies
- poetry install --with release
# Build whl/sdist, upload to PyPI
# TODO: When ready to prod release, uncomment this line
# tox -e release
- tox -e release

batch:
fast-fail: true
Expand Down
4 changes: 2 additions & 2 deletions StandardLibrary/codebuild/release-python/test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ phases:
exit 1;
fi
- cd StandardLibrary
# Build Dafny test source code
- make transpile_only_test_python
# Build Dafny source code
- make transpile_python
build:
commands:
- cd runtimes/python/
Expand Down
2 changes: 1 addition & 1 deletion StandardLibrary/codebuild/release-python/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ phases:
- NUM_RETRIES=3
- cd StandardLibrary
# Transpile code (for tests)
- make transpile_python
- make transpile_only_test_python
- cd runtimes/python
- python -m pytest test/ -s -v
Loading