Skip to content

Releasing to PyPI

Chris Brackert edited this page Sep 30, 2017 · 3 revisions

Increment version and build the release:

vim setup.py
rm -rf dist
python setup.py sdist bdist_wheel

Upload build files to PyPI (test first, then live)

twine upload -r pypitest dist/*
twine upload -r pypi dist/*

Note: If upload doesn't work, make sure ~/.pypirc is configured - https://packaging.python.org/guides/migrating-to-pypi-org/#uploading

Clone this wiki locally