-
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
utils: ensure Downloader defaults to Authenticator #9202
utils: ensure Downloader defaults to Authenticator #9202
Conversation
bfe7be6
to
6cb7d0e
Compare
6cb7d0e
to
e3f0072
Compare
Actually, (without trying it) I suppose #1444 has already been solved some time ago (or this change does not solve it) because it looks like we always pass a session to |
Argh, I missed one dynamic usage that does not pass a session: https://github.com/python-poetry/poetry/blob/main/src/poetry/packages/direct_origin.py#L80 However, we could think about changing that. |
We do not always pass in a session.
This is what caused #1444 afaict. |
I don't think changing it is trivial. And we want to keep allowing the utility function to optionally pass in a session. |
What about creating an
We probably should avoid using it without passing a session for performance reasons but if you think it makes sense to keep it for convenience, I'm ok with it. |
e3f0072
to
3164958
Compare
Not opposed to that. But, I do wonder if that actually gains us much since the cache already will be set after the first download and the url never changes. Reckon we should anyway?
I am not so sure there is a discernable performance hit for one-shot downloads. But yes, I do think keeping it for convenience is worthwhile. |
One |
3164958
to
8d79c4d
Compare
@radoering made trhe changes, used |
8d79c4d
to
f68c0b9
Compare
f68c0b9
to
26efac1
Compare
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This change allows correct usage of http credentials when downloading files.
Resolves: #1444
Testing #1444
Modify commands to your specific case.
Using pipx
pipx install --suffix=@9202 'poetry @ git+https://github.com/python-poetry/poetry.git@refs/pull/9202/head'
Using a container (podman | docker)