From c6ada2430dc13f92f77f68408e9309fd011f0e46 Mon Sep 17 00:00:00 2001 From: zhulingjie Date: Sat, 9 Jun 2018 04:16:33 -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: I7b70af34d2df8d0181843a502d3e78ca3c7eb72a --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tox.ini b/tox.ini index abb7939..7a4611c 100644 --- a/tox.ini +++ b/tox.ini @@ -45,6 +45,7 @@ commands = {[testenv:functional]commands} whitelist_externals = {[testenv:functional]whitelist_externals} [testenv:pep8] +basepython = python3 deps = {[testenv]deps} commands = flake8 {posargs} @@ -56,6 +57,7 @@ commands = mypy --py2 --ignore-missing-imports kolla_cli [testenv:venv] +basepython = python3 commands = {posargs} [flake8] @@ -63,7 +65,9 @@ show-source = True exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build [testenv:bandit] +basepython = python3 commands = bandit -r kolla_cli [testenv:docs] +basepython = python3 commands = ./builddocs.sh