-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTPError: 401 Client Error: You must be identified to edit package information for url: https://testpypi.python.org/pypi #233
Comments
I wonder if cat > ~/.pypirc << _EOF_
[testpypi]
repository = https://testpypi.python.org/pypi
username = ${TWINE_USERNAME}
password = ${TWINE_PASSWORD}
[pypi]
repository = https://upload.pypi.org/legacy/
username = ${TWINE_USERNAME}
password = ${TWINE_PASSWORD}
_EOF_ Would work in that script. The key is that instead of To be completely frank, though, I'm not sure why you're seeing this problem. |
I had already tried a variation of all those options before, but not this particular combination. I get a different error message now, which is more than I've been able to do all day. Thanks! Now it's This looks to be a distutils error message. Is it twine that reads the .pypirc file or distutils? Because if it's the latter, I should go bug someone else about this. Thanks for your help. Edit: forget I said anything, I was missing the [distutils] section, and am now back to our original error |
I found out what the problem was. My password contained symbols which should be escaped in the shell. This wasn't a problem in my (plaintext) local .pypirc, but on travis it was stored in an environment variable. I foolishly quoted my password to counteract this, only then the quotes were interpreted as part of the password apparently. I fixed it by changing my password to shell-safe one, rather than mucking about with backslashes. |
Same problem, there was a "$3" in the password, and it was interpreted as "third argument" xD |
I'm trying to set up automatic deployment with travis-ci but I keep running into this error no matter what I do:
HTTPError: 401 Client Error: You must be identified to edit package information for url: https://testpypi.python.org/pypi
.Relevant debugging steps
Links and information
The text was updated successfully, but these errors were encountered: