From 03292afea5e721fcef1599447e05dbedd35ab339 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 13 Apr 2018 15:52:22 -0400 Subject: [PATCH] set default python to python3 Set the default python to python3 except for the py27 environment. We have to set that explicitly to override the new default. Change-Id: I07f2186cb7771b3a83ccc4ce9ba3b79253c4757c Signed-off-by: Doug Hellmann --- tox.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 87f4b94..823e625 100644 --- a/tox.ini +++ b/tox.ini @@ -3,6 +3,7 @@ minversion = 2.0 envlist = py35,py27,pep8 [testenv] +basepython = python3 setenv = VIRTUAL_ENV={envdir} BRANCH_NAME=master @@ -42,6 +43,7 @@ commands = python setup.py testr --coverage --testr-args='{posargs}' commands = python setup.py build_sphinx [testenv:py27] +basepython = python2.7 commands = python setup.py testr --slowest --testr-args='{posargs}' sphinx-build -b doctest doc/source doc/build @@ -57,7 +59,6 @@ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [testenv:lower-constraints] -basepython = python3 deps = -c{toxinidir}/lower-constraints.txt -r{toxinidir}/test-requirements.txt