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: Ica0eb93b9b6703f9be57205eaae94cf9e2fb0268
tags/0.2.0
huang.zhiping 1 year ago
parent
commit
0a7ec630db
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      tox.ini

+ 5
- 0
tox.ini View File

@@ -17,18 +17,23 @@ deps = -r{toxinidir}/requirements.txt
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 = python setup.py test --coverage --testr-args='{posargs}'
27 30
 
28 31
 [testenv:docs]
32
+basepython = python3
29 33
 commands = python setup.py build_sphinx
30 34
 
31 35
 [testenv:debug]
36
+basepython = python3
32 37
 commands = oslo_debug_helper {posargs}
33 38
 
34 39
 [flake8]

Loading…
Cancel
Save