Skip to content

Passenv PIP_EXTRA_INDEX_URL by default #1562

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

Merged
merged 2 commits into from
May 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ Here is a simple overview, with tox-specific bits:

$ tox -e dev

To get information about all environements, type:
To get information about all environments, type:

$ tox -av

Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Eugene Yunak
Fernando L. Pereira
Florian Preinstorfer
Florian Schulze
George Alton
Gonéri Le Bouder
Hazal Ozturk
Henk-Jaap Wagenaar
Expand Down
1 change: 1 addition & 0 deletions docs/changelog/1561.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
default to passing the env var PIP_EXTRA_INDEX_URL by :user:`georgealton`.
2 changes: 1 addition & 1 deletion docs/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ Complete list of settings that you can put into ``testenv*`` sections:

* passed through on all platforms: ``CURL_CA_BUNDLE``, ``PATH``,
``LANG``, ``LANGUAGE``,
``LD_LIBRARY_PATH``, ``PIP_INDEX_URL``,
``LD_LIBRARY_PATH``, ``PIP_INDEX_URL``, ``PIP_EXTRA_INDEX_URL``,
``REQUESTS_CA_BUNDLE``, ``SSL_CERT_FILE``,
``HTTP_PROXY``, ``HTTPS_PROXY``, ``NO_PROXY``
* Windows: ``SYSTEMDRIVE``, ``SYSTEMROOT``, ``PATHEXT``, ``TEMP``, ``TMP``
Expand Down
1 change: 1 addition & 0 deletions src/tox/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,7 @@ def passenv(testenv_config, value):
"LD_LIBRARY_PATH",
"PATH",
"PIP_INDEX_URL",
"PIP_EXTRA_INDEX_URL",
"REQUESTS_CA_BUNDLE",
"SSL_CERT_FILE",
"TOX_WORK_DIR",
Expand Down
1 change: 1 addition & 0 deletions tests/unit/config/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,7 @@ def test_passenv_as_multiline_list(self, newconfig, monkeypatch, plat):
assert "CURL_CA_BUNDLE" in envconfig.passenv
assert "PATH" in envconfig.passenv
assert "PIP_INDEX_URL" in envconfig.passenv
assert "PIP_EXTRA_INDEX_URL" in envconfig.passenv
assert "REQUESTS_CA_BUNDLE" in envconfig.passenv
assert "SSL_CERT_FILE" in envconfig.passenv
assert "LANG" in envconfig.passenv
Expand Down