Skip to content

Releasing new versions to PyPI

Romain Yon edited this page Apr 27, 2018 · 6 revisions
  1. Make sure you have the appropriate credentials in your ~/.pypirc.

Your ~/.pypirc file might look like this:

➜  cat ~/.pypirc
[distutils]
index-servers =
  pypi

[pypi]
repository: https://upload.pypi.org/legacy/
username: johndoe
password: definitelyagreatpassword
  1. Update and tag release
git commit --allow-empty -m "Release v?.?.?"
git tag ?.?.?
git push --tags origin master
  1. Double check that CircleCI build is happy

  2. Release to PyPI

python setup.py sdist upload -r pypi
Clone this wiki locally