Skip to content

Commit

Permalink
Passenv PIP_EXTRA_INDEX_URL by default (tox-dev#1562)
Browse files Browse the repository at this point in the history
  • Loading branch information
georgealton authored and ssbarnea committed Apr 19, 2021
1 parent 71961e1 commit 637aa66
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
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 @@ -30,6 +30,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 @@ -429,7 +429,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

0 comments on commit 637aa66

Please sign in to comment.