From c74582c07e59d71eaeabb4c8585d74984d4b012b Mon Sep 17 00:00:00 2001 From: "huang.zhiping" Date: Sat, 9 Jun 2018 09:30:03 +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: Ic203551ddc25a6fe3a1813776d492a6d4177719b --- tox.ini | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 34b43a9..c9dff15 100755 --- a/tox.ini +++ b/tox.ini @@ -20,23 +20,27 @@ downloadcache = ~/cache/pip [testenv:pep8] +basepython = python3 commands = flake8 {posargs} [testenv:cover] +basepython = python3 setenv = VIRTUAL_ENV={envdir} commands = python setup.py testr --coverage --testr-args='^(?!.*test.*coverage).*$' [testenv:venv] +basepython = python3 commands = {posargs} [testenv:genconfig] - +basepython = python3 [testenv:docs] +basepython = python3 commands = python setup.py build_sphinx