summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-06-06 15:27:00 -0400
committerDoug Hellmann <doug@doughellmann.com>2018-06-06 15:27:00 -0400
commitce39e2aa44408d5288310f0b0cddfd21a31eb5c1 (patch)
treecba14217d34d5bc83af459ccae14d04eadbadb0a
parentd8cd9860de437cef1976d68e3d2cda8ec67f3619 (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: If807d4aba6e1dac661f6a380f4309d4563510106 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Notes
Notes (review): Code-Review+1: Hongbin Lu <hongbin034@gmail.com> Code-Review+1: Liping Mao <limao@cisco.com> Code-Review+1: melissaml <ma.lei@99cloud.net> Code-Review+1: Nguyen Hai <nguyentrihai93@gmail.com> Code-Review+2: Antoni Segura Puimedon <celebdor@gmail.com> Code-Review+2: Berezovsky Irena <irenab.dev@gmail.com> Workflow+1: Berezovsky Irena <irenab.dev@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 07 Jun 2018 08:41:57 +0000 Reviewed-on: https://review.openstack.org/572908 Project: openstack/kuryr Branch: refs/heads/master
-rw-r--r--tox.ini8
1 files changed, 8 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 7801d9f..4b9f446 100644
--- a/tox.ini
+++ b/tox.ini
@@ -26,6 +26,7 @@ basepython = python2.7
26setenv = OS_TEST_PATH=./kuryr/tests/fullstack 26setenv = OS_TEST_PATH=./kuryr/tests/fullstack
27 27
28[testenv:debug] 28[testenv:debug]
29basepython = python3
29commands = oslo_debug_helper -t kuryr/tests {posargs} 30commands = oslo_debug_helper -t kuryr/tests {posargs}
30 31
31[testenv:debug-py27] 32[testenv:debug-py27]
@@ -37,18 +38,22 @@ basepython = python3.5
37commands = oslo_debug_helper -t kuryr/tests {posargs} 38commands = oslo_debug_helper -t kuryr/tests {posargs}
38 39
39[testenv:pep8] 40[testenv:pep8]
41basepython = python3
40commands = flake8 42commands = flake8
41 43
42[testenv:venv] 44[testenv:venv]
45basepython = python3
43commands = {posargs} 46commands = {posargs}
44 47
45[testenv:cover] 48[testenv:cover]
49basepython = python3
46commands = 50commands =
47 python setup.py test --coverage --testr-args='{posargs}' \ 51 python setup.py test --coverage --testr-args='{posargs}' \
48 --coverage-package-name=kuryr.lib 52 --coverage-package-name=kuryr.lib
49 coverage report 53 coverage report
50 54
51[testenv:docs] 55[testenv:docs]
56basepython = python3
52commands = python setup.py build_sphinx 57commands = python setup.py build_sphinx
53 58
54[flake8] 59[flake8]
@@ -63,6 +68,7 @@ show-source = true
63exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,.ropeproject,rally-scenarios,releasenotes 68exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,.ropeproject,rally-scenarios,releasenotes
64 69
65[testenv:pylint] 70[testenv:pylint]
71basepython = python3
66deps = 72deps =
67 {[testenv]deps} 73 {[testenv]deps}
68 pylint 74 pylint
@@ -74,9 +80,11 @@ import_exceptions = neutron.i18n
74local-check-factory = neutron_lib.hacking.checks.factory 80local-check-factory = neutron_lib.hacking.checks.factory
75 81
76[testenv:genconfig] 82[testenv:genconfig]
83basepython = python3
77commands = oslo-config-generator --config-file=etc/kuryr-config-generator.conf 84commands = oslo-config-generator --config-file=etc/kuryr-config-generator.conf
78 85
79[testenv:releasenotes] 86[testenv:releasenotes]
87basepython = python3
80commands = sphinx-build -a -W -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html 88commands = sphinx-build -a -W -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
81 89
82[testenv:lower-constraints] 90[testenv:lower-constraints]