From 2683829189c6ccb1601675270df89c67122ee65d Mon Sep 17 00:00:00 2001 From: "huang.zhiping" Date: Sat, 9 Jun 2018 01:16:41 +0800 Subject: [PATCH] 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: I13cd6b83388368966868f90ae09c88a3c644114f --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tox.ini b/tox.ini index 6a05c400d..3a60cf6a1 100644 --- a/tox.ini +++ b/tox.ini @@ -11,6 +11,7 @@ setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/test-requirements.txt [testenv:linters] +basepython = python3 whitelist_externals = bash commands = bash -c "find {toxinidir} \ @@ -22,10 +23,13 @@ commands = whereto {toxinidir}/doc/source/_extra/.htaccess {toxinidir}/doc/test/redirect-tests.txt [testenv:venv] +basepython = python3 commands = {posargs} [testenv:docs] +basepython = python3 commands = sphinx-build -W -b html doc/source doc/build [testenv:validate] +basepython = python3 commands = python3 tools/validate_tags.py