New versions are published to PyPI automatically via GitHub Actions when a new version tag is pushed to GitHub.
Follow these steps to release a new version:
- Update the version number in
setup.py and CHANGELOG.md. - Commit and push these changes to the GitHub repository.
- Create and push a new Git tag following the
vX.Y.Z format.
Once the tag is pushed, GitHub Actions will automatically run tests (on Python 3.9-3.13), build the package, publish it to PyPI, and create a GitHub Release with the source distribution.
Requirement: The repository must have a PYPI_API_TOKEN secret configured in its settings.
git tag v1.1.0
git push origin v1.1.0