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: Iafb959ea0c81fd0a89faee48949dc0f0af3457b5
changes/45/607445/1
huang.zhiping 9 months ago
parent
commit
4748818fa8
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      tox.ini

+ 2
- 0
tox.ini View File

@@ -25,12 +25,14 @@ description = Runs set of linters against codebase (checkniceness)
25 25
 commands = {[testenv:checkniceness]commands}
26 26
 
27 27
 [testenv:checkniceness]
28
+basepython = python3
28 29
 description = Validates (pep-like) documenation
29 30
 skip_install = True
30 31
 usedevelop = False
31 32
 commands = doc8 --file-encoding utf-8 {toxinidir}/doc
32 33
 
33 34
 [testenv:spelling]
35
+basepython = python3
34 36
 deps =
35 37
    -r{toxinidir}/requirements.txt
36 38
    sphinxcontrib-spelling

Loading…
Cancel
Save