pip install --upgrade setuptools wheel
python setup.py sdist bdist_wheel
This requires a configured ~/.pypirc
file:
[distutils]
index-servers =
pypi
pypitest
[pypi]
username = __token__
password = pypi-TOKEN_FROM_PYPI_WEBSITE
pip install --upgrade twine
python -m twine upload --repository pypi dist/*
python setup.py sdist bdist_wheel
python -m twine upload --repository pypi dist/*