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: I7a3be998629ea8ea56ede75bdd05380019cc9372
huang.zhiping 10 months ago
parent
commit
25d1ff9c17
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      tox.ini

+ 4
- 0
tox.ini View File

@@ -21,10 +21,12 @@ deps =
21 21
 basepython = python2.7
22 22
 
23 23
 [testenv:pep8]
24
+basepython = python3
24 25
 commands = flake8
25 26
 skip_install = True
26 27
 
27 28
 [testenv:cover]
29
+basepython = python3
28 30
 setenv =
29 31
     {[testenv]setenv}
30 32
     PYTHON=coverage run --source shade --parallel-mode
@@ -35,9 +37,11 @@ commands =
35 37
     coverage xml -o cover/coverage.xml
36 38
 
37 39
 [testenv:docs]
40
+basepython = python3
38 41
 commands = python setup.py build_sphinx
39 42
 
40 43
 [testenv:venv]
44
+basepython = python3
41 45
 usedevelop = true
42 46
 commands = {posargs}
43 47
 

Loading…
Cancel
Save