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: Ic203551ddc25a6fe3a1813776d492a6d4177719b
This commit is contained in:
huang.zhiping 2018-06-09 09:30:03 +08:00
parent 4ea779429a
commit c74582c07e
1 changed files with 5 additions and 1 deletions

View File

@ -20,23 +20,27 @@ downloadcache = ~/cache/pip
[testenv:pep8]
basepython = python3
commands =
flake8 {posargs}
[testenv:cover]
basepython = python3
setenv = VIRTUAL_ENV={envdir}
commands = python setup.py testr --coverage --testr-args='^(?!.*test.*coverage).*$'
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:genconfig]
basepython = python3
[testenv:docs]
basepython = python3
commands = python setup.py build_sphinx