8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06672cd commit cfcc675Copy full SHA for cfcc675
packaging/whl.py
@@ -80,7 +80,7 @@ def dependencies(self, extra=None):
80
of the named "extra".
81
82
Yields:
83
- the names of requirements from the metadata.json
+ the names of requirements from the metadata.json, in lexical order.
84
"""
85
# TODO(mattmoor): Is there a schema to follow for this?
86
dependency_set = set()
@@ -101,7 +101,7 @@ def dependencies(self, extra=None):
101
parts = re.split('[ ><=()]', entry)
102
dependency_set.add(parts[0])
103
104
- return dependency_set
+ return sorted(dependency_set)
105
106
def extras(self):
107
return self.metadata().get('extras', [])
0 commit comments