From d2229c9b765cbf8610df4200742800cb9ce074d6 Mon Sep 17 00:00:00 2001 From: "huang.zhiping" Date: Fri, 8 Jun 2018 22:52:49 +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: I0fe605c2f827a528a12e8f64219ba2bdff028db0 --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tox.ini b/tox.ini index d8e95b3..477e063 100644 --- a/tox.ini +++ b/tox.ini @@ -22,16 +22,20 @@ deps = {env:CONSTRAINTS_OPT} whitelist_externals = sh [testenv:pep8] +basepython = python3 commands = flake8 collectd_openstack [testenv:venv] +basepython = python3 commands = {posargs} [testenv:docs] +basepython = python3 #fixeme(sean-k-mooney): add -W to treat warnings as errors once warnings are fixed commands = sphinx-build doc/source doc/build [testenv:releasenotes] +basepython = python3 #fixeme(sean-k-mooney): add -W to treat warnings as errors once warnings are fixed #NOTE(sean-k-mooney): our releasenotes crash sphinx so we should really fix them ... commands =