The steps shown here are for Ubuntu/MacOS.
- Make sure the docs build with Sphinx, using
make html
inside thedocs
directory withsphinx
andsphinx_rtd_theme
installed. Also test the examples withmake doctest
. - Bump version inside the
pyproject.toml
file. - Update
CHANGELOG.md
: Convertunreleased
section into version section with date and newunreleased
section. - Run tests with
pytest .
- Run auto-formatter with
ruff format .
- Run linter with
ruff check .
- Wait for CI/CD results. This also runs the tests on different operating systems
- Delete existing distributions:
rm dist/*
- Build the package. Requires the
build
package:python3 -m build
- Upload the source and build distribution:
python3 -m twine upload dist/*
. You might require a PyPI upload token to do this.
- Create new release on
GitHub
based on the release branch. This also creates a tag.