This document describes the process for releasing new versions of the flowtracks package.
We follow Semantic Versioning:
- MAJOR version when you make incompatible API changes
- MINOR version when you add functionality in a backward compatible manner
- PATCH version when you make backward compatible bug fixes
To bump the version, use the provided script:
# Bump the patch version (e.g., 1.0.1 -> 1.0.2)
python bump_version.py patch
# Bump the minor version (e.g., 1.0.1 -> 1.1.0)
python bump_version.py minor
# Bump the major version (e.g., 1.0.1 -> 2.0.0)
python bump_version.py major-
Make sure all your changes are committed and pushed to the repository.
-
Bump the version using the script above.
-
Commit the version change:
git add flowtracks/__init__.py git commit -m "Bump version to x.y.z" -
Create a tag for the new version:
git tag -a vx.y.z -m "Release version x.y.z" -
Push the changes and the tag:
git push origin master git push origin vx.y.z
-
GitHub Actions will automatically:
- Run tests on the tagged version
- Build the package
- Upload it to PyPI (if tests pass)
To enable automatic publishing to PyPI, you need to:
-
Create an API token on PyPI:
- Go to https://pypi.org/manage/account/
- Create an API token with scope "Upload to project"
-
Add the token as a secret in your GitHub repository:
- Go to your repository on GitHub
- Navigate to Settings > Secrets > Actions
- Create a new secret named
PYPI_API_TOKENwith the value of your PyPI token