summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-09-26 19:04:00 -0400
committerDoug Hellmann <doug@doughellmann.com>2018-09-26 19:04:00 -0400
commit33096222a655d0a13efdaee615d664a2d8e9a0c2 (patch)
treeba9402b0b3e7006783ca53d344a8ef08a8767b64
parentfcc9849828c69959c412214f0f30c40534d1065e (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: I4e3c8a76cee08a327c1e648605e70f5e58eb9490 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Notes
Notes (review): Code-Review+2: Emilien Macchi <emilien@redhat.com> Workflow+1: Emilien Macchi <emilien@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 08 Oct 2018 04:06:55 +0000 Reviewed-on: https://review.openstack.org/607752 Project: openstack/os-refresh-config Branch: refs/heads/master
-rw-r--r--tox.ini3
1 files changed, 3 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 35f9cc2..a3f0e0b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -17,9 +17,11 @@ commands =
17sitepackages = True 17sitepackages = True
18 18
19[testenv:pep8] 19[testenv:pep8]
20basepython = python3
20commands = flake8 21commands = flake8
21 22
22[testenv:cover] 23[testenv:cover]
24basepython = python3
23setenv = 25setenv =
24 PYTHON=coverage run --source os_refresh_config --parallel-mode 26 PYTHON=coverage run --source os_refresh_config --parallel-mode
25commands = 27commands =
@@ -29,6 +31,7 @@ commands =
29 coverage xml -o cover/coverage.xml 31 coverage xml -o cover/coverage.xml
30 32
31[testenv:venv] 33[testenv:venv]
34basepython = python3
32commands = {posargs} 35commands = {posargs}
33 36
34[flake8] 37[flake8]