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: I33a23c7721a91d217425ef4da7a0760d0b45e80e
melissaml 9 months ago
parent
commit
397b4cee3b
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      tox.ini

+ 4
- 0
tox.ini View File

@@ -35,6 +35,7 @@ setenv =
35 35
 
36 36
 
37 37
 [testenv:docs]
38
+basepython = python3
38 39
 deps = -r{toxinidir}/doc/requirements.txt
39 40
 commands=
40 41
     bash -c "rm -rf doc/build"
@@ -48,6 +49,7 @@ extensions = .rst
48 49
 
49 50
 
50 51
 [testenv:releasenotes]
52
+basepython = python3
51 53
 deps = -r{toxinidir}/doc/requirements.txt
52 54
 commands =
53 55
     sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
@@ -55,11 +57,13 @@ commands =
55 57
 
56 58
 # environment used by the -infra templated docs job
57 59
 [testenv:venv]
60
+basepython = python3
58 61
 commands =
59 62
     {posargs}
60 63
 
61 64
 
62 65
 [testenv:pep8]
66
+basepython = python3
63 67
 commands =
64 68
     bash -c "{toxinidir}/tests/common/test-pep8.sh"
65 69
 

Loading…
Cancel
Save