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: I483632acf5a68075bbf200ffb172f945e5294cf8
changes/24/580924/1
Nguyen Hung Phuong 11 months ago
parent
commit
1298e765d1
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      tox.ini

+ 5
- 0
tox.ini View File

@@ -15,6 +15,7 @@ deps = scrapy>=1.0.0
15 15
 commands = python setup.py testr --slowest --testr-args='{posargs}'
16 16
 
17 17
 [testenv:pep8]
18
+basepython = python3
18 19
 commands =
19 20
     python setup.py check --restructuredtext --strict
20 21
     flake8
@@ -27,15 +28,18 @@ commands =
27 28
     bashate bin/doc-tools-check-languages
28 29
 
29 30
 [testenv:releasenotes]
31
+basepython = python3
30 32
 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
31 33
 
32 34
 [testenv:sitemap]
33 35
 # commands = functional test command goes here
34 36
 
35 37
 [testenv:venv]
38
+basepython = python3
36 39
 commands = {posargs}
37 40
 
38 41
 [testenv:docs]
42
+basepython = python3
39 43
 commands = python setup.py build_sphinx
40 44
 
41 45
 [testenv:bindep]
@@ -45,6 +49,7 @@ commands = python setup.py build_sphinx
45 49
 # separately, outside of the requirements files, and develop mode disabled
46 50
 # explicitly to avoid unnecessarily installing the checked-out repo too (this
47 51
 # further relies on "tox.skipsdist = True" above).
52
+basepython = python3
48 53
 deps = bindep
49 54
 commands = bindep test
50 55
 usedevelop = False

Loading…
Cancel
Save