python3-setuptools: upgrade 57.0.0 -> 57.1.0

reproducibility.patch
deleted since it's been merged upstream.

v57.1.0
-------

Changes
^^^^^^^
* #2692: Globs are now sorted in 'license_files' restoring reproducibility by eliminating variance from disk order.
* #2714: Update to distutils at pypa/distutils@e2627b7.
* #2715: Removed reliance on deprecated ssl.match_hostname by removing the ssl support. Now any index operations rely on the native SSL implementation.

Documentation changes
^^^^^^^^^^^^^^^^^^^^^
* #2604: Revamped the backward/cross tool compatibility section to remove
  some confusion.
  Add some examples and the version since when ``entry_points`` are
  supported in declarative configuration.
  Tried to make the reading flow a bit leaner, gather some informations
  that were a bit dispersed.

(From OE-Core rev: 9720cce06206895e2e85b171d58a289172bb9092)

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
wangmy
2021-07-12 15:56:48 +08:00
committed by Richard Purdie
parent 9818555934
commit 262d2c6b6c
2 changed files with 2 additions and 43 deletions

View File

@@ -1,40 +0,0 @@
The License-File lines in PKG-INFO change ordering depending on the order on disk,
for example for python-packaging, one build shows:
License-File: LICENSE
License-File: LICENSE.APACHE
License-File: LICENSE.BSD
and the other shows:
License-File: LICENSE
License-File: LICENSE.BSD
License-File: LICENSE.APACHE
This is because glob uses os.listdir() which is unsorted. Sort the result to avoid this.
Upstream-Status: Submitted [https://github.com/pypa/setuptools/issues/2691]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Index: setuptools-57.0.0/setuptools/dist.py
===================================================================
--- setuptools-57.0.0.orig/setuptools/dist.py
+++ setuptools-57.0.0/setuptools/dist.py
@@ -15,7 +15,7 @@ import distutils.command
from distutils.util import strtobool
from distutils.debug import DEBUG
from distutils.fancy_getopt import translate_longopt
-from glob import iglob
+from glob import glob
import itertools
import textwrap
from typing import List, Optional, TYPE_CHECKING
@@ -603,7 +603,7 @@ class Distribution(_Distribution):
return (
path
for pattern in patterns
- for path in iglob(pattern)
+ for path in sorted(glob(pattern))
if not path.endswith('~')
and os.path.isfile(path)
)