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: Iaa7c9b9fca48dd2e091049da711e70395f6ec28e
huang.zhiping 8 months ago
parent
commit
ccd56bf0d4
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      tox.ini

+ 3
- 0
tox.ini View File

@@ -39,14 +39,17 @@ commands =
39 39
   stestr run --serial {posargs}
40 40
 
41 41
 [testenv:pep8]
42
+basepython = python3
42 43
 commands =
43 44
   flake8
44 45
   python setup.py check --restructuredtext --strict
45 46
 
46 47
 [testenv:venv]
48
+basepython = python3
47 49
 commands = {posargs}
48 50
 
49 51
 [testenv:cover]
52
+basepython = python3
50 53
 # Also do not run test_coverage_ext tests while gathering coverage as those
51 54
 # tests conflict with coverage.
52 55
 setenv =

Loading…
Cancel
Save