From 75f528fdedc5fcce9ab566bbcd43f2f0d80bba84 Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Mon, 14 Dec 2020 14:09:35 +0100 Subject: [PATCH] Avoid a full install in tox environments that do not need it Usage of usedevelop=True results in all requirements.txt dependencies always installed (without constraints) even when requirements.txt is not explicitly added. Override usedevelop for these environments. Change-Id: I71ec737454fa42775168a0df948ba9bbb1379dcc --- tox.ini | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tox.ini b/tox.ini index 4179de927..fbbf14b78 100644 --- a/tox.ini +++ b/tox.ini @@ -18,6 +18,7 @@ commands = stestr run --slowest {posargs} passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY [testenv:pep8] +usedevelop = False deps = Pygments>=2.2.0 # BSD license doc8>=0.6.0 # Apache-2.0 @@ -35,12 +36,14 @@ commands = {posargs} commands = python setup.py test --coverage --testr-args='{posargs}' [testenv:docs] +usedevelop = False deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/doc/requirements.txt commands = sphinx-build -W -b html doc/source doc/build/html [testenv:pdf-docs] +usedevelop = False whitelist_externals = make deps = {[testenv:docs]deps} commands = @@ -51,6 +54,7 @@ commands = commands = oslo_debug_helper -t bifrost/tests {posargs} [testenv:releasenotes] +usedevelop = False deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/doc/requirements.txt @@ -78,6 +82,7 @@ deps = -r{toxinidir}/requirements.txt [testenv:linters] +usedevelop = False whitelist_externals = bash deps = ansible>=2.10.0,<2.11