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: If28474c5c68649785b19fd07bf9287da5f378e8e
changes/79/580079/2
Nguyen Hung Phuong 11 months ago
parent
commit
08b7704802
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      tox.ini

+ 4
- 0
tox.ini View File

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

Loading…
Cancel
Save