📅  最后修改于: 2022-03-11 14:51:09.831000             🧑  作者: Mango
"""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/*