From cf6763c3206864cd7ac098af9a9f8a148d080c83 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 11 Dec 2016 17:01:43 +0100 Subject: [PATCH] Add Constraints support Adding constraints support to clients is slightly more complex than services as the clients themselves are listed in upper-constraints.txt which leads to errors that you can't install a specific version and a constrained version. This change adds constraints support by also adding a helper script to edit the constraints to remove tripleo-common. Change-Id: I773849a84014203366e88432e2cad57b6685065e --- tox.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 12cc4a4c9..e16f0efec 100644 --- a/tox.ini +++ b/tox.ini @@ -5,9 +5,10 @@ skipsdist = True [testenv] usedevelop = True -install_command = pip install -U {opts} {packages} +install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} setenv = VIRTUAL_ENV={envdir} + CLIENT_NAME=tripleo-common deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = python setup.py test --slowest --testr-args='{posargs}'