Matej Cepl
cd599d0344
- Add remove_mock.patch to remove dependency on the external mock package. OBS-URL: https://build.opensuse.org/request/show/855342 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=209
46 lines
1.4 KiB
Diff
46 lines
1.4 KiB
Diff
--- a/setuptools/command/easy_install.py
|
|
+++ b/setuptools/command/easy_install.py
|
|
@@ -423,7 +423,7 @@ class easy_install(Command):
|
|
for spec in self.args:
|
|
self.easy_install(spec, not self.no_deps)
|
|
if self.record:
|
|
- outputs = self.outputs
|
|
+ outputs = list(sorted(self.outputs))
|
|
if self.root: # strip any package prefix
|
|
root_len = len(self.root)
|
|
for counter in range(len(outputs)):
|
|
--- a/setuptools/command/egg_info.py
|
|
+++ b/setuptools/command/egg_info.py
|
|
@@ -638,7 +638,7 @@ def warn_depends_obsolete(cmd, basename,
|
|
def _write_requirements(stream, reqs):
|
|
lines = yield_lines(reqs or ())
|
|
append_cr = lambda line: line + '\n'
|
|
- lines = map(append_cr, lines)
|
|
+ lines = map(append_cr, sorted(lines))
|
|
stream.writelines(lines)
|
|
|
|
|
|
--- a/setuptools/dist.py
|
|
+++ b/setuptools/dist.py
|
|
@@ -195,7 +195,7 @@ def write_pkg_file(self, file):
|
|
self.long_description_content_type
|
|
)
|
|
if self.provides_extras:
|
|
- for extra in self.provides_extras:
|
|
+ for extra in sorted(self.provides_extras):
|
|
write_field('Provides-Extra', extra)
|
|
|
|
|
|
--- a/setuptools/tests/test_egg_info.py
|
|
+++ b/setuptools/tests/test_egg_info.py
|
|
@@ -291,8 +291,8 @@ class TestEggInfo:
|
|
wheel>=0.5
|
|
pytest
|
|
|
|
- wheel>=0.5
|
|
pytest
|
|
+ wheel>=0.5
|
|
''',
|
|
|
|
'''
|