From 7427ee739296e93f18aed92f7150abf732fd92b3 Mon Sep 17 00:00:00 2001 From: qingszhao Date: Sat, 29 Sep 2018 17:54:34 +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: I085934b2ae2741e185b5dd9e0e0eb0eba4a67168 Closes-Bug: #1801657 --- monitoring-for-openstack/tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/monitoring-for-openstack/tox.ini b/monitoring-for-openstack/tox.ini index e7d8105..df34b39 100644 --- a/monitoring-for-openstack/tox.ini +++ b/monitoring-for-openstack/tox.ini @@ -1,7 +1,7 @@ [tox] minversion = 1.6 skipsdist = True -envlist = py34,py27,pep8 +envlist = py35,py27,pep8 [testenv] usedevelop = True @@ -12,6 +12,7 @@ install_command = pip install -U {opts} {packages} commands = python setup.py testr --slowest --testr-args="{posargs}" [testenv:bashate] +basepython = python3 deps = bashate whitelist_externals = bash commands = bash -c "find {toxinidir} \ @@ -24,11 +25,13 @@ commands = bash -c "find {toxinidir} \ -print0 | xargs -0 bashate -v" [testenv:pep8] +basepython = python3 deps = {[testenv]deps} hacking>=0.9.2,<0.10 commands = flake8 [testenv:venv] +basepython = python3 commands = {posargs} [flake8]