From 6db6274f8059a9d3f2db5f01c5df2f6a6eaf303b Mon Sep 17 00:00:00 2001 From: Tony Breeds Date: Tue, 13 Dec 2016 15:10:08 +1100 Subject: Add Constraints support Adding constraints support to libraries is slightly more complex than services as the libraries 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 oslo.policy. Change-Id: If11bb645e9722762ae18c55c7b2808a238d6c3f1 --- tox.ini | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 85f632a..b78c669 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,13 @@ [tox] -minversion = 1.6 +minversion = 2.0 envlist = py35,py34,py27,pep8,docs [testenv] +setenv = + VIRTUAL_ENV={envdir} + BRANCH_NAME=master + CLIENT_NAME=oslo.policy +install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} deps = -r{toxinidir}/test-requirements.txt commands = python setup.py testr --slowest --testr-args='{posargs}' -- cgit v1.2.1