我有一個我已在Pypi上註冊的軟件包。最近我做了一個更新,並希望從0.6.1 - > 0.7.0增加版本。現在,如果我運行python setup.py sdist upload
,我收到一個錯誤:Upload failed (401): Incorrect password
。Pypi註冊和更新
我想我可能要重新註冊,但得到了類似的故障:
We need to know who you are, so please choose either:
1. use your existing login,
2. register as a new user,
3. have the server generate a new password for you (and email it to you), or
4. quit
我有:
python setup.py register
...
Server response (401): basic auth failed
嘗試註冊時,它不問我的正常問題沒有運氣與文件或任何其他幫助在線。我希望我不需要再次註冊該軟件包,但我無法弄清楚如何提供密碼,以便sdist upload
工作。
我已經通過沒有成功如下解讀:
http://guide.python-distribute.org/contributing.html
http://guide.python-distribute.org/quickstart.html
https://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/
這是非常有益的,但還是沒有得到我的解決方案:
http://peterdowns.com/posts/first-time-with-pypi.html
有什麼建議嗎?
是的,我有2個.pypirc文件。 D'哦! – Rico
好奇你怎麼能有2〜/ .pypirc文件?他們有不同的名字嗎? – nathancahill
一個在〜/目錄中,另一個在軟件包目錄中。當然,我正在編輯包級別文件。 – Rico