Steps for releasing a Python module to pypi and Debian:

- Check that Standards-Version is up to date with https://www.debian.org/doc/debian-policy/upgrading-checklist
- Check that versions in setup.py or setup.cfg and in debian/changelog match.
- dch -r; check that all changes are recorded in changelog.
- mkdeb
- sudo pbuilder update
- cd /tmp/package-version ; pdebuild
- python3 -m build
- debsign /tmp/package*source*changes
- dput /tmp/package*source*changes
- twine upload dist/*version* (or dist/*version*gz for source only distribution)
- git commit -am 'release <version>'
- git tag 'tags/version'
- git push --tags
- dch -i
- git commit -am 'released'
- git push
