- have poetry installed
- poetry is setup to use with PyPI (instructions)
- pull latest main
- checkout main
- run pytest. Do not continue if tests fail.
- run
poetry version {rule}
(command doc) to bump the version spec inpyproject.toml
acoording to the rule.- While in unstable verisoning schema (
0.*
) use following rules:patch
for patches (e.g., fixing stuff, upgrading dependencies to new patch or minor version)minor
for anything else
- While in unstable verisoning schema (
- update the
CITATION.cff
:- update the version number
- update the release date
- commit the changes made to
pyproject.toml
andCITATION.cff
- create a new tag containing the new version on this commit, prefixed with a "v" (e.g.,
v0.3.1
) - push the commit and the tag to
main
- use
poetry build
to build the package. The build artificats are usually found in (./dist
) - use
poetry publish
to publish to PyPI - On GitHub, create a new release from the version tag:
- Go to "releases"
- "Draft new release"
- choose the tag
- enter release title and patchnotes
- attach the build artifacts of this release
- "Set as latest release"
- Publish