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_urlis not working.For example:
pip install SomeProject --index-url="https://[email protected]/somerepo/"throws an exception:
pip._internal.exceptions.DistributionNotFoundAny guidance/feedback would be appreciated!