summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhuang.zhiping <huang.zhiping@99cloud.net>2018-06-09 16:24:26 +0800
committerAndriy Shevchenko <huang.zhiping@99cloud.net>2018-08-15 02:20:45 +0000
commitc9e152ac0a3fe63cd5a4bb91e4b7b8ef5e0fa8dd (patch)
tree6e5fed0b2c8380d9f89fe44366720cef11eed5c9
parente9098965f5b51fa5ebe9eca2e6321060e4cb4573 (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: Ic282312d4fb3474a5d9319acb1b438e6fdb0077a
Notes
Notes (review): Code-Review+1: Filippo Inzaghi <zhao.daqing@99cloud.net> Code-Review+2: sean mooney <work@seanmooney.info> Workflow+1: sean mooney <work@seanmooney.info> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 15 Aug 2018 20:03:16 +0000 Reviewed-on: https://review.openstack.org/573923 Project: openstack/networking-ovs-dpdk Branch: refs/heads/master
-rw-r--r--tox.ini5
1 files changed, 5 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 88a784a..2f762e0 100644
--- a/tox.ini
+++ b/tox.ini
@@ -19,21 +19,26 @@ commands =
19# mode. To do this define the TRACE_FAILONLY environmental variable. 19# mode. To do this define the TRACE_FAILONLY environmental variable.
20 20
21[testenv:pep8] 21[testenv:pep8]
22basepython = python3
22commands = flake8 23commands = flake8
23 24
24[testenv:venv] 25[testenv:venv]
26basepython = python3
25commands = {posargs} 27commands = {posargs}
26 28
27[testenv:cover] 29[testenv:cover]
30basepython = python3
28commands = 31commands =
29 coverage erase 32 coverage erase
30 python setup.py test --coverage --coverage-package-name=networking_ovs_dpdk --testr-args='{posargs}' 33 python setup.py test --coverage --coverage-package-name=networking_ovs_dpdk --testr-args='{posargs}'
31 coverage report 34 coverage report
32 35
33[testenv:docs] 36[testenv:docs]
37basepython = python3
34commands = python setup.py build_sphinx 38commands = python setup.py build_sphinx
35 39
36[testenv:releasenotes] 40[testenv:releasenotes]
41basepython = python3
37commands = 42commands =
38 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html 43 sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
39 44