Skip to content

Instantly share code, notes, and snippets.

@scionoftech
Created August 20, 2019 18:57
Show Gist options
  • Save scionoftech/f3405abf9daea0e4bf76403d9fd3ff2b to your computer and use it in GitHub Desktop.
Save scionoftech/f3405abf9daea0e4bf76403d9fd3ff2b to your computer and use it in GitHub Desktop.
How to publish python packages to pypi
# this will create archive files
python setup.py sdist
# install twine
pip install twine
# https://test.pypi.org
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# https://pypi.org
twine upload dist/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment