From 2c275b08c5edfd226b79a2b4427245fafac4bb50 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Wed, 6 Jun 2018 15:27:01 -0400 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: I370e66f1a4f4a0af629afa109d51d095a4700327 Signed-off-by: Doug Hellmann --- tox.ini | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tox.ini b/tox.ini index 7423a30..a0debd0 100644 --- a/tox.ini +++ b/tox.ini @@ -11,18 +11,23 @@ deps = commands = python setup.py testr --slowest --testr-args='{posargs}' [testenv:pep8] +basepython = python3 commands = flake8 [testenv:docs] +basepython = python3 commands = python setup.py build_sphinx [testenv:cover] +basepython = python3 commands = python setup.py testr --coverage [testenv:venv] +basepython = python3 commands = {posargs} [testenv:debug] +basepython = python3 commands = oslo_debug_helper {posargs} [flake8]