From f2cecbb2e8141ece1e8315487d50e3c916230754 Mon Sep 17 00:00:00 2001 From: "huang.zhiping" Date: Fri, 8 Jun 2018 23:15:12 +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: I22f6e478534a5fd90af565812dc81a0fac2f2132 --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tox.ini b/tox.ini index 7b20901..cb5ca00 100644 --- a/tox.ini +++ b/tox.ini @@ -44,6 +44,7 @@ basepython = python3 commands = python setup.py build_sphinx [testenv:debug] +basepython = python3 commands = oslo_debug_helper {posargs} [testenv:releasenotes] @@ -63,6 +64,7 @@ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,releasenotes [testenv:pip-check-reqs] +basepython = python3 # Do not install test-requirements as that will pollute the virtualenv for # determining missing packages. # This also means that pip-check-reqs must be installed separately, outside