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: I66d77a977b76118d3a7b74f1f5b238370b43a38d
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
changes/23/606623/1
Doug Hellmann 8 months ago
parent
commit
f5a1c60493
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      tox.ini

+ 5
- 0
tox.ini View File

@@ -15,14 +15,17 @@ commands =
15 15
     stestr run {posargs}
16 16
 
17 17
 [testenv:pep8]
18
+basepython = python3
18 19
 sitepackages = False
19 20
 commands =
20 21
     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
 setenv =
27 30
     {[testenv]setenv}
28 31
     PYTHON=coverage run --source coverage2sql --parallel-mode
@@ -37,12 +40,14 @@ commands =
37 40
 
38 41
 
39 42
 [testenv:docs]
43
+basepython = python3
40 44
 commands = python setup.py build_sphinx
41 45
 
42 46
 [testenv:debug]
43 47
 commands = oslo_debug_helper {posargs}
44 48
 
45 49
 [testenv:releasenotes]
50
+basepython = python3
46 51
 commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
47 52
 
48 53
 [flake8]

Loading…
Cancel
Save