From 86933c278c81bdd3771bc9186cffa0c1cb22dde9 Mon Sep 17 00:00:00 2001 From: "huang.zhiping" Date: Sat, 9 Jun 2018 21:19:23 +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: I9a9dd136170022802efe02bbdd9110dea634582c --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index 4fbc073..23bbb59 100644 --- a/tox.ini +++ b/tox.ini @@ -14,12 +14,14 @@ deps = -r{toxinidir}/requirements.txt commands = py.test [testenv:pep8] +basepython = python3 commands = flake8 #[testenv:cover] #commands = python setup.py testr --coverage --testr-args='{posargs}' [testenv:docs] +basepython = python3 envdir = {toxworkdir}/venv commands = python setup.py build_sphinx @@ -31,5 +33,6 @@ builtins = _ exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,pbbuild,pbdelivery,pbconf,python-redfish-[01]* [testenv:venv] +basepython = python3 setenv = PYTHONHASHSEED=0 commands = {posargs}