From 6a4445eb6cf9cec7c9854716a9a3b6c40ee91212 Mon Sep 17 00:00:00 2001 From: "huang.zhiping" Date: Wed, 15 Aug 2018 07:31:42 +0000 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: Ic4edafbbcb57454c2592483b6348d46138320ab5 --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tox.ini b/tox.ini index c4c93ea..085f7b6 100644 --- a/tox.ini +++ b/tox.ini @@ -13,16 +13,20 @@ setenv = commands = nosetests --tests almanach.tests.unit [testenv:genconfig] +basepython = python3 commands = oslo-config-generator --namespace almanach --output-file=etc/almanach/almanach.conf [testenv:venv] +basepython = python3 commands = {posargs} [testenv:pep8] +basepython = python3 deps = -r{toxinidir}/test-requirements.txt commands = flake8 {posargs} [testenv:docs] +basepython = python3 commands = python setup.py build_sphinx --fresh-env [flake8]