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: Ia4d5692902d065ff3761b14d44a9e38815bc579f
qingszhao 10 months ago
parent
commit
76c6344d3e
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      tox.ini

+ 4
- 0
tox.ini View File

@@ -11,16 +11,20 @@ commands =
11 11
   python setup.py testr --slowest --testr-args='{posargs}'
12 12
 
13 13
 [testenv:pep8]
14
+basepython = python3
14 15
 commands = flake8 {posargs}
15 16
 
16 17
 [testenv:cover]
18
+basepython = python3
17 19
 commands =
18 20
   python setup.py testr --coverage
19 21
 
20 22
 [testenv:docs]
23
+basepython = python3
21 24
 commands = python setup.py build_sphinx
22 25
 
23 26
 [testenv:venv]
27
+basepython = python3
24 28
 commands = {posargs}
25 29
 
26 30
 [flake8]

Loading…
Cancel
Save