Using twine : https://twine.readthedocs.io/en/latest/
- Update the
__version__
inutoken/__init__.py
Clearrm -r build dist *.egg-info
if those dir exist. - Build ::
$ python setup.py sdist bdist_wheel
wheresdist
is source code;bdist_wheel
is universal ie. for all platforms - Upload to testpypi ::
$ twine upload -r testpypi dist/*
- Upload to pypi ::
$ twine upload -r pypi dist/*
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>