Skip to content

Document that NETRC environment variable is supported #11023

@wwuck

Description

@wwuck

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 the NETRC environment variable.

It does say the .netrc support comes from requests and the stdlib netrc module but there is no documentation for NETRC 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 the ftp 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions