To set up a developer environment perform the following steps:
- Check out the source code and change into its folder.
- Set up the poetry environment:
poetry install
- Set up the pre-commit checks:
poetry run pre-commit install --install-hooks
To run the test suite:
poetry run pytest
- Update the version number in
pyproject.toml
:[tool.poetry] name = "sanpo" version = "0.x.x"
- Test and build the distribution archives:
$ poetry run pytest $ poetry build
- Tag a release (simply replace 0.9.x with the current version number):
$ git tag -a -m "Tag version 0.x.x" v0.x.x $ git push --tags
- Upload the release to PyPI:
$ poetry publish
- Publish the related GitHub release.