Using twine : https://twine.readthedocs.io/en/latest/
- Update the
__version__
and__last_mod_date__
inuroman/uroman.py
andpyproject.toml
- Clear ::
$ rm -r dist
if it exists. - Build ::
$ python3 -m build
- Upload to testpypi ::
$ python3 -m twine upload --repository testpypi dist/*
- Upload to pypi ::
$ python3 -m twine upload --repository pypi dist/*
The rc file ~/.pypirc
should have something like this
[distutils]
index-servers =
pypi
testpypi
[pypi]
repository = https://upload.pypi.org/legacy/
username = __token__
password = <pypi password_here>
[testpypi]
repository: https://test.pypi.org/legacy/
username = __token__
password = <testpypi password_here>