The steps shown here are for Ubuntu/MacOS.
- Make sure the docs build with Sphinx, using
make htmlinside thedocsdirectory withsphinxandsphinx_rtd_themeinstalled. Also test the examples withmake doctest. - Bump version inside the
pyproject.tomlfile. - Update
CHANGELOG.md: Convertunreleasedsection into version section with date and newunreleasedsection. - 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
- Build the package using
uv build - Upload to package to PyPi using
uv publish. You might also need to authenticate, for example by passing--token <your token>to the command.
- Create new release on
GitHubbased on the release branch. This also creates a tag.