dpl: PyPI deployments not working when "special" chars in password
It seems that some characters (I observed at least $ to cause this) in the PyPI password seem to break things, preventing deployments from working.
The error message when using such a password:
Uploading distributions to https://pypi.python.org/pypi
Uploading hydrachain-0.1.4-py2.py3-none-any.whl
HTTPError: 401 Client Error: You must be identified to edit package information for url: https://pypi.python.org/pypi
Plaintext or encrypted made no difference.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Reactions: 5
- Comments: 46 (9 by maintainers)
Commits related to this issue
- New password, without special chars. https://github.com/travis-ci/dpl/issues/377 — committed to arokem/nitime by arokem 8 years ago
- Updated PyPI password. Believe it or not, Travis cannot encrypt special characters: https://github.com/travis-ci/dpl/issues/377 — committed to openedx/edx-lint by nedbat 8 years ago
- changed password to remove special characters per travis bug (travis-ci/dpl#377) — committed to biocommons/biocommons.seqrepo by reece 8 years ago
- Updating PyPI password in Travis. See: https://github.com/travis-ci/dpl/issues/377 — committed to dhermes/ci-diff-helper by dhermes 8 years ago
- Fix PyPI password again This referes to https://github.com/travis-ci/dpl/issues/377 basically — committed to jazzband/django-axes by jezdez 8 years ago
- update travis ci PyPI password (due to https://github.com/travis-ci/dpl/issues/377) — committed to RDFLib/rdflib-sqlalchemy by adamhadani 8 years ago
- Attempting to get around an apparent issue with encrypted PyPi passwords and 401s that are happening when attempting to deploy there, per https://github.com/travis-ci/dpl/issues/377. I’ve updated the... — committed to Harvard-University-iCommons/dj-log-config-helper by bermudezjd 7 years ago
- This should release tagged commit on PyPi. Not sure I got the password encryption correctly though: https://github.com/travis-ci/dpl/issues/377 And apparently we will need to re-encrypt once we make... — committed to line/clova-cek-sdk-python by recamshak 6 years ago
- This should release tagged commit on PyPi. Not sure I got the password encryption correctly though: https://github.com/travis-ci/dpl/issues/377 And apparently we will need to re-encrypt once we make... — committed to line/clova-cek-sdk-python by recamshak 6 years ago
- Fix PyPI password again This referes to https://github.com/travis-ci/dpl/issues/377 basically — committed to simanto604newscred/django-axes by jezdez 8 years ago
- Fix PyPI password again This referes to https://github.com/travis-ci/dpl/issues/377 basically — committed to simanto604newscred/django-axes by jezdez 8 years ago
- :bug: pypi deploy password updated Fixes travis-ci/dpl#377 — committed to stefanitsky/yandex_market_language by stefanitsky 4 years ago
Running into this issue on Travis CI. Is the general consensus that we can only have alphanumeric characters in passwords used to deploy to PyPI? That feels a lot less safe IMHO, but maybe we could have the documentation say that at least.
I just ran into this issue as well (my password contained a
$). I tried encrypting the password using single-quotes in bash, but that didn’t solve the issue. I changed the password to exclude special characters and that worked.We just lost a number of hours to this problem as well. I reject the idea that it’s the same problem mentioned here: https://docs.travis-ci.com/user/encryption-keys#Note-on-escaping-certain-symbols That note is about the need to escape characters if you use them in a shell command line.
In our case, we were typing the characters into stdin, where there is no need to escape.
Running into this error as well:
https://travis-ci.org/danriti/python-traceview/jobs/103205722#L528
The strange thing is that this works when I deploy to the “test” pypi server (https://testpypi.python.org/pypi):
https://travis-ci.org/danriti/python-traceview/jobs/103205213#L514
But for some reason I can’t get this to work against production PyPI 😢