python -m build
twine check dist/*
Generate an API token at https://pypi.org/manage/account/ and then save the following to $HOME/.pypirc
:
[distutils]
index-servers =
py3createtorrent
[py3createtorrent]
repository = https://upload.pypi.org/legacy/
username = __token__
password = <INSERT API TOKEN HERE>
twine upload --skip-existing --repository py3createtorrent dist/*
twine upload --skip-existing --repository testpypi dist/*
pip install py3createtorrent
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple py3createtorrent