Skip to content

docs: prefer Trusted Publishing for production releases - #13

Open
harshitethic wants to merge 1 commit into
mainfrom
docs/1888-prefer-trusted-publishing
Open

harshitethic wants to merge 1 commit into
mainfrom
docs/1888-prefer-trusted-publishing

Conversation

@harshitethic

@harshitethic harshitethic commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner

Addresses pypa#1888.

The packaging tutorial currently teaches API-token uploads and then carries that same manual Twine flow into the real-PyPI next steps. That is useful for TestPyPI, but it makes the long-lived-token path look like the default recommendation for ongoing releases.

This change:

  • keeps the existing manual TestPyPI flow intact;
  • explains why the tutorial still uses an API token there;
  • recommends Trusted Publishing for automated production releases;
  • links directly to the GitHub Actions publishing guide;
  • keeps Twine + API token documented as the one-off/manual fallback.

The goal is to change the recommendation without making the beginner tutorial depend on CI just to complete its TestPyPI exercise.


📚 Documentation preview 📚: https://python-packaging-user-guide--13.org.readthedocs.build/en/13/

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