Prep work for PyPI uploads

This adds a rule to upload to PyPI, which also runs the testsuite from packaged files (using tox).