-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
poetry publish - prompting for password during CI builds #1843
Comments
I am seeing broken password behavior as well, in two different ways on two different versions (on Ubuntu xenial, python 3.6) == 1.0.0:
This hangs, despite the initial configuration. Similarly, when I use the SCREAM_CASE environment variables: POETRY_HTTP_BASIC_YYYY_USERNAME/PASSWORD, it does not work. |
Wanted to drop in and note that I am seeing this same issue inconsistently as well. We have poetry setup in our AWS Code Build system. On three builds that were run at the same time two succeeded and one failed. This only appears for us when we go to version 1.0.0. We have not reproduced this issue on 0.12.17. (Our current work around is to version lock to 0.12.17) I was thinking that it might be related to: 1600 But it appears adding the environment Variable "PYTHONIOENCODING" to "utf-8". Did not change the behavior. This is how we set the credentials:
This is how the error is presenting itself to us:
|
Can report I am seeing the same behavior with our builds on Travis. Link to the build: https://travis-ci.org/4dn-dcic/utils/builds/634790461 Python = 3.5.6 Relevant Log
|
The issue is likely to be the one reported in #1600. Having only the chainer and fail keyring backends leads to the password not being stored anywhere and no error being produced, other than poetry asking for the password again when required (which is not the behavior prior to the introduction of the keyring). You can confirm this by looking at the file This issue seems resolved with |
For anyone looking at this looking for an immediate solution without updating, you can pass the username and password to
|
#1600 is fixed now, so this issue might be resolved, too -- can you upgrade to |
Looks like it works with 1.0.2! before_install:
# Install with vendored dependencies, so they don't interact with our project's dependencies
- curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py > /tmp/get-poetry.py
- python /tmp/get-poetry.py -y --version 1.0.2
- export PATH=$HOME/.poetry/bin:$PATH |
Is this really fixed? I still see the same behavior. With:
Bitbucket Pipelines complains:
|
I have the exact same issue as @ypicard above.
|
Same issue in docker build here, on |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
poetry publish
seems to be looking for a password that should exist, but can't be found. Perhaps it's not being stored properly bypoetry config
, or perhaps it's not being looked for in the right location.On local macos:
Contents of my auth.toml, leftover from when I was on 0.12.13
Then I run
poetry config http-basic.my-pypi foo bar
and the password poofs from the file.
Locally on macos this is fine, because apparently the password is stored in the keychain app and poetry will ask for permission to pull it out of there when it needs to.
On travisci
there is no keychain app, so I'm seeing a
poetry publish
call hang on aPassword:
prompt because I presume in the absence of a Keychain-ish app the password isn't being saved anywhere that poetry can pull it from.I saw this possibly related PR #1788
Would that code fix this problem? If so, we could use a patch release because currently 1.0.0 is breaking the ability to publish of packages from Travis CI where it's necessary to rely on the
poetry config http-basic.my-pypi $U $P
command to set auth values thatpoetry publish
knows how to lookup.The text was updated successfully, but these errors were encountered: