Browse Source

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
huang.zhiping 10 months ago
parent
commit
c9e152ac0a
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      tox.ini

+ 5
- 0
tox.ini View File

@@ -19,21 +19,26 @@ commands =
19 19
 # mode. To do this define the TRACE_FAILONLY environmental variable.
20 20
 
21 21
 [testenv:pep8]
22
+basepython = python3
22 23
 commands = flake8
23 24
 
24 25
 [testenv:venv]
26
+basepython = python3
25 27
 commands = {posargs}
26 28
 
27 29
 [testenv:cover]
30
+basepython = python3
28 31
 commands =
29 32
   coverage erase
30 33
   python setup.py test --coverage --coverage-package-name=networking_ovs_dpdk --testr-args='{posargs}'
31 34
   coverage report
32 35
 
33 36
 [testenv:docs]
37
+basepython = python3
34 38
 commands = python setup.py build_sphinx
35 39
 
36 40
 [testenv:releasenotes]
41
+basepython = python3
37 42
 commands =
38 43
   sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
39 44
 

Loading…
Cancel
Save