make requirements check job check for minimum version definitions.
While we don't track the minimum version of a given requirement in requirements.txt we still need to ensure that they exist. Change-Id: I84bfbc3a1db4032ee1a2b5995e6930978be42828 Closes-Bug: #1776247
This commit is contained in:
parent
17c857251d
commit
7e91070789
@ -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 "
|
||||
|
Loading…
Reference in New Issue
Block a user