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: I14aef3de2d663ef36930285401a52f06eb30488d
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Doug Hellmann 7 months ago
parent
commit
ba13329fe6
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      tox.ini

+ 3
- 1
tox.ini View File

@@ -31,11 +31,12 @@ passenv = http_proxy
31 31
           OS_STDOUT_CAPTURE
32 32
 
33 33
 [testenv:pep8]
34
-basepython = python2.7
34
+basepython = python3
35 35
 commands = sh tools/pretty_flake8.sh
36 36
 
37 37
 
38 38
 [testenv:docs]
39
+basepython = python3
39 40
 commands = rm -rf doc/build
40 41
            sphinx-build -E -W -b html doc/source doc/build/html
41 42
 
@@ -66,6 +67,7 @@ deps = pip-check-reqs
66 67
 commands=pip-missing-reqs -d --ignore-file=designate/tests/* designate
67 68
 
68 69
 [testenv:venv]
70
+basepython = python3
69 71
 commands = {posargs}
70 72
 
71 73
 [flake8]

Loading…
Cancel
Save