Skip to content

feat: publish releases to PyPI with trusted publishing - #3

Merged
mpetazzoni merged 1 commit into
mainfrom
max/chore/pypi-trusted-publishing
Nov 15, 2026
Merged

mpetazzoni merged 1 commit into
mainfrom
max/chore/pypi-trusted-publishing

Conversation

@mpetazzoni

@mpetazzoni mpetazzoni commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Why

Enable the existing PyPI Trusted Publisher registration for mpetazzoni/tslib, publish.yml, and environment pypi, without an API token.

What

  • Publish stable GitHub releases automatically, with a main-only manual dispatch for the already released tslib-2.0.
  • Download the exact release wheel/source archive and verify tag, filenames, SHA-256 digests, package name/version, and metadata before publishing.
  • Isolate OIDC permission to a publishing job with SHA-pinned actions; document release preparation and recovery.

Verification

  • 51 project tests, Ruff, and Twine checks pass locally on Python 3.11.
  • Parsed workflow structure, checked shell/Python syntax, and tested nine artifact-validation success/failure paths against the actual 2.0 release assets.
  • Independent reviewer agent unavailable due usage limit; manual review completed.
  • After merging, manual dispatch 43764551425 successfully published both 2.0 distributions via OIDC. PyPI hashes match GitHub assets; fresh Python 3.11 installation and CLI smoke tests pass.

GitHub environment pypi was created on first use without additional protection rules, as approved by Max. No credentials are stored, and no publication runs on PRs.

@mpetazzoni
mpetazzoni marked this pull request as ready for review November 15, 2026 21:35
@mpetazzoni
mpetazzoni merged commit 23e743a into main Nov 15, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant