Merge "make requirements check job check for minimum version definitions."

This commit is contained in:
Zuul 2018-06-15 02:49:10 +00:00 committed by Gerrit Code Review
commit d6b688a0da
1 changed files with 5 additions and 0 deletions

View File

@ -155,6 +155,11 @@ def _validate_one(name, reqs, blacklist, global_reqs):
"not match openstack/requirements value : %s" % (
name, str(req), str(global_reqs[name])))
return True
# check for minimum being defined
min = [s for s in req.specifiers.split(',') if '>' in s]
if not min:
print("Requirement for package %s has no lower bound" % name)
return True
for extra, count in counts.items():
if count != len(global_reqs[name]):
print("Package %s%s requirement does not match "