-
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
Check NO_PROXY env to disable proxy settings #11497
Conversation
This isn't how |
Also, doesn't requests pick up the NO_PROXY environment variable automatically? We shouldn't need any explicit code in pip for this. The discussion in #5378 seems pretty confused - I can't see anyone who tried the NO_PROXY environment variable1 and confirmed it wasn't working. As far as I can see, the expectation from the issue was for a Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not use the NO_PROXY
environment variable in a non-standard way like this.
This comment was marked as resolved.
This comment was marked as resolved.
To not add a new optional --no-proxy argument, you can use |
This comment was marked as outdated.
This comment was marked as outdated.
I've tested manually |
So I guess that means there's a solution for #5378 without needing any change to pip? |
Yes, it just needs to be documented |
https://pip.pypa.io/en/stable/user_guide/#using-a-proxy-server states
I don't think it's up to us to document how those variables work, as they are intended to work the same as in every other application. But I wouldn't object to a brief clarifying statement, nor would I object to a note about how they relate to |
Sorry, i am not good at writing docs. |
Either way I think this PR can be closed? |
Or I can reimplement this by adding |
Given that the |
Fix #5378