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: I4dae808f500bd5c8caa462a2d1deae157adff29d
Closes-Bug:  #1802032
This commit is contained in:
98k 2018-10-05 10:37:36 +00:00 committed by Filippo Inzaghi
parent 0b40b03837
commit 857d9b1ff1

View File

@ -30,6 +30,7 @@ commands =
whitelist_externals = rm
[testenv:linters]
basepython = python3
whitelist_externals = bash
commands =
bash -c "find {toxinidir} \
@ -38,4 +39,5 @@ commands =
-print0 | xargs -0 yamllint"
[testenv:venv]
basepython = python3
commands = {posargs}