summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-06-06 14:50:07 -0400
committerDoug Hellmann <doug@doughellmann.com>2018-06-06 14:53:49 -0400
commitf2b7bbe41abe8d88c2ff6c7b3cc82a530ac1c303 (patch)
tree84e2ad434e7145160907dec4306ef24873f095f1
parent2b512193766b22e20b789daca0192530b1501f6c (diff)
downloadtaskflow-f2b7bbe41abe8d88c2ff6c7b3cc82a530ac1c303.tar.gz
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: Id7f0cc773ddc6bdcf464574fc7faa9216db71e09 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
-rw-r--r--tox.ini9
1 files changed, 8 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 9ae3a7e..d2cb1e7 100644
--- a/tox.ini
+++ b/tox.ini
@@ -11,7 +11,6 @@ envlist =
update-states
[testenv]
-basepython = python3
setenv =
VIRTUAL_ENV={envdir}
BRANCH_NAME=master
@@ -26,35 +25,41 @@ commands =
python setup.py testr --slowest --testr-args='{posargs}'
[testenv:docs]
+basepython = python3
deps =
-r{toxinidir}/doc/requirements.txt
commands =
sphinx-build -E -W -b html doc/source doc/build/html
[testenv:update-states]
+basepython = python3
deps =
{[testenv]deps}
pydot2
commands = {toxinidir}/tools/update_states.sh
[testenv:pep8]
+basepython = python3
commands =
flake8 {posargs}
doc8 doc/source
[testenv:pylint]
+basepython = python3
deps =
{[testenv]deps}
pylint==0.26.0
commands = pylint --rcfile=pylintrc taskflow
[testenv:cover]
+basepython = python3
deps =
{[testenv]deps}
coverage>=3.6
commands = python setup.py testr --coverage --testr-args='{posargs}'
[testenv:venv]
+basepython = python3
commands = {posargs}
[flake8]
@@ -79,10 +84,12 @@ ignore-path = doc/*/target,doc/*/build*
basepython = python2.7
[testenv:releasenotes]
+basepython = python3
deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:lower-constraints]
+basepython = python3
install_command = pip install {opts} {packages}
deps =
-c{toxinidir}/lower-constraints.txt