From fb96e8fb87acfc1df4c02c6d3a1499c018f6c97d Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Wed, 6 Jun 2018 17:58:16 -0400 Subject: 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: I872ea4b71f35c5bad53fe1bcf2a50a6f21b8f9ee Signed-off-by: Doug Hellmann --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tox.ini b/tox.ini index 8c3f43c..3c3b2f4 100644 --- a/tox.ini +++ b/tox.ini @@ -20,15 +20,19 @@ commands = coverage report -m [testenv:debug] +basepython = python3 commands = oslo_debug_helper -t barbicanclient/tests {posargs} [testenv:pep8] +basepython = python3 commands = flake8 {posargs} [testenv:venv] +basepython = python3 commands = {posargs} [testenv:docs] +basepython = python3 deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} -r{toxinidir}/requirements.txt -- cgit v1.2.1