Repository navigation
Publishing to Pypi.org
Brian Ruf edited this page Jul 12, 2026
·
2 revisions
Releases are published automatically to PyPI by GitHub Actions when a GitHub Release is created. No manual upload steps are required.
- A
pypienvironment configured in the GitHub repository settings - A Trusted Publisher configured on PyPI linking this repo's
publish.ymlworkflow to theruf-commonproject
In pyproject.toml, bump the version number following Semantic Versioning:
[project]
version = "X.Y.Z"git add pyproject.toml
git commit -m "Bump version to vX.Y.Z"
git pushhttps://github.com/brian-ruf/ruf-common-python/pulls
git tag vX.Y.Z
git push origin vX.Y.Z- Go to Releases → New release
- Select tag
vX.Y.Z - Set the title to
Version X.Y.Z - Add release notes summarizing the changes
- Click "Publish release"
Publishing the release triggers the publish.yml workflow, which builds the
package and uploads it to PyPI automatically.
- Workflow: https://github.com/brian-ruf/ruf-common-python/actions
- PyPI listing: https://pypi.org/project/ruf-common/
| Change type | Example | When to use |
|---|---|---|
Patch X.Y.Z+1
|
1.0.1 → 1.0.2
|
Bug fixes, no API changes |
Minor X.Y+1.0
|
1.0.2 → 1.1.0
|
New features, backward-compatible |
Major X+1.0.0
|
1.1.0 → 2.0.0
|
Breaking changes |