Releasing
Update the version in these two locations:
docs/source/conf.pypyproject.toml
Create a new branch and open a PR on GitHub which will run all actions
Apply any fixes to make the actions pass
Clean your local directory. This will prevent any files not under source control from being built into the distribution.
git clean -f -x
Build the wheel and source distributions:
python setup.py clean bdist_wheel sdist
Upload to Test PyPi
twine upload -r testpypi dist/* --verbose
Upload to PyPi
twine upload dist/*
Add a git tag
git tag -a v<major>.<minor>.<patch> -m "version <major>.<minor>.<patch>" git push origin <tagname>
Merge PR