8000 Address https://github.com/bazelbuild/rules_python/issues/289 (#328) · satishhiremath/rules_python@cfcc675 · GitHub
[go: up one dir, main page]

Skip to content

Commit cfcc675

Browse files
Co-authored-by: Andy Scott <andyscott@users.noreply.github.com>
1 parent 06672cd commit cfcc675

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packaging/whl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def dependencies(self, extra=None):
8080
of the named "extra".
8181
8282
Yields:
83-
the names of requirements from the metadata.json
83+
the names of requirements from the metadata.json, in lexical order.
8484
"""
8585
# TODO(mattmoor): Is there a schema to follow for this?
8686
dependency_set = set()
@@ -101,7 +101,7 @@ def dependencies(self, extra=None):
101101
parts = re.split('[ ><=()]', entry)
102102
dependency_set.add(parts[0])
103103

104-
return dependency_set
104+
return sorted(dependency_set)
105105

106106
def extras(self):
107107
return self.metadata().get('extras', [])

0 commit comments

Comments
 (0)
0