summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-06-06 17:58:17 -0400
committerDoug Hellmann <doug@doughellmann.com>2018-06-06 17:58:17 -0400
commit4c782b2817b9519cafe8e7c0f96469e6b97453e5 (patch)
tree523f1dc4bc90bd35156cb75bcc027935c27f7949
parent83d102537e609ef0803649bb73c31e72d3c9aa40 (diff)
downloadpython-heatclient-4c782b2817b9519cafe8e7c0f96469e6b97453e5.tar.gz
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: Ia20d2ef56af2da00b374b3a3e5d79d7228c6a763 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
-rw-r--r--tox.ini6
1 files changed, 6 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index f137128..271fe11 100644
--- a/tox.ini
+++ b/tox.ini
@@ -17,6 +17,7 @@ commands = find . -type f -name "*.py[c|o]" -delete
whitelist_externals = find
[testenv:debug]
+basepython = python3
commands = oslo_debug_helper -t heatclient/tests {posargs}
[testenv:debug-py27]
@@ -28,10 +29,12 @@ basepython = python3.5
commands = oslo_debug_helper -t heatclient/tests {posargs}
[testenv:pep8]
+basepython = python3
commands =
flake8
[testenv:venv]
+basepython = python3
commands = {posargs}
[testenv:functional]
@@ -41,11 +44,13 @@ setenv =
passenv = OS_*
[testenv:cover]
+basepython = python3
commands =
python setup.py testr --coverage --testr-args='{posargs}'
coverage report
[testenv:docs]
+basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/doc/requirements.txt
@@ -60,6 +65,7 @@ max-complexity=20
import_exceptions = heatclient._i18n
[testenv:releasenotes]
+basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/doc/requirements.txt