summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorhuang.zhiping <huang.zhiping@99cloud.net>2018-10-03 01:58:43 +0000
committerhuang.zhiping <huang.zhiping@99cloud.net>2018-10-03 01:59:05 +0000
commit4748818fa857fc8618457778bd8e663cc1bd3aff (patch)
treeff3c652cf98cd104c72343fcf28048b744c2f9f5 /tox.ini
parentc13558ba09a71f8858dcf9e9ef1141c31fb5eacc (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: Iafb959ea0c81fd0a89faee48949dc0f0af3457b5
Notes
Notes (review): Code-Review+2: Dobroslaw Zybort <dobroslaw.zybort@ts.fujitsu.com> Workflow+1: Dobroslaw Zybort <dobroslaw.zybort@ts.fujitsu.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 19 Nov 2018 14:01:43 +0000 Reviewed-on: https://review.openstack.org/607445 Project: openstack/monasca-specs Branch: refs/heads/master
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini2
1 files changed, 2 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index f1c95c5..bf3aacb 100644
--- a/tox.ini
+++ b/tox.ini
@@ -25,12 +25,14 @@ description = Runs set of linters against codebase (checkniceness)
25commands = {[testenv:checkniceness]commands} 25commands = {[testenv:checkniceness]commands}
26 26
27[testenv:checkniceness] 27[testenv:checkniceness]
28basepython = python3
28description = Validates (pep-like) documenation 29description = Validates (pep-like) documenation
29skip_install = True 30skip_install = True
30usedevelop = False 31usedevelop = False
31commands = doc8 --file-encoding utf-8 {toxinidir}/doc 32commands = doc8 --file-encoding utf-8 {toxinidir}/doc
32 33
33[testenv:spelling] 34[testenv:spelling]
35basepython = python3
34deps = 36deps =
35 -r{toxinidir}/requirements.txt 37 -r{toxinidir}/requirements.txt
36 sphinxcontrib-spelling 38 sphinxcontrib-spelling