-
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
Setting credentials through env. variable are not working #1807
Comments
I had a similar issue today. I spent a good part of my evening looking at poetry's source code. It seems, based on poetry's pyproject.toml, that poetry runs on anything python v2.7 thru v3.6. |
Nope, I was trying on python 3.7.5 and some 3.8, I think :( |
This isn't working on the most recent release, 1.0.8. |
I got the same error, but it was not related to the used python version. My mistake in a CI environment was exporting the environment variables TLDR:
|
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
I'm failing to use env. variables to set custom pypi credentials.
My pyproject.toml contains private pypi's like this:
I'm running this script:
and it fails with:
I investigated the code and it seems that credentials are never acquired separately from config, but always as a pair. That means that code never ask for
http-basic.nexus.password
andhttp-basic.nexus.username
, but forhttp-basic.nexus
then the value is used as a dict (search forpassword_manager.get_http_auth
usage). I could not find single test case, so I wrote one, fill free to use it:The text was updated successfully, but these errors were encountered: