From 8f21da5bee7c97836a4a63d58748dc08d871d730 Mon Sep 17 00:00:00 2001 From: Danny Yang Date: Wed, 13 Nov 2024 23:01:23 -0500 Subject: [PATCH] Update setuptools to 75.4.* (#13002) --- stubs/setuptools/METADATA.toml | 2 +- stubs/setuptools/setuptools/command/bdist_wheel.pyi | 6 ++---- stubs/setuptools/setuptools/command/easy_install.pyi | 9 ++------- stubs/setuptools/setuptools/msvc.pyi | 3 +-- 4 files changed, 6 insertions(+), 14 deletions(-) diff --git a/stubs/setuptools/METADATA.toml b/stubs/setuptools/METADATA.toml index 4595928ea..a76ba6b2f 100644 --- a/stubs/setuptools/METADATA.toml +++ b/stubs/setuptools/METADATA.toml @@ -1,4 +1,4 @@ -version = "75.3.*" +version = "75.4.*" upstream_repository = "https://github.com/pypa/setuptools" extra_description = """\ If using `setuptools >= 71.1` *only* for `pkg_resources`, diff --git a/stubs/setuptools/setuptools/command/bdist_wheel.pyi b/stubs/setuptools/setuptools/command/bdist_wheel.pyi index 70025a98b..15c21ccb0 100644 --- a/stubs/setuptools/setuptools/command/bdist_wheel.pyi +++ b/stubs/setuptools/setuptools/command/bdist_wheel.pyi @@ -1,5 +1,5 @@ -from _typeshed import ExcInfo, Incomplete, Unused -from collections.abc import Callable, Iterable +from _typeshed import Incomplete +from collections.abc import Iterable from typing import ClassVar, Final, Literal from setuptools import Command @@ -17,8 +17,6 @@ def get_flag(var: str, fallback: bool, expected: bool = True, warn: bool = True) def get_abi_tag() -> str | None: ... def safer_name(name: str) -> str: ... def safer_version(version: str) -> str: ... -def remove_readonly(func: Callable[[str], Unused], path: str, excinfo: ExcInfo) -> None: ... -def remove_readonly_exc(func: Callable[[str], Unused], path: str, exc: BaseException) -> None: ... class bdist_wheel(Command): description: ClassVar[str] diff --git a/stubs/setuptools/setuptools/command/easy_install.pyi b/stubs/setuptools/setuptools/command/easy_install.pyi index 08129d8a5..ae58e4770 100644 --- a/stubs/setuptools/setuptools/command/easy_install.pyi +++ b/stubs/setuptools/setuptools/command/easy_install.pyi @@ -1,6 +1,6 @@ from _typeshed import Incomplete -from collections.abc import Callable, Iterable, Iterator -from typing import Any, ClassVar, Literal, TypedDict, TypeVar, type_check_only +from collections.abc import Iterable, Iterator +from typing import Any, ClassVar, Literal, TypedDict from typing_extensions import Self from pkg_resources import Environment @@ -8,8 +8,6 @@ from setuptools.package_index import PackageIndex from .. import Command, SetuptoolsDeprecationWarning -_T = TypeVar("_T") - __all__ = ["easy_install", "PthDistributions", "extract_wininst_cfg", "get_exe_prefixes"] class easy_install(Command): @@ -114,9 +112,6 @@ class RewritePthDistributions(PthDistributions): prelude: str postlude: str -# Must match shutil._OnExcCallback -def auto_chmod(func: Callable[..., _T], arg: str, exc: BaseException) -> _T: ... -@type_check_only class _SplitArgs(TypedDict, total=False): comments: bool posix: bool diff --git a/stubs/setuptools/setuptools/msvc.pyi b/stubs/setuptools/setuptools/msvc.pyi index f07c4833d..b49e14501 100644 --- a/stubs/setuptools/setuptools/msvc.pyi +++ b/stubs/setuptools/setuptools/msvc.pyi @@ -1,5 +1,5 @@ import sys -from typing import Final, TypedDict, overload, type_check_only +from typing import Final, TypedDict, overload from typing_extensions import LiteralString, NotRequired if sys.platform == "win32": @@ -106,7 +106,6 @@ class SystemInfo: @property def FrameworkVersion64(self) -> tuple[str, ...] | None: ... -@type_check_only class _EnvironmentDict(TypedDict): include: str lib: str