summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhuang.zhiping <huang.zhiping@99cloud.net>2018-06-09 15:31:24 +0800
committerhuang.zhiping <huang.zhiping@99cloud.net>2018-06-09 15:32:16 +0800
commit4dab4f57bb179dc66805ac98ce9963aba0cdc86f (patch)
tree96fee7c1a6921cd64d7e65caa5e28e4c8800b0f1
parente06e7cce4e64b8379f4e80f4597b47452a882428 (diff)
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: I19fa4578d40b92f63947880f22163069a92e79c5
Notes
Notes (review): Code-Review+1: Vu Cong Tuan <tuanvc@vn.fujitsu.com> Code-Review+2: Claudiu Belu <cbelu@cloudbasesolutions.com> Workflow+1: Claudiu Belu <cbelu@cloudbasesolutions.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 01 Aug 2018 13:25:09 +0000 Reviewed-on: https://review.openstack.org/573913 Project: openstack/networking-hyperv Branch: refs/heads/master
-rw-r--r--tox.ini6
1 files changed, 6 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index a3e4658..9f99856 100644
--- a/tox.ini
+++ b/tox.ini
@@ -16,22 +16,28 @@ deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/re
16commands = python setup.py testr --slowest --testr-args='{posargs}' 16commands = python setup.py testr --slowest --testr-args='{posargs}'
17 17
18[testenv:pep8] 18[testenv:pep8]
19basepython = python3
19commands = flake8 20commands = flake8
20 21
21[testenv:venv] 22[testenv:venv]
23basepython = python3
22commands = {posargs} 24commands = {posargs}
23 25
24[testenv:cover] 26[testenv:cover]
27basepython = python3
25commands = python setup.py testr --coverage --testr-args='{posargs}' 28commands = python setup.py testr --coverage --testr-args='{posargs}'
26 29
27[testenv:docs] 30[testenv:docs]
31basepython = python3
28commands = python setup.py build_sphinx 32commands = python setup.py build_sphinx
29 33
30[testenv:releasenotes] 34[testenv:releasenotes]
35basepython = python3
31commands = 36commands =
32 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html 37 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
33 38
34[testenv:debug] 39[testenv:debug]
40basepython = python3
35commands = oslo_debug_helper {posargs} 41commands = oslo_debug_helper {posargs}
36 42
37[testenv:lower-constraints] 43[testenv:lower-constraints]