pip install -U pip setuptools twine
Edit ~/.pypirc and comment out or remove repository:
[pypi]
#repository:https://pypi.python.org/pypi
Use twine to upload your module to pypi from within the folder containing the module source, setup.py, and other files:
python setup.py sdist
twine upload dist/*