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

+ 6
- 0
tox.ini View File

@@ -17,24 +17,30 @@ deps =
17 17
 commands = python setup.py test --slowest --testr-args='{posargs}'
18 18
 
19 19
 [testenv:pep8]
20
+basepython = python3
20 21
 commands = flake8 {posargs}
21 22
 
22 23
 [testenv:venv]
24
+basepython = python3
23 25
 commands = {posargs}
24 26
 
25 27
 [testenv:cover]
28
+basepython = python3
26 29
 commands = {toxinidir}/tools/cover.sh {posargs}
27 30
 
28 31
 [testenv:docs]
32
+basepython = python3
29 33
 commands =
30 34
     python tools/gen_errors.py
31 35
     python setup.py build_sphinx
32 36
 
33 37
 [testenv:releasenotes]
38
+basepython = python3
34 39
 commands =
35 40
   sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
36 41
 
37 42
 [testenv:debug]
43
+basepython = python3
38 44
 commands =
39 45
     find . -type f -name "*.pyc" -delete
40 46
     oslo_debug_helper -t muranopkgcheck/tests {posargs}

Loading…
Cancel
Save