Skip to content

Releasing to PyPI

Chris Brackert edited this page Oct 3, 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

Install from test with:

pip install --index-url https://test.pypi.org/simple/ git-relations

Clone this wiki locally