summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-06-06 16:06:01 -0400
committerDoug Hellmann <doug@doughellmann.com>2018-06-06 16:06:01 -0400
commita245fd5f8f6306ac171cfe8907b3b4bb99016a00 (patch)
tree0129ebee33a18ba28996a4c4334c179b3d62c276 /tox.ini
parent7f990ffa16117769f7616779dd94f81c8d676511 (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: I59ac21cb0d34f0b6767c736d0419eb6b874efca1 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Notes
Notes (review): Code-Review+2: Goutham Pacha Ravi <gouthampravi@gmail.com> Code-Review+1: Nguyen Hai <nguyentrihai93@gmail.com> Code-Review+1: zhongshengping <chdzsp@163.com> Code-Review+2: zhongjun <jun.zhongjun2@gmail.com> Workflow+1: zhongjun <jun.zhongjun2@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 08 Jun 2018 18:59:51 +0000 Reviewed-on: https://review.openstack.org/572965 Project: openstack/manila Branch: refs/heads/master
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini9
1 files changed, 9 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index f86a0be..04ae68b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -16,6 +16,7 @@ commands =
16 stestr slowest 16 stestr slowest
17 17
18[testenv:releasenotes] 18[testenv:releasenotes]
19basepython = python3
19deps = 20deps =
20 -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} 21 -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
21 -r{toxinidir}/requirements.txt 22 -r{toxinidir}/requirements.txt
@@ -27,6 +28,7 @@ commands =
27whitelist_externals = rm 28whitelist_externals = rm
28 29
29[testenv:debug] 30[testenv:debug]
31basepython = python3
30commands = oslo_debug_helper {posargs} 32commands = oslo_debug_helper {posargs}
31 33
32[testenv:debug-py27] 34[testenv:debug-py27]
@@ -60,17 +62,21 @@ commands =
60 {toxinidir}/tools/check_logging.sh {toxinidir}/manila 62 {toxinidir}/tools/check_logging.sh {toxinidir}/manila
61 63
62[testenv:genconfig] 64[testenv:genconfig]
65basepython = python3
63whitelist_externals = bash 66whitelist_externals = bash
64commands = 67commands =
65 oslo-config-generator --config-file etc/oslo-config-generator/manila.conf 68 oslo-config-generator --config-file etc/oslo-config-generator/manila.conf
66 69
67[testenv:genpolicy] 70[testenv:genpolicy]
71basepython = python3
68commands = oslopolicy-sample-generator --config-file=etc/manila/manila-policy-generator.conf 72commands = oslopolicy-sample-generator --config-file=etc/manila/manila-policy-generator.conf
69 73
70[testenv:venv] 74[testenv:venv]
75basepython = python3
71commands = {posargs} 76commands = {posargs}
72 77
73[testenv:docs] 78[testenv:docs]
79basepython = python3
74deps = 80deps =
75 -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} 81 -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
76 -r{toxinidir}/requirements.txt 82 -r{toxinidir}/requirements.txt
@@ -83,6 +89,7 @@ commands =
83whitelist_externals = rm 89whitelist_externals = rm
84 90
85[testenv:cover] 91[testenv:cover]
92basepython = python3
86setenv = 93setenv =
87 {[testenv]setenv} 94 {[testenv]setenv}
88 PYTHON=coverage run --source manila --parallel-mode 95 PYTHON=coverage run --source manila --parallel-mode
@@ -109,6 +116,7 @@ deps = -r{toxinidir}/requirements.txt
109commands = python tools/lintstack.py check 116commands = python tools/lintstack.py check
110 117
111[testenv:api-ref] 118[testenv:api-ref]
119basepython = python3
112# This environment is called from CI scripts to test and publish 120# This environment is called from CI scripts to test and publish
113# the API Ref to developer.openstack.org. 121# the API Ref to developer.openstack.org.
114whitelist_externals = rm 122whitelist_externals = rm
@@ -117,6 +125,7 @@ commands =
117 sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html 125 sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
118 126
119[testenv:dbrevision] 127[testenv:dbrevision]
128basepython = python3
120deps = -r{toxinidir}/requirements.txt 129deps = -r{toxinidir}/requirements.txt
121commands = alembic -c manila/db/migrations/alembic.ini revision -m ""{posargs} 130commands = alembic -c manila/db/migrations/alembic.ini revision -m ""{posargs}
122 131