Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 800 Bytes

how-to-release.md

File metadata and controls

32 lines (24 loc) · 800 Bytes

Release instructions

Using twine : https://twine.readthedocs.io/en/latest/

  1. Update the __version__ in utoken/__init__.py
    Clear rm -r build dist *.egg-info if those dir exist.
  2. Build :: $ python setup.py sdist bdist_wheel
    where sdist is source code; bdist_wheel is universal ie. for all platforms
  3. Upload to testpypi :: $ twine upload -r testpypi dist/*
  4. Upload to pypi :: $ twine upload -r pypi dist/*

The .pypirc file

The rc file ~/.pypirc should have something like this

[distutils]
index-servers =
    pypi
    testpypi

[pypi]
repository: https://upload.pypi.org/legacy/
username: uhermjakob
password: <password_here>


[testpypi]
repository: https://test.pypi.org/legacy/
username: uhermjakob
password: <password_here>