python publish to pypi code example
Example: publish pypi
"""NOTE: Check for potential bugs or careless mistakes before uploading you work onto the
Python Package Index (PyPi)
"""
python3 -m pip install --upgrade twine setuptools
python3 setup.py sdist bdist_wheel
twine check dist/*
# Upload to test.pypi.org
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# Upload to "real" pypi.org
twine upload dist/*