Skip to content

Instantly share code, notes, and snippets.

@dmentipl
Created August 26, 2019 00:20
Show Gist options
  • Save dmentipl/fd2fcab144427e5f4eb2f7358d2f8e13 to your computer and use it in GitHub Desktop.
Save dmentipl/fd2fcab144427e5f4eb2f7358d2f8e13 to your computer and use it in GitHub Desktop.
Uploading a Python package to PyPI

Uploading to PyPI

First need to create accounts with PyPI and TestPyPI.

Then:

python setup.py sdist bdist_wheel
twine check dist/*
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
twine upload dist/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment