Skip to content

Configure automatic PyPI publishing using a Trusted Publisher#254

Open
Qup42 wants to merge 7 commits intoqlever-dev:mainfrom
Qup42:automatic_pypi_publishing
Open

Configure automatic PyPI publishing using a Trusted Publisher#254
Qup42 wants to merge 7 commits intoqlever-dev:mainfrom
Qup42:automatic_pypi_publishing

Conversation

@Qup42
Copy link
Collaborator

@Qup42 Qup42 commented Jan 23, 2026

PyPI Trusted Publisher is a mechanism where you configure a trusted workflow. The workflow is then able to publish the package to PyPI without requiring a token.

We could also update the version in the pyproject.toml to match the tag instead of checking that they match. This would also encourage the tags as the source of truth for the version. Experience has shown that tagging (and pushing the tag) is easily forgotten.

@Qup42 Qup42 requested a review from hannahbast January 23, 2026 20:49
Comment on lines +3 to +5
branches: [ main, automatic_pypi_publishing ]
#tags:
# - 'v*'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ToDo. Testing for now.

Comment on lines +51 to +52
with:
repository-url: https://test.pypi.org/legacy/ No newline at end of file
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ToDo: switch to prod PyPI registry

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