summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyen Hung Phuong <phuongnh@vn.fujitsu.com>2018-07-09 13:40:33 +0700
committerNguyen Hung Phuong <phuongnh@vn.fujitsu.com>2018-07-09 13:41:19 +0700
commit1298e765d1e0f4753ad602644585c1d2b06f66e2 (patch)
tree1f4b94a9837151c4a7aaae08edcccdbbcb975f7a
parent3fdd0539f569eb77dce1354a37b5a61b37c527e9 (diff)
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
Notes
Notes (review): Code-Review+2: Andreas Jaeger <jaegerandi@gmail.com> Code-Review+2: Petr Kovar <pkovar@redhat.com> Workflow+1: Andreas Jaeger <jaegerandi@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 13 Jul 2018 15:32:38 +0000 Reviewed-on: https://review.openstack.org/580924 Project: openstack/openstack-doc-tools Branch: refs/heads/master
-rw-r--r--tox.ini5
1 files changed, 5 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 6d9541e..a73f03d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -15,6 +15,7 @@ deps = scrapy>=1.0.0
15commands = python setup.py testr --slowest --testr-args='{posargs}' 15commands = python setup.py testr --slowest --testr-args='{posargs}'
16 16
17[testenv:pep8] 17[testenv:pep8]
18basepython = python3
18commands = 19commands =
19 python setup.py check --restructuredtext --strict 20 python setup.py check --restructuredtext --strict
20 flake8 21 flake8
@@ -27,15 +28,18 @@ commands =
27 bashate bin/doc-tools-check-languages 28 bashate bin/doc-tools-check-languages
28 29
29[testenv:releasenotes] 30[testenv:releasenotes]
31basepython = python3
30commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html 32commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
31 33
32[testenv:sitemap] 34[testenv:sitemap]
33# commands = functional test command goes here 35# commands = functional test command goes here
34 36
35[testenv:venv] 37[testenv:venv]
38basepython = python3
36commands = {posargs} 39commands = {posargs}
37 40
38[testenv:docs] 41[testenv:docs]
42basepython = python3
39commands = python setup.py build_sphinx 43commands = python setup.py build_sphinx
40 44
41[testenv:bindep] 45[testenv:bindep]
@@ -45,6 +49,7 @@ commands = python setup.py build_sphinx
45# separately, outside of the requirements files, and develop mode disabled 49# separately, outside of the requirements files, and develop mode disabled
46# explicitly to avoid unnecessarily installing the checked-out repo too (this 50# explicitly to avoid unnecessarily installing the checked-out repo too (this
47# further relies on "tox.skipsdist = True" above). 51# further relies on "tox.skipsdist = True" above).
52basepython = python3
48deps = bindep 53deps = bindep
49commands = bindep test 54commands = bindep test
50usedevelop = False 55usedevelop = False