From 8a2d2ebd7987d5f67f9f1f251e84dda60e7a1484 Mon Sep 17 00:00:00 2001 From: Dantali0n Date: Fri, 2 Jul 2021 10:07:48 +0200 Subject: [PATCH] Manage constraints with testenv install_command This prevents having to duplicate the -c{} deps argument across all environments in tox.ini Change-Id: I681688df779557654b001caf33ca6ffbda08f43b --- tox.ini | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index ce5bb82..1a3ce69 100644 --- a/tox.ini +++ b/tox.ini @@ -14,8 +14,8 @@ setenv = VIRTUAL_ENV={envdir} whitelist_externals = /bin/bash rm find +install_command = pip install -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages} deps = - -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = @@ -40,7 +40,6 @@ commands = python setup.py testr --coverage --testr-args='{posargs}' [testenv:docs] deps = - -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/requirements.txt -r{toxinidir}/doc/requirements.txt commands = sphinx-build -W -b html doc/source doc/build/html