Skip to content

Instantly share code, notes, and snippets.

@post2web
Created February 3, 2018 19:53
Show Gist options
  • Select an option

  • Save post2web/3f07719b45a80ec4eb4431f318ae0318 to your computer and use it in GitHub Desktop.

Select an option

Save post2web/3f07719b45a80ec4eb4431f318ae0318 to your computer and use it in GitHub Desktop.
update pip package
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/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment