fix tox python3 overrides
We want to default to running all tox environments under python 3, so set the basepython value in each environment. We do not want to specify a minor version number, because we do not want to have to update the file every time we upgrade python. We do not want to set the override once in testenv, because that breaks the more specific versions used in default environments like py35 and py36. Change-Id: Ib4546226c254ef59d2b1b872f32267d2541e72de
This commit is contained in:
parent
a9b6d6c80e
commit
d54179f00f
3
tox.ini
3
tox.ini
@ -4,7 +4,6 @@ minversion = 1.8
|
||||
skipsdist = True
|
||||
|
||||
[testenv]
|
||||
basepython = /usr/bin/python
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
usedevelop = True
|
||||
install_command = pip install -U {opts} {packages}
|
||||
@ -16,11 +15,13 @@ whitelist_externals = bash
|
||||
find
|
||||
|
||||
[testenv:pep8]
|
||||
basepython = python3
|
||||
commands =
|
||||
flake8
|
||||
python setup.py check --restructuredtext --strict
|
||||
|
||||
[testenv:venv]
|
||||
basepython = python3
|
||||
commands = {posargs}
|
||||
|
||||
[flake8]
|
||||
|
Loading…
Reference in New Issue
Block a user