Brett Cannon on Nostr: Trusted publishing on #PyPI is great! https://docs.pypi.org/trusted-publishers/ Not ...
Trusted publishing on #PyPI is great! https://docs.pypi.org/trusted-publishers/
Not worrying about API tokens is very nice (I used to create a temporary token to upload via `twine`)! Now a release is a 3 step process:
1. Bump version (and I'm using CalVer for everything I push to PyPI, so that's easy to figure out)
2. Run the release workflow (example: https://github.com/brettcannon/microvenv/blob/main/.github/workflows/release.yml)
3. Create a GitHub release
I plan to automate away step 1 via PDM or Hatch. 😁 And I can automate drafting GH releases.
Not worrying about API tokens is very nice (I used to create a temporary token to upload via `twine`)! Now a release is a 3 step process:
1. Bump version (and I'm using CalVer for everything I push to PyPI, so that's easy to figure out)
2. Run the release workflow (example: https://github.com/brettcannon/microvenv/blob/main/.github/workflows/release.yml)
3. Create a GitHub release
I plan to automate away step 1 via PDM or Hatch. 😁 And I can automate drafting GH releases.