From d5c9f00935214e05ef2224991902391dab95c181 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Wed, 26 Sep 2018 18:59:14 -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: Idb6defda3b9575244421b1c4af8ba88205809d92 Signed-off-by: Doug Hellmann --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tox.ini b/tox.ini index f9becf6..e7adaa8 100644 --- a/tox.ini +++ b/tox.ini @@ -18,12 +18,15 @@ whitelist_externals = npm commands = python manage.py test neutron_lbaas_dashboard --settings=neutron_lbaas_dashboard.tests.settings [testenv:pep8] +basepython = python3 commands = flake8 [testenv:venv] +basepython = python3 commands = {posargs} [testenv:cover] +basepython = python3 # npm must be installed on the system, for example # sudo apt-get install npm # sudo yum install npm (on RHEL/CentOS, enable EPEL repository) @@ -31,6 +34,7 @@ commands = npm install npm test [testenv:docs] +basepython = python3 whitelist_externals = rm deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}