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

+ 4
- 0
tox.ini View File

@@ -12,13 +12,16 @@ commands = bash -c 'if [ ! -d ./.testrepository ] ; then testr init ; fi'
12 12
            testr run {posargs}
13 13
 
14 14
 [testenv:pep8]
15
+basepython = python3
15 16
 commands = flake8
16 17
 
17 18
 [testenv:docs]
19
+basepython = python3
18 20
 deps = -r{toxinidir}/doc/requirements.txt
19 21
 commands = sphinx-build -W -b html doc/source doc/build/html
20 22
 
21 23
 [testenv:venv]
24
+basepython = python3
22 25
 commands = {posargs}
23 26
 
24 27
 [flake8]
@@ -27,5 +30,6 @@ builtins = _
27 30
 exclude=.venv,.git,.tox,*lib/python*,private,.eggs
28 31
 
29 32
 [testenv:releasenotes]
33
+basepython = python3
30 34
 deps = -r{toxinidir}/doc/requirements.txt
31 35
 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html

Loading…
Cancel
Save