pip icon indicating copy to clipboard operation
pip copied to clipboard

Make proxy parameter override environment proxy

Open q0w opened this issue 2 years ago • 2 comments

Closes #10685 ref: https://requests.readthedocs.io/en/latest/api/#requests.Session.trust_env

q0w avatar May 06 '22 04:05 q0w

~~oh, with trust_env=False requests would not check .NETRC env.~~

Why test in https://github.com/pypa/pip/pull/10998 would fail with plain url and netrc credentials? im stuck

---url = f"https://USERNAME:PASSWORD@{server.host}:{server.port}/simple"
+++url = f"https://{server.host}:{server.port}/simple"
...
---f"machine {server.host} login wrongusername password wrongpassword"
+++f"machine {server.host} login USERNAME password PASSWORD"

q0w avatar May 06 '22 04:05 q0w

@pradyunsg I think, it would also fix #5378

q0w avatar Jul 13 '22 20:07 q0w

Hi,

I see this has been approved for a long time, but not merged. Is there a reason this is blocked from merging?

Of course I understand the authors of pip are busy and have a lot to deal with, just wanted to check in case this had got stuck just before the finish line and could be helped over, or if the reason is needing a rebase or something, whether I could help get it over the line.

(I discovered this via the issue it closes, https://github.com/pypa/pip/issues/10685, as resolving this issue would be of considerable help to me).

EFord36 avatar Nov 29 '23 11:11 EFord36