summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcaoyuan <cao.yuan@99cloud.net>2019-12-19 22:44:40 +0800
committercaoyuan <cao.yuan@99cloud.net>2019-12-19 22:47:29 +0800
commitb53efb7fcb25bbd80b8e6581cf2725d8e14fd59e (patch)
treeed5d8b6b9973baa03a9ded97bfe2da887f98527b
parent39923ae345db4ed573b03ffbc8b22bde9c0d023c (diff)
downloadoslo-context-b53efb7fcb25bbd80b8e6581cf2725d8e14fd59e.tar.gz
tox: Trivial cleanup
move 'basepython' to the top-level 'testenv' Change-Id: Icd5c18a2eb0d75f015e7ea7ee3c6554055a24798
-rw-r--r--tox.ini10
1 files changed, 3 insertions, 7 deletions
diff --git a/tox.ini b/tox.ini
index f5d0f36..4886b40 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,8 +1,10 @@
[tox]
-minversion = 2.0
+minversion = 3.1
envlist = py27,py37,pep8
+ignore_basepython_conflict = True
[testenv]
+basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
@@ -10,7 +12,6 @@ deps =
commands = stestr run --slowest {posargs}
[testenv:pep8]
-basepython = python3
deps =
-r{toxinidir}/test-requirements.txt
commands =
@@ -19,11 +20,9 @@ commands =
bandit -r oslo_context -x tests -n5
[testenv:venv]
-basepython = python3
commands = {posargs}
[testenv:docs]
-basepython = python3
whitelist_externals = rm
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
@@ -33,7 +32,6 @@ commands =
sphinx-build -W --keep-going -b html doc/source doc/build/html
[testenv:cover]
-basepython = python3
setenv =
PYTHON=coverage run --source oslo_context --parallel-mode
commands =
@@ -53,7 +51,6 @@ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
import_exceptions =
[testenv:releasenotes]
-basepython = python3
whitelist_externals = rm
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
@@ -63,7 +60,6 @@ commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
[testenv:lower-constraints]
-basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt