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: I71287cf24200f1abb5cde0fd305647e9d31f292d
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-09-26 19:04:34 -04:00
parent 237620936d
commit 47ecae9125
1 changed files with 3 additions and 0 deletions

View File

@ -15,9 +15,11 @@ commands=
commands =
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:pep8]
basepython = python3
commands = ./run-flake8
[flake8]
@ -26,4 +28,5 @@ exclude = .venv,.tox,dist,*.egg,build,releasenotes
show-source = true
[testenv:releasenotes]
basepython = python3
commands = bash -c tools/releasenotes_tox.sh