-
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
HTTP basic auth for pulling from private repositories does not work #4389
Comments
Okay, WTF. The problem is the "name" section. When I change it to "artifactory" it suddenly works. |
@trallnag Can you please explain more in details what did you do to make it to work? Thanks. |
@javier-panichelli, here you go. It's not a bug or anything like that, I just did not understand how Poetry handles it. In the [[tool.poetry.source]]
name = "artifactory_my_repo"
url = "https://artifactory.bayer.com/artifactory/api/pypi/my-repo/simple" What is important is the To inject credentials for example via environment variables the variable names must contain the
|
Thank you a lot for your answer! I noted that I was using That didn't make it work, but after I added a single letter to the source name (and its variables counterparts), it worked! Not sure why, though... UPDATE: [pyproject.toml]
|
The env var must be
with uppercase_source_name comes from
|
The information in #4389 (comment) and #4389 (comment) are much more clear on the requirements than the official documentation. Perhaps someone can update the documentation? |
do it yourself! documentation merge requests are an easy way to contribute |
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).Poetry config:
Content of
pyproject.toml
:Issue
I want to add a package to my dependencies. The package is hosted on a private PyPI repository. Authentication is done via Basic Auth. Doing the install with Pip works:
But Poetry fails to perform the authentication. It doesn't matter if I use
POETRY_HTTP_BASIC_PYPI_USERNAME
andPOETRY_HTTP_BASIC_PYPI_PASSWORD
or usepoetry config http-basic.my-repo username password
. It always fails:I searched for similar issues:
But this issue is not the same. In my case Poetry starts to work when I put the repository credentials directly into the
pyproject.toml.
The text was updated successfully, but these errors were encountered: