Skip to content

Commit

Permalink
chore(Python): Fix release scripts (#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmcdonald3 authored Oct 15, 2024
1 parent 61fddf8 commit 656d046
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 35 deletions.
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
2 changes: 1 addition & 1 deletion ComAmazonawsDynamodb/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 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

0 comments on commit 656d046

Please sign in to comment.