From d8cd0ceee7746b9fe5468b239784b3509b7c47bc Mon Sep 17 00:00:00 2001 From: "huang.zhiping" Date: Sat, 9 Jun 2018 11:28:34 +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: Icb9a9fdc11393042cf1c96a7cc1a523cfb531f32 --- tox.ini | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tox.ini b/tox.ini index c9254658..c6843aef 100644 --- a/tox.ini +++ b/tox.ini @@ -17,33 +17,41 @@ whitelist_externals = bash find [testenv:pep8] +basepython = python3 commands = flake8 {posargs} [testenv:venv] +basepython = python3 commands = {posargs} [testenv:cover] +basepython = python3 commands = python setup.py test --coverage \ --coverage-package-name=muranoagent --testr-args='{posargs}' coverage report --omit '*/tests/*' [testenv:debug] +basepython = python3 commands = find . -type f -name "*.pyc" -delete oslo_debug_helper -t muranoagent/tests {posargs} [testenv:docs] +basepython = python3 commands = python setup.py build_sphinx [testenv:pyflakes] +basepython = python3 deps = flake8 commands = flake8 [testenv:genconfig] +basepython = python3 commands = oslo-config-generator --config-file etc/oslo-config-generator/muranoagent.conf [testenv:releasenotes] +basepython = python3 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [flake8]