From a0b24989373e98579f4adca51e4ac4a8747e4ad6 Mon Sep 17 00:00:00 2001 From: qingszhao Date: Tue, 12 Jun 2018 08:22:22 +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: Icbd5b9ce255ae57b75fd58335b6c4d1df36f49ae --- tox.ini | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index bc2e674..054f596 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 1.6 -envlist = py27,pep8,bashate +envlist = py27,py35,pep8,bashate skipsdist = True [testenv] @@ -15,9 +15,11 @@ deps = -r{toxinidir}/test-requirements.txt commands = python setup.py testr --slowest --testr-args='{posargs}' [testenv:pep8] +basepython = python3 commands = flake8 [testenv:bashate] +basepython = python3 whitelist_externals = bash # find does: # prune all 'dot' dirs @@ -36,6 +38,7 @@ basepython = python3 commands = {posargs} [testenv:cover] +basepython = python3 #commands = python setup.py testr --coverage --testr-args='{posargs}' [flake8] @@ -48,6 +51,7 @@ builtins = _ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,release-tag-*,presentations [testenv:bindep] +basepython = python3 # Do not install any requirements. We want this to be fast and work even if # system dependencies are missing, since it's used to tell you what system # dependencies are missing! This also means that bindep must be installed