Preparation python3 -m pip install --user --upgrade setuptools wheel python3 -m pip install --user --upgrade twine Distribution Build: python3 setup.py sdist bdist_wheel Distribute: * twine upload dist/* Preview * twine upload --repository-url https://test.pypi.org/legacy/ dist/* Preview Distribute github backup: 1. git tag 1.2.3 -m "tag for PyPI" 2. git push --tags remotename branchname