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

+ 3
- 0
tox.ini View File

@@ -7,14 +7,17 @@ deps = -r{toxinidir}/test-requirements.txt
7 7
 commands = stestr run --slowest {posargs}
8 8
 
9 9
 [testenv:pep8]
10
+basepython = python3
10 11
 deps=-r{toxinidir}/test-requirements.txt
11 12
 commands =
12 13
   flake8
13 14
 
14 15
 [testenv:venv]
16
+basepython = python3
15 17
 commands = {posargs}
16 18
 
17 19
 [testenv:docs]
20
+basepython = python3
18 21
 commands = python setup.py build_sphinx
19 22
 
20 23
 [flake8]

Loading…
Cancel
Save