From 4de1ee38fb2a6aff0fb73f20087540ccc9daccba Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 13 Apr 2018 16:08:24 -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: I9d9b80a6e177f7a3a1e20be8da5f603b95ad2deb Signed-off-by: Doug Hellmann --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tox.ini b/tox.ini index ae632a1..a8c9c38 100644 --- a/tox.ini +++ b/tox.ini @@ -3,12 +3,16 @@ minversion = 2.0 envlist = pep8 [testenv] +basepython = python3 install_command = pip install {opts} {packages} deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt +[testenv:py27] +basepython = python2.7 + [testenv:pep8] commands = flake8 oslosphinx