- You must have permission to publish to PyPI.
- Ensure the following tools are installed and up to date:
pip install --upgrade build twine
- Local git repository is clean.
git checkout main git pull origin main
A note on versioning:
PyTissueOptics uses
setuptools_scm, which automatically infers the package version from Git tags. Follow Semantic Versioning to tag releases asvMAJOR.MINOR.PATCH(e.g.,v2.0.1). Development versions are built from commits after the latest tag and look likev2.0.1.dev3+gabc123.d20251108.
git tag vX.Y.Z
git push origin vX.Y.Zrm -rf dist/
python -m buildpython -m twine upload dist/*Used to announce and document the changes in the new version.
- Go to the GitHub releases page
- Click on "Draft a new release"
- Select the tag you created earlier
- Fill in the release title and description (generate changelog from last tag).
- Click "Publish release"