As discussed, "I have a .travis.yml file that (hopefully) makes Travis-CI automatically deploy to PyPi and TestPyPi. Getting the conditions right to publish all tags matchhing X.X.X-rcX to pypi test, and tags matching X.X.X to pypi is a bit tricky. Time will tell whether it works as expected. I successfully tested it, but only without those exact conditions."
As discussed, "I have a .travis.yml file that (hopefully) makes Travis-CI automatically deploy to PyPi and TestPyPi. Getting the conditions right to publish all tags matchhing X.X.X-rcX to pypi test, and tags matching X.X.X to pypi is a bit tricky. Time will tell whether it works as expected. I successfully tested it, but only without those exact conditions."