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: I9a9dd136170022802efe02bbdd9110dea634582c
This commit is contained in:
huang.zhiping 2018-06-09 21:19:23 +08:00
parent a8bc5a0e62
commit 86933c278c
1 changed files with 3 additions and 0 deletions

View File

@ -14,12 +14,14 @@ deps = -r{toxinidir}/requirements.txt
commands = py.test
[testenv:pep8]
basepython = python3
commands = flake8
#[testenv:cover]
#commands = python setup.py testr --coverage --testr-args='{posargs}'
[testenv:docs]
basepython = python3
envdir = {toxworkdir}/venv
commands = python setup.py build_sphinx
@ -31,5 +33,6 @@ builtins = _
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,pbbuild,pbdelivery,pbconf,python-redfish-[01]*
[testenv:venv]
basepython = python3
setenv = PYTHONHASHSEED=0
commands = {posargs}