You can run the tests using either system packages or a tox-generated virtualenv.
Using system packages makes test runs significantly faster.
If you are on a Debian-based system, install the relevant dependencies once with:
make dependencies
Then you can run tests with:
make
Using tox to run the tests is easier since you won't have to deal with not-packaged or not-recent-enough versions in your system, but it's also a tad slower. Just run:
tox
Tag and sign the new version:
git tag -s X.Y.Z
Upload to PyPI:
python3 setup.py sdist bdist_wheel upload -r pypi --sign -i <your key>