From 1c041315839f4024d63559c546084ebb7086f907 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Fri, 26 Oct 2018 15:01:54 +0100 Subject: [PATCH] Switch to ranges for dependencies to avoid conflicts in consumers tripleo-quickstart lists browbeat as a dependency and too strict requirements can cause conflicts. Avoid case where ansible version used by tripleo was downgraded to a buggy old version mentioned by browbeat. To be clear: if needed, it would be expected to add version capping here. If we know that ansible 2.9 will break the code it would be wise to add "<2.9" to it. Adding testing with newer versions would be subject of another change. If you add a capping please always add a link to the bug that made it necessary, it helps a lot later. Change-Id: I163a7088d687dbaf0a04f4b9c2f706652a92c7c4 --- requirements.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/requirements.txt b/requirements.txt index 2eb839af3..3ab40f46a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,10 @@ -ansible==2.4.1 +# to avoid dependency conflicts, try to use ranges, eventually banning a +# buggy minor version (!=) or capping (<) once you have proof it breaks. +ansible>=2.4.1 numpy elasticsearch -grafyaml==0.0.7 +grafyaml>=0.0.7 openstacksdk -python-dateutil==2.4.2 -python-openstackclient==3.11.0 -pykwalify==1.6.0 +python-dateutil>=2.4.2 +python-openstackclient>=3.11.0 +pykwalify>=1.6.0