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: I57ea4a045f5514fc51970c3d199d96079b649333
This commit is contained in:
qingszhao 2018-09-30 09:54:08 +08:00
parent 8a7aea4cdb
commit 63ba58b60b
1 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,7 @@ deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:bindep]
basepython = python3
# Do not install any requirements. We want this to be fast and work even if
# system dependencies are missing, since it's used to tell you what system
# dependencies are missing! This also means that bindep must be installed
@ -17,9 +18,11 @@ commands =
{toxinidir}/tools/install_bindep.sh
[testenv:docs]
basepython = python3
commands = python setup.py build_sphinx
[testenv:linters]
basepython = python3
whitelist_externals = bash
commands =
flake8
@ -27,6 +30,7 @@ commands =
ansible-lint"
[testenv:venv]
basepython = python3
commands = {posargs}
passenv =
HOME