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

+ 3
- 3
tox.ini View File

@@ -8,16 +8,16 @@ deps = -r{toxinidir}/requirements.txt
8 8
        -r{toxinidir}/test-requirements.txt
9 9
 
10 10
 [testenv:venv]
11
+basepython = python3
11 12
 commands = {posargs}
12 13
 
13 14
 [testenv:pep8]
14
-basepython = python2.7
15
+basepython = python3
15 16
 commands =
16 17
     doc8 README.rst doc/source specs
17 18
 
18 19
 [testenv:docs]
19
-# TODO(milan): remove the version pin once feedformatter supports python3
20
-basepython = python2.7
20
+basepython = python3
21 21
 commands = python setup.py build_sphinx
22 22
 
23 23
 [testenv:spelling]

Loading…
Cancel
Save