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: I6faa7c3e39f02d765d7ceed4a69490b2092c6fee
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
changes/29/606629/1
Doug Hellmann 8 months ago
parent
commit
4f1ca7601f
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      tox.ini

+ 4
- 0
tox.ini View File

@@ -17,15 +17,19 @@ basepython = python3
17 17
 commands = flake8 {posargs}
18 18
 
19 19
 [testenv:venv]
20
+basepython = python3
20 21
 commands = {posargs}
21 22
 
22 23
 [testenv:cover]
24
+basepython = python3
23 25
 commands = python setup.py test --coverage --testr-args='{posargs}'
24 26
 
25 27
 [testenv:docs]
28
+basepython = python3
26 29
 commands = python setup.py build_sphinx
27 30
 
28 31
 [testenv:releasenotes]
32
+basepython = python3
29 33
 commands =
30 34
   sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
31 35
 

Loading…
Cancel
Save