From bd96a33f79f5ccf4adf9e5964caeb88319864f0f Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 13 Apr 2018 16:07:10 -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: Ica596235831a51cb02afb46c5e1a167a32cf6bf5 Signed-off-by: Doug Hellmann --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tox.ini b/tox.ini index 4bdbc6d0..2981a782 100644 --- a/tox.ini +++ b/tox.ini @@ -3,6 +3,7 @@ minversion = 2.0 envlist = py35,py27,pypy,pep8,bandit [testenv] +basepython = python3 setenv = VIRTUAL_ENV={envdir} BRANCH_NAME=master @@ -27,6 +28,7 @@ commands = find . -type f -name "*.py[co]" -delete python setup.py testr --slowest --testr-args='{posargs}' doc8 --ignore-path "doc/source/history.rst" doc/source +basepython = python2.7 [testenv:venv] commands = {posargs}