-
Notifications
You must be signed in to change notification settings - Fork 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
WIP: Fix - Cannot access private repository using token #6795
Conversation
Resolves #6796. |
/cc @zooba since this was modified last in the keyring PR, which is what git bisect points to as well. |
This is for forward compatibility with requests 3.0.0 (see Line 28 in 2e51624)
Potential test case
To place in: pip/tests/unit/test_download.py Line 493 in 2cd26a2
|
Converting I've paged all of this code out of my head already, I'm afraid, so without going through and relearning it I can't really offer much help, sorry :) |
Hehe. No worries @zooba! Thanks for chiming in. I'm hoping I'll be able to make time to look into this today or tomorrow. |
@booleand Would you mind if I pick this up from here? |
@pradyunsg OK Just want to mention a few things:
pip/src/pip/_internal/download.py Line 317 in f46b7bb
I suspect there may be edge cases which will result in unexpected behavior. In particular when multiple calls are being made to a
|
Thanks @booleand!
I decided to preserve that conditional as is, and modified what
Thank you -- these helped. :)
I ended up augmenting existing tests: 0832006. |
This PR addresses a potential bug from 19.2 as discussed here.
Embedding a token in an
index_url
is not working.For example:
pip install SomeProject --index-url="https://TOKEN@some.where/somerepo/"
throws an exception:
pip._internal.exceptions.DistributionNotFound
Any guidance/feedback would be appreciated!