官方教程
https://packaging.python.org/tutorials/packaging-projects/
官方教程里有些有问题的地方,修改如下:
python3 -m pip install --user --upgrade setuptools wheel
改成
python3 -m pip install --upgrade setuptools wheel
python3 -m pip install --user --upgrade twine
改成
python3 -m pip install --upgrade twine
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
改成
twine upload dist/*