Nice tutorial on howto automatically publish your Python module on PyPi via Travis CI.
However you need to change the server address for the test deployment to:
https://test.pypi.org/legacy
R. Okuta, Y. Unno, D. Nishino, S. Hido, und C. Loomis. Proceedings of Workshop on Machine Learning Systems (LearningSys) in The Thirty-first Annual Conference on Neural Information Processing Systems (NIPS), (2017)