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: I84b72a5c08331936323298817ba8ebcd3a710eb7
This commit is contained in:
huang.zhiping 2018-06-09 22:55:40 +08:00 committed by Alessandro Nesta
parent 5bf22956ee
commit b3dafc4809
1 changed files with 5 additions and 0 deletions

View File

@ -20,12 +20,14 @@ commands = {posargs}
passenv = OS_*
[testenv:cover]
basepython = python3
setenv =
DISCOVER_DIRECTORY=sahara_tests
PACKAGE_NAME=sahara_tests
commands = {toxinidir}/tools/cover.sh {posargs}
[testenv:docs]
basepython = python3
deps =
-r{toxinidir}/doc/requirements.txt
commands =
@ -38,10 +40,12 @@ whitelist_externals =
downloadcache = ~/cache/pip
[testenv:pylint]
basepython = python3
setenv = VIRTUAL_ENV={envdir}
commands = bash tools/lintstack.sh
[testenv:pep8]
basepython = python3
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/doc/requirements.txt
@ -57,6 +61,7 @@ commands =
whitelist_externals = bash
[testenv:releasenotes]
basepython = python3
deps =
-r{toxinidir}/doc/requirements.txt
commands =