Increase version number using bump-my-version
.
Warning
The same version cannot be uploaded twice! So always bump the version before pushing! So if you push commits without having increased the version, the GitHub Action will fail.
# Install bump-my-version
pip i -r requirements.txt
# Bump version
# bump-my-version bump <patch|minor|major> <config-files>
bump-my-version bump patch pyproject.toml
Note
bump-my-version
will update the version and create a commit and a tag for the new version.
This commit can be pushed to upload a new version of the library to the respective package index (test / prod).
Push to develop
branch and see new version on TestPyPI
Push to main
branch and see new version on PyPI