Publishing Versions
It is recommended to use the automated workflow for releasing new versions of the package to Test PyPI.
-
Finish pull requests to the main branch and/or push your changes to the main branch. Make sure all changes you want in the new release are committed and pushed.
-
Update the package version according to semantic versioning practices. This will modify the
pyproject.tomlfile. If usinguv, you can do the following:uv version --bump patchuv version --bump minoruv version --bump major
-
Track the modified
pyproject.tomlfile in git.git add pyproject.toml.
-
Commit the updated
pyproject.tomlfile; the message starts withbumpand indicates the new version number.- For example:
git commit -m "bump v0.0.0".
- For example:
-
Push the finalised
pyproject.tomlto the repository.git push
-
Create a tag for the new version, starting with
v.- For example:
git tag v0.0.0
- For example:
-
Push the tag to the repository.
- For example:
git push origin v0.0.0
- For example:
-
Pushing a tag that starts with
vwill trigger the workflowpypi-release.yml