Skip to content

Commit 7200a81

Browse files
committed
Allow overriding the interpreter from environment.
1 parent d920294 commit 7200a81

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

ci/templates/tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ deps = coverage
108108

109109
{% for env, config in tox_environments|dictsort %}
110110
[testenv:{{ env }}]
111-
basepython = {{ config.python }}
111+
basepython = {env:TOXPYTHON:{{ config.python }}}
112112
{% if config.cover or config.env_vars %}
113113
setenv =
114114
{[testenv]setenv}

tox.ini

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ usedevelop = true
114114
deps = coverage
115115

116116
[testenv:2.6]
117-
basepython = python2.6
117+
basepython = {env:TOXPYTHON:python2.6}
118118
setenv =
119119
{[testenv]setenv}
120120
WITH_COVERAGE=yes
@@ -128,10 +128,10 @@ deps =
128128
pytest-cover
129129

130130
[testenv:2.6-nocover]
131-
basepython = python2.6
131+
basepython = {env:TOXPYTHON:python2.6}
132132

133133
[testenv:2.7]
134-
basepython = python2.7
134+
basepython = {env:TOXPYTHON:python2.7}
135135
setenv =
136136
{[testenv]setenv}
137137
WITH_COVERAGE=yes
@@ -146,13 +146,13 @@ deps =
146146
Django
147147

148148
[testenv:2.7-nocover]
149-
basepython = python2.7
149+
basepython = {env:TOXPYTHON:python2.7}
150150
deps =
151151
{[testenv]deps}
152152
Django
153153

154154
[testenv:3.3]
155-
basepython = python3.3
155+
basepython = {env:TOXPYTHON:python3.3}
156156
setenv =
157157
{[testenv]setenv}
158158
WITH_COVERAGE=yes
@@ -167,13 +167,13 @@ deps =
167167
Django
168168

169169
[testenv:3.3-nocover]
170-
basepython = python3.3
170+
basepython = {env:TOXPYTHON:python3.3}
171171
deps =
172172
{[testenv]deps}
173173
Django
174174

175175
[testenv:3.4]
176-
basepython = python3.4
176+
basepython = {env:TOXPYTHON:python3.4}
177177
setenv =
178178
{[testenv]setenv}
179179
WITH_COVERAGE=yes
@@ -188,13 +188,13 @@ deps =
188188
Django
189189

190190
[testenv:3.4-nocover]
191-
basepython = python3.4
191+
basepython = {env:TOXPYTHON:python3.4}
192192
deps =
193193
{[testenv]deps}
194194
Django
195195

196196
[testenv:pypy]
197-
basepython = pypy
197+
basepython = {env:TOXPYTHON:pypy}
198198
setenv =
199199
{[testenv]setenv}
200200
WITH_COVERAGE=yes
@@ -209,7 +209,7 @@ deps =
209209
Django
210210

211211
[testenv:pypy-nocover]
212-
basepython = pypy
212+
basepython = {env:TOXPYTHON:pypy}
213213
deps =
214214
{[testenv]deps}
215215
Django

0 commit comments

Comments
 (0)