FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Release to PyPI using Trusted Publishing by hugovk · Pull Request #213 · python-humanize/humanize · GitHub

Release to PyPI using Trusted Publishing - #213

Merged
hugovk merged 1 commit into
python-humanize:mainfrom
hugovk:trusted-publishing
Oct 21, 2024
Merged

Release to PyPI using Trusted Publishing#213
hugovk merged 1 commit into
python-humanize:mainfrom
hugovk:trusted-publishing

Conversation

hugovk commented Oct 21, 2024

Copy link
Copy Markdown
Member

PyPI has introduced "Trusted Publishers", a method to release files from CI using OIDC and generated, short-lived tokens, rather than long-lived tokens on the developer's own machine. This is both safer, and makes releasing easier and more convenient.

https://docs.pypi.org/trusted-publishers/

This PR adds a workflow to deploy to PyPI for new GitHub releases.

It also deploys to Test PyPI on merges to main, to make sure the release machinery is well oiled.

I've set up the PyPIs.


PEP 740 ("Index support for digital attestations") introduces signatures which links the PyPI package to the GitHub repo, and helps users verify the source and authenticity of packages. This is only available with Trusted Publishing.

PyPI is still implementing support, but we can already start using it, which should also help them test out.

All we need to do to enable this is add:

        with:
          attestations: true

hugovk added the changelog: Added For new features label Oct 21, 2024
hugovk merged commit 82ca37d into python-humanize:main Oct 21, 2024
hugovk deleted the trusted-publishing branch October 21, 2024 18:34

hugovk commented Oct 21, 2024

Copy link
Copy Markdown
Member Author

hugovk mentioned this pull request Oct 21, 2024
13 tasks
This file contains hidden or 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog: Added For new features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL