From 34fb5a065f8333fa7c9c98f0486fbdece1a4c8c5 Mon Sep 17 00:00:00 2001
From: Adrian Vladu <avladu@cloudbasesolutions.com>
Date: Wed, 17 May 2017 14:05:30 +0300
Subject: [PATCH] Use the openstack upper requirements

If the requirements and test requirements are not pinned,
there can be failures when the pypi repos are updates with packages
that are not backwards compatible.

By using OpenStack's upper requirements, this issue is mitigated.

Change-Id: I96b7f810644c3179979057f7e1f137b12e487f16
---
 tox.ini | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tox.ini b/tox.ini
index 8980f592..6ac0457a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,7 +5,7 @@ skipsdist = True
 
 [testenv]
 usedevelop = True
-install_command = pip install -U --force-reinstall {opts} {packages}
+install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} -U --force-reinstall {opts} {packages}
 setenv = VIRTUAL_ENV={envdir}
 
 deps = -r{toxinidir}/requirements.txt