Skip to content

Instantly share code, notes, and snippets.

@ericoporto
Last active October 10, 2016 21:23
Show Gist options
  • Save ericoporto/1af4221c3f68980dd3404434ee168794 to your computer and use it in GitHub Desktop.
Save ericoporto/1af4221c3f68980dd3404434ee168794 to your computer and use it in GitHub Desktop.
Just to remember how to make releases to PyPI

FIX THE VERSION IN THE CODE

#taging to later create release
git tag 0.1.0 -m "My first tag."
git push --tags origin master

#submit to tests
python3 setup.py register -r pypitest
python3 setup.py sdist upload -r pypitest

#submit to real PyPI
python3 setup.py register -r pypi
python3 setup.py sdist upload -r pypi

## how to install a package from testing:

pip3 install --extra-index-url https://testpypi.python.org/pypi packagename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment