diff options
author | robot-piglet <[email protected]> | 2025-03-12 10:07:11 +0300 |
---|---|---|
committer | robot-piglet <[email protected]> | 2025-03-12 10:18:34 +0300 |
commit | d9766fed198fd8edf653872fccc0ce343ee4582b (patch) | |
tree | 8f263e05e8cff3ec6ce600c4dfb49bcf6f9243db /contrib/python | |
parent | 7ae87080b7fdfadae6ebb86360ba3eb4c6325e2d (diff) |
Intermediate changes
commit_hash:7e2cec68f101a9d3cfbac83ec922054c2ddfd0a4
Diffstat (limited to 'contrib/python')
5 files changed, 13 insertions, 17 deletions
diff --git a/contrib/python/setuptools/py3/.dist-info/METADATA b/contrib/python/setuptools/py3/.dist-info/METADATA index 0c941771c52..b947a7318fe 100644 --- a/contrib/python/setuptools/py3/.dist-info/METADATA +++ b/contrib/python/setuptools/py3/.dist-info/METADATA @@ -1,6 +1,6 @@ Metadata-Version: 2.2 Name: setuptools -Version: 75.8.0 +Version: 75.8.1 Summary: Easily download, build, install, upgrade, and uninstall Python packages Author-email: Python Packaging Authority <[email protected]> Project-URL: Source, https://github.com/pypa/setuptools @@ -98,7 +98,7 @@ Requires-Dist: jaraco.develop>=7.21; sys_platform != "cygwin" and extra == "type .. |docs-badge| image:: https://img.shields.io/readthedocs/setuptools/latest.svg :target: https://setuptools.pypa.io -.. |skeleton-badge| image:: https://img.shields.io/badge/skeleton-2024-informational +.. |skeleton-badge| image:: https://img.shields.io/badge/skeleton-2025-informational :target: https://blog.jaraco.com/skeleton .. |codecov-badge| image:: https://img.shields.io/codecov/c/github/pypa/setuptools/master.svg?logo=codecov&logoColor=white diff --git a/contrib/python/setuptools/py3/README.rst b/contrib/python/setuptools/py3/README.rst index 181c3b2af6a..d677b70387e 100644 --- a/contrib/python/setuptools/py3/README.rst +++ b/contrib/python/setuptools/py3/README.rst @@ -14,7 +14,7 @@ .. |docs-badge| image:: https://img.shields.io/readthedocs/setuptools/latest.svg :target: https://setuptools.pypa.io -.. |skeleton-badge| image:: https://img.shields.io/badge/skeleton-2024-informational +.. |skeleton-badge| image:: https://img.shields.io/badge/skeleton-2025-informational :target: https://blog.jaraco.com/skeleton .. |codecov-badge| image:: https://img.shields.io/codecov/c/github/pypa/setuptools/master.svg?logo=codecov&logoColor=white diff --git a/contrib/python/setuptools/py3/setuptools/_normalization.py b/contrib/python/setuptools/py3/setuptools/_normalization.py index 467b643d463..9541a55d6c9 100644 --- a/contrib/python/setuptools/py3/setuptools/_normalization.py +++ b/contrib/python/setuptools/py3/setuptools/_normalization.py @@ -134,7 +134,13 @@ def filename_component_broken(value: str) -> str: def safer_name(value: str) -> str: """Like ``safe_name`` but can be used as filename component for wheel""" # See bdist_wheel.safer_name - return filename_component(safe_name(value)) + return ( + # Per https://packaging.python.org/en/latest/specifications/name-normalization/#name-normalization + re.sub(r"[-_.]+", "-", safe_name(value)) + .lower() + # Per https://packaging.python.org/en/latest/specifications/binary-distribution-format/#escaping-and-unicode + .replace("-", "_") + ) def safer_best_effort_version(value: str) -> str: diff --git a/contrib/python/setuptools/py3/setuptools/command/bdist_wheel.py b/contrib/python/setuptools/py3/setuptools/command/bdist_wheel.py index d9e1eb974f2..27b36232ec1 100644 --- a/contrib/python/setuptools/py3/setuptools/command/bdist_wheel.py +++ b/contrib/python/setuptools/py3/setuptools/command/bdist_wheel.py @@ -23,19 +23,13 @@ from packaging import tags, version as _packaging_version from wheel.wheelfile import WheelFile from .. import Command, __version__, _shutil +from .._normalization import safer_name from ..warnings import SetuptoolsDeprecationWarning from .egg_info import egg_info as egg_info_cls from distutils import log -def safe_name(name: str) -> str: - """Convert an arbitrary string to a standard distribution name - Any runs of non-alphanumeric/. characters are replaced with a single '-'. - """ - return re.sub("[^A-Za-z0-9.]+", "-", name) - - def safe_version(version: str) -> str: """ Convert an arbitrary string to a standard version string @@ -133,10 +127,6 @@ def get_abi_tag() -> str | None: return abi -def safer_name(name: str) -> str: - return safe_name(name).replace("-", "_") - - def safer_version(version: str) -> str: return safe_version(version).replace("-", "_") @@ -294,7 +284,7 @@ class bdist_wheel(Command): raise ValueError( f"`py_limited_api={self.py_limited_api!r}` not supported. " "`Py_LIMITED_API` is currently incompatible with " - f"`Py_GIL_DISABLED` ({sys.abiflags=!r}). " + "`Py_GIL_DISABLED`." "See https://github.com/python/cpython/issues/111506." ) diff --git a/contrib/python/setuptools/py3/ya.make b/contrib/python/setuptools/py3/ya.make index ab5826a9bfc..24de6a7a6d7 100644 --- a/contrib/python/setuptools/py3/ya.make +++ b/contrib/python/setuptools/py3/ya.make @@ -2,7 +2,7 @@ PY3_LIBRARY() -VERSION(75.8.0) +VERSION(75.8.1) LICENSE(MIT) |