-
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
Document that NETRC environment variable is supported #11023
Comments
I can now see the docs update for requests mentions finding the netrc file at |
I believe |
I'm planning on trying to use it in a Jenkins CI pipeline where I don't have access to ~/.netrc and will be temporarily copying the file out of the Jenkins credential store, so |
I've used NETRC env for testing recently #10998 |
I was worried this was requests specific behavior because it was only added to requests fairly recently but it seems |
Even so, I think this is covered by our comment that our network support is handled by requests. If it's not covered clearly enough in the requests documentation, then maybe you could ask there for it to be improved? |
As per the PR I linked above it seems to be documented in request's quickstart guide: https://docs.python-requests.org/en/latest/user/quickstart/#custom-headers I wish the logic of how a netrc file was sourced and parsed was included in a specific netrc location like here: https://2.python-requests.org/en/master/user/authentication/#netrc-authentication (as this is the location when you search for "netrc" in their docs search and the quickstart guide doesn't appear at all). But that's just a wish, I can't contribute PRs right now until I've come to an agreement with my current employer. |
What's the problem this feature will solve?
I was reading through the pip documentation for
.netrc
support and it doesn't appear to mention if there is any support for theNETRC
environment variable.It does say the
.netrc
support comes fromrequests
and the stdlibnetrc
module but there is no documentation forNETRC
environment variable in either the stdlib netrc docs or requests docs.I did find a pull request in requests psf/requests#5643 which implements support for
NETRC
environment variable so I'm guessing that it also applies to pip?Describe the solution you'd like
I would like to see the pip docs clarify whether or not the
NETRC
environment variable is supported for the pip netrc authentication.Alternative Solutions
I can submit a PR to update pip docs if this
NETRC
support is clarified.Additional context
The only documentation reference I can find anywhere mentioning
NETRC
is in theftp
documentation linked from the pip docs at https://www.gnu.org/software/inetutils/manual/html_node/The-_002enetrc-file.html but obviously that doesn't apply to anything python-related.Code of Conduct
The text was updated successfully, but these errors were encountered: