summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-09-26 18:47:47 -0400
committerDoug Hellmann <doug@doughellmann.com>2018-09-26 18:47:47 -0400
commitf5a1c604930c3454dc10a4c406db1c596b6e64b2 (patch)
tree21e234ec4b8da3ea3b4f91bfab5f477d8ea5b34e
parentf4f003bdb6a6be8506545b39e65aca85b8dc9a2a (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: I66d77a977b76118d3a7b74f1f5b238370b43a38d Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Notes
Notes (review): Code-Review+2: Masayuki Igawa <masayuki@igawa.io> Workflow+1: Masayuki Igawa <masayuki@igawa.io> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 18 Oct 2018 05:00:54 +0000 Reviewed-on: https://review.openstack.org/606623 Project: openstack/coverage2sql 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 f0ab231..7b20901 100644
--- a/tox.ini
+++ b/tox.ini
@@ -15,14 +15,17 @@ commands =
15 stestr run {posargs} 15 stestr run {posargs}
16 16
17[testenv:pep8] 17[testenv:pep8]
18basepython = python3
18sitepackages = False 19sitepackages = False
19commands = 20commands =
20 flake8 {posargs} 21 flake8 {posargs}
21 22
22[testenv:venv] 23[testenv:venv]
24basepython = python3
23commands = {posargs} 25commands = {posargs}
24 26
25[testenv:cover] 27[testenv:cover]
28basepython = python3
26setenv = 29setenv =
27 {[testenv]setenv} 30 {[testenv]setenv}
28 PYTHON=coverage run --source coverage2sql --parallel-mode 31 PYTHON=coverage run --source coverage2sql --parallel-mode
@@ -37,12 +40,14 @@ commands =
37 40
38 41
39[testenv:docs] 42[testenv:docs]
43basepython = python3
40commands = python setup.py build_sphinx 44commands = python setup.py build_sphinx
41 45
42[testenv:debug] 46[testenv:debug]
43commands = oslo_debug_helper {posargs} 47commands = oslo_debug_helper {posargs}
44 48
45[testenv:releasenotes] 49[testenv:releasenotes]
50basepython = python3
46commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html 51commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
47 52
48[flake8] 53[flake8]