summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqingszhao <zhao.daqing@99cloud.net>2018-06-12 01:13:23 +0800
committerqingszhao <zhao.daqing@99cloud.net>2018-06-12 01:14:20 +0800
commit76c6344d3e665383ad6219e26db8fcafebb2fff4 (patch)
tree8467b95f5c49dd26f620e31134ccc817e99d61bb
parentd7ac0ff7ca9efcc1624aae0a2431e0a5862b069f (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: Ia4d5692902d065ff3761b14d44a9e38815bc579f
Notes
Notes (review): Code-Review+2: Monty Taylor <mordred@inaugust.com> Workflow+1: Monty Taylor <mordred@inaugust.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 11 Jun 2018 18:05:18 +0000 Reviewed-on: https://review.openstack.org/574350 Project: openstack-infra/requestsexceptions Branch: refs/heads/master
-rw-r--r--tox.ini4
1 files changed, 4 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index dc7bc53..91cbd21 100644
--- a/tox.ini
+++ b/tox.ini
@@ -11,16 +11,20 @@ commands =
11 python setup.py testr --slowest --testr-args='{posargs}' 11 python setup.py testr --slowest --testr-args='{posargs}'
12 12
13[testenv:pep8] 13[testenv:pep8]
14basepython = python3
14commands = flake8 {posargs} 15commands = flake8 {posargs}
15 16
16[testenv:cover] 17[testenv:cover]
18basepython = python3
17commands = 19commands =
18 python setup.py testr --coverage 20 python setup.py testr --coverage
19 21
20[testenv:docs] 22[testenv:docs]
23basepython = python3
21commands = python setup.py build_sphinx 24commands = python setup.py build_sphinx
22 25
23[testenv:venv] 26[testenv:venv]
27basepython = python3
24commands = {posargs} 28commands = {posargs}
25 29
26[flake8] 30[flake8]