-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backports fixes to pypi-publish from cryptography.
- Loading branch information
Showing
5 changed files
with
19 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,14 @@ jobs: | |
- run: echo "$EVENT_CONTEXT" | ||
env: | ||
EVENT_CONTEXT: ${{ toJson(github.event) }} | ||
|
||
- run: | | ||
echo "PYPI_URL=https://upload.pypi.org/legacy/" >> $GITHUB_ENV | ||
if: github.event_name == 'workflow_run' || (github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'pypi') | ||
- run: | | ||
echo "PYPI_URL=https://test.pypi.org/legacy/" >> $GITHUB_ENV | ||
if: github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'testpypi' | ||
- uses: dawidd6/action-download-artifact@bf251b5aa9c2f7eeb574a96ee720e24f801b7c11 # v6 | ||
with: | ||
path: tmpdist/ | ||
|
@@ -40,20 +48,13 @@ jobs: | |
- run: | | ||
find tmpdist/ -type f -name 'bcrypt*' -exec mv {} dist/ \; | ||
- run: | | ||
echo "PYPI_URL=https://pypi.org/legacy/" >> $GITHUB_ENV | ||
if: github.event_name == 'workflow_run' || (github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'pypi') | ||
- run: | | ||
echo "PYPI_URL=https://test.pypi.org/legacy/" >> $GITHUB_ENV | ||
if: github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'testpypi' | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/[email protected] | ||
uses: pypa/gh-action-pypi-publish@15c56dba361d8335944d31a2ecd17d700fc7bcbc # v1.12.2 | ||
with: | ||
repository-url: ${{ env.PYPI_URL }} | ||
skip-existing: true | ||
# Do not perform attestation for things for TestPyPI. This is | ||
# because there's nothing that would prevent a malicious PyPI from | ||
# serving a signed TestPyPI asset in place of a release intended for | ||
# PyPI. | ||
attestations: ${{ env.PYPI_URL == 'https://pypi.org/legacy/' }} | ||
attestations: ${{ env.PYPI_URL == 'https://upload.pypi.org/legacy/' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ build-backend = "setuptools.build_meta" | |
[project] | ||
name = "bcrypt" | ||
# When updating this, also update lib.rs | ||
version = "4.2.0" | ||
version = "4.2.1" | ||
authors = [ | ||
{name = "The Python Cryptographic Authority developers", email = "[email protected]"} | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters