You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ignore basepython for default factors (tox-dev#477)
tox provides a number of default factors - py27, py34, py35 etc. - that
are tied to particular interpreter versions. It is possible to override
these through individual sections or the global [testenv] section. For
example, consider the following 'tox.ini' file:
[tox]
skipsdist = True
minversion = 2.0
distribute = False
envlist = py35,py27,pep8,py34-test
[testenv]
basepython = python3
install_command = pip install {opts} {packages}
commands =
python --version
[testenv:py27]
basepython = python2.7
Running any target except for 'py27' will result in the same interpreter
being used. On Fedora 28 with the 'python3-tox' package:
$ tox -qq -e py27
Python 2.7.15
$ tox -qq -e py35
Python 3.6.5
$ tox -qq -e py34-test
Python 3.6.5
This is broken by design. Overriding these makes no sense and is a
source of common misconfigurations, as noted in tox-dev#477. The only sane
thing to do here is ignore the request and use the correct interpreter
so this is what's done.
Signed-off-by: Stephen Finucane <[email protected]>
Closes: tox-dev#477
0 commit comments