From 193d1a38152de8900acb8796b18c08a08d79d358 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Wed, 6 Jun 2018 15:27:00 -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: Ia156a087ff8f04307f255e61f3f2e9ffdae42861 Signed-off-by: Doug Hellmann --- tox.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tox.ini b/tox.ini index 1b156db6..34bce18a 100644 --- a/tox.ini +++ b/tox.ini @@ -48,27 +48,33 @@ commands = coverage report [testenv:debug] +basepython = python3 commands = {[testenv]commands} oslo_debug_helper -t {env:OS_TEST_PATH} {posargs} [testenv:bandit] +basepython = python3 # B101(assert_ussed) - Validation uses asserts because of performance reasons # monasca_common/kafka_lib is a clone of kafka-python and will be deleted in the future commands = bandit -r monasca_common -n5 -s B101 -x monasca_common/tests -x monasca_common/kafka_lib [testenv:flake8] +basepython = python3 commands = flake8 monasca_common [testenv:pep8] +basepython = python3 commands = {[testenv:flake8]commands} {[testenv:bandit]commands} [testenv:venv] +basepython = python3 commands = {posargs} [testenv:bindep] +basepython = python3 deps = bindep commands = bindep test