From d08b147ea488233ac959dfcef59de28daca0a5c9 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: I7150a260a3b423b138a710edf71efaa8762cd849 Signed-off-by: Doug Hellmann --- tox.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tox.ini b/tox.ini index e993671f..b8bb5745 100644 --- a/tox.ini +++ b/tox.ini @@ -16,9 +16,11 @@ whitelist_externals = bash downloadcache = ~/cache/pip [testenv:pep8] +basepython = python3 commands = flake8 [testenv:venv] +basepython = python3 commands = {posargs} [testenv:py27] @@ -26,6 +28,7 @@ commands = stestr run --black-regex ".tests.functional" '{posargs}' [testenv:py35] +basepython = python3 commands = stestr run --black-regex ".tests.functional" '{posargs}' @@ -37,6 +40,7 @@ commands = stestr run --black-regex ".tests.unit" '{posargs}' [testenv:cover] +basepython = python3 commands = coverage erase python setup.py testr --coverage --testr-args='--concurrency=1 {posargs}' @@ -44,9 +48,11 @@ commands = coverage html --include='os_vif/*' -d covhtml -i [testenv:docs] +basepython = python3 commands = python setup.py build_sphinx [testenv:releasenotes] +basepython = python3 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [flake8]