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: I9530cd2433e0e34f05667d33bd6469b2592f8738
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-09-26 18:58:10 -04:00 committed by Brian Haley
parent 2530ccff8f
commit 1307cb7587
1 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:pep8] [testenv:pep8]
basepython = python2.7 basepython = python3
deps = deps =
{[testenv]deps} {[testenv]deps}
commands= commands=
@ -126,7 +126,7 @@ whitelist_externals =
bash bash
[testenv:cover] [testenv:cover]
basepython = python2.7 basepython = python3
setenv = setenv =
{[testenv]setenv} {[testenv]setenv}
PYTHON=coverage run --source neutron --parallel-mode PYTHON=coverage run --source neutron --parallel-mode