Skip to content

Commit d23066e

Browse files
authored
Update api.py
Add NETRC to the list of default_pass_env. This is used by pip when downloading package from an index needing authentication.
1 parent 81a83bd commit d23066e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tox/tox_env/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ def _default_pass_env(self) -> list[str]: # noqa: PLR6301
220220
"HOME", # needed for `os.path.expanduser()` on non-Windows systems
221221
"FORCE_COLOR", # force color output
222222
"NO_COLOR", # disable color output
223+
"NETRC", # used by pip and netrc modules
223224
]
224225
if sys.stdout.isatty(): # if we're on a interactive shell pass on the TERM
225226
env.append("TERM")

0 commit comments

Comments
 (0)