summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-06-15 02:49:10 +0000
committerGerrit Code Review <review@openstack.org>2018-06-15 02:49:10 +0000
commitd6b688a0daccf2aac864445451322747620cbfac (patch)
tree1e86b66bcd4fd12ac081b13c430ae950f1b57f37
parent4ad77124324e1a55efeb3921f366c053512a262f (diff)
parent7e91070789187d9e6b5ac2b57ca755504e058e32 (diff)
Merge "make requirements check job check for minimum version definitions."
-rw-r--r--openstack_requirements/check.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/openstack_requirements/check.py b/openstack_requirements/check.py
index 92d62ed..60d7ada 100644
--- a/openstack_requirements/check.py
+++ b/openstack_requirements/check.py
@@ -155,6 +155,11 @@ def _validate_one(name, reqs, blacklist, global_reqs):
155 "not match openstack/requirements value : %s" % ( 155 "not match openstack/requirements value : %s" % (
156 name, str(req), str(global_reqs[name]))) 156 name, str(req), str(global_reqs[name])))
157 return True 157 return True
158 # check for minimum being defined
159 min = [s for s in req.specifiers.split(',') if '>' in s]
160 if not min:
161 print("Requirement for package %s has no lower bound" % name)
162 return True
158 for extra, count in counts.items(): 163 for extra, count in counts.items():
159 if count != len(global_reqs[name]): 164 if count != len(global_reqs[name]):
160 print("Package %s%s requirement does not match " 165 print("Package %s%s requirement does not match "