From 94d58fd71ea8846ab814079e994132ef6d2cd314 Mon Sep 17 00:00:00 2001 From: Alex Schultz Date: Wed, 30 May 2018 10:34:03 -0600 Subject: [PATCH] Add constraints to stable/newton cmd2 has dropped py2 support but the upper-constraints.txt will prevent the inclusion of the new version. We should use the stable constraints for testing. Change-Id: If4284277f3e634b9441205a07edd359223768ff2 Related-Bug: #1773936 --- tox.ini | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 66f151446..58c5db74a 100644 --- a/tox.ini +++ b/tox.ini @@ -6,8 +6,11 @@ envlist = py34,py27,pep8 [testenv] usedevelop = True setenv = VIRTUAL_ENV={envdir} -deps = -r{toxinidir}/test-requirements.txt - -r{toxinidir}/requirements.txt +install_command = pip install {opts} {packages} +deps = + -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/newton} + -r{toxinidir}/test-requirements.txt + -r{toxinidir}/requirements.txt commands = python setup.py testr --slowest --testr-args='{posargs}' [testenv:venv]