Skip to content

Commit 659fcb6

Browse files
authored
Passenv PIP_EXTRA_INDEX_URL by default (#1562)
1 parent bdd1453 commit 659fcb6

File tree

6 files changed

+6
-2
lines changed

6 files changed

+6
-2
lines changed

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Here is a simple overview, with tox-specific bits:
168168

169169
$ tox -e dev
170170

171-
To get information about all environements, type:
171+
To get information about all environments, type:
172172

173173
$ tox -av
174174

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Eugene Yunak
3030
Fernando L. Pereira
3131
Florian Preinstorfer
3232
Florian Schulze
33+
George Alton
3334
Gonéri Le Bouder
3435
Hazal Ozturk
3536
Henk-Jaap Wagenaar

docs/changelog/1561.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
default to passing the env var PIP_EXTRA_INDEX_URL by :user:`georgealton`.

docs/config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ Complete list of settings that you can put into ``testenv*`` sections:
429429

430430
* passed through on all platforms: ``CURL_CA_BUNDLE``, ``PATH``,
431431
``LANG``, ``LANGUAGE``,
432-
``LD_LIBRARY_PATH``, ``PIP_INDEX_URL``,
432+
``LD_LIBRARY_PATH``, ``PIP_INDEX_URL``, ``PIP_EXTRA_INDEX_URL``,
433433
``REQUESTS_CA_BUNDLE``, ``SSL_CERT_FILE``,
434434
``HTTP_PROXY``, ``HTTPS_PROXY``, ``NO_PROXY``
435435
* Windows: ``SYSTEMDRIVE``, ``SYSTEMROOT``, ``PATHEXT``, ``TEMP``, ``TMP``

src/tox/config/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,7 @@ def passenv(testenv_config, value):
688688
"LD_LIBRARY_PATH",
689689
"PATH",
690690
"PIP_INDEX_URL",
691+
"PIP_EXTRA_INDEX_URL",
691692
"REQUESTS_CA_BUNDLE",
692693
"SSL_CERT_FILE",
693694
"TOX_WORK_DIR",

tests/unit/config/test_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,6 +1100,7 @@ def test_passenv_as_multiline_list(self, newconfig, monkeypatch, plat):
11001100
assert "CURL_CA_BUNDLE" in envconfig.passenv
11011101
assert "PATH" in envconfig.passenv
11021102
assert "PIP_INDEX_URL" in envconfig.passenv
1103+
assert "PIP_EXTRA_INDEX_URL" in envconfig.passenv
11031104
assert "REQUESTS_CA_BUNDLE" in envconfig.passenv
11041105
assert "SSL_CERT_FILE" in envconfig.passenv
11051106
assert "LANG" in envconfig.passenv

0 commit comments

Comments
 (0)