將python包發佈到pypi上
1.首先在pypi上註冊用戶(參考官網流程即可)
2.在開發機 ~/.pypirc中加入如下內容
[distutils]
index-servers=
pypi
pypitest
[pypitest]
repository = https://testpypi.python.org/pypi
username = <your user name goes here>
password = <your password goes here>
[pypi]
repository = https://pypi.python.org/pypi
username = <your user name goes here>
password = <your password goes here>
3.可以先將包發到test上,看看發佈下載是否正確
python setup.py register -r https://testpypi.python.org/pypi
python setup.py sdist upload -r https://testpypi.python.org/pypi
4.發佈到pypi上,只要更改上一步中-r後邊的內容即可