Browse Source

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

Zuul 10 months ago
parent
commit
d6b688a0da
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      openstack_requirements/check.py

+ 5
- 0
openstack_requirements/check.py View File

@@ -155,6 +155,11 @@ def _validate_one(name, reqs, blacklist, global_reqs):
155 155
                   "not match openstack/requirements value : %s" % (
156 156
                       name, str(req), str(global_reqs[name])))
157 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 163
     for extra, count in counts.items():
159 164
         if count != len(global_reqs[name]):
160 165
             print("Package %s%s requirement does not match "

Loading…
Cancel
Save