The release is automated using tbump. So, to create a new release:
pip install .[release](preferably inside a virtualenv)
That’s it, the package should then be available on PyPI.
As part of the previous step, a GitHub release is created since a new tag is pushed. That’s automated using GitHub actions.
For the documentation, it is built automatically on every commit to the main branch. It can be found here.
Manual Release Steps
This is kept as docs in case the release flow needs to change or someone new is trying to understand what’s going on to make some change or improve it.
pip install .[release]
update the changelog:
replace unreleased with the current version and date
create a new unreleased section at the top.
update the version in
create a tag with the new version as
publish release to pypi: the command
flit publishtakes care of that.
build the docs
create a new release on GitHub.