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

+ 3
- 0
tox.ini View File

@@ -12,12 +12,15 @@ deps = -r{toxinidir}/requirements.txt
12 12
        -r{toxinidir}/test-requirements.txt
13 13
 
14 14
 [testenv:venv]
15
+basepython = python3
15 16
 commands = {posargs}
16 17
 
17 18
 [testenv:docs]
19
+basepython = python3
18 20
 commands = python setup.py build_sphinx
19 21
 
20 22
 [testenv:pep8]
23
+basepython = python3
21 24
 description = Runs set of linters against codebase (checkniceness)
22 25
 commands = {[testenv:checkniceness]commands}
23 26
 

Loading…
Cancel
Save