From e5dfa88e1baadac914df1b24c7ca4f17745db8ec Mon Sep 17 00:00:00 2001 From: donbarbos Date: Sat, 7 Feb 2026 22:40:58 +0400 Subject: [PATCH] [setuptools] Update to 81.0.* Closes: #15383 --- stubs/setuptools/METADATA.toml | 2 +- stubs/setuptools/setuptools/__init__.pyi | 2 +- .../setuptools/_distutils/archive_util.pyi | 5 +---- stubs/setuptools/setuptools/_distutils/cmd.pyi | 1 - .../setuptools/_distutils/compilers/C/base.pyi | 5 ++--- stubs/setuptools/setuptools/_distutils/dist.pyi | 1 - stubs/setuptools/setuptools/_distutils/spawn.pyi | 12 ++---------- stubs/setuptools/setuptools/_distutils/util.pyi | 7 +------ stubs/setuptools/setuptools/command/bdist_egg.pyi | 7 +------ .../setuptools/setuptools/command/editable_wheel.pyi | 1 - stubs/setuptools/setuptools/command/setopt.pyi | 2 +- 11 files changed, 10 insertions(+), 35 deletions(-) diff --git a/stubs/setuptools/METADATA.toml b/stubs/setuptools/METADATA.toml index 92f981020977..1c4a31504f87 100644 --- a/stubs/setuptools/METADATA.toml +++ b/stubs/setuptools/METADATA.toml @@ -1,4 +1,4 @@ -version = "80.10.*" +version = "81.0.*" upstream_repository = "https://github.com/pypa/setuptools" extra_description = """\ Given that `pkg_resources` is typed since `setuptools >= 71.1`, \ diff --git a/stubs/setuptools/setuptools/__init__.pyi b/stubs/setuptools/setuptools/__init__.pyi index 45c1a79416b1..6404f0e1aad3 100644 --- a/stubs/setuptools/setuptools/__init__.pyi +++ b/stubs/setuptools/setuptools/__init__.pyi @@ -107,7 +107,6 @@ def setup( # Attributes from distutils.dist.Distribution.__init__ (except self.metadata) # These take priority over attributes from distutils.dist.Distribution.display_option_names verbose: bool = True, - dry_run: bool = False, help: bool = False, cmdclass: _MutableDictLike[str, type[_Command]] = {}, command_packages: str | list[str] | None = None, @@ -164,6 +163,7 @@ def setup( class Command(_Command): command_consumes_arguments: bool distribution: Distribution + dry_run: bool # Any: Dynamic command subclass attributes def __init__(self, dist: Distribution, **kw: Any) -> None: ... # Note: Commands that setuptools doesn't re-expose are considered deprecated (they must be imported from distutils directly) diff --git a/stubs/setuptools/setuptools/_distutils/archive_util.pyi b/stubs/setuptools/setuptools/_distutils/archive_util.pyi index b866451a6bef..a77f6fa09ad8 100644 --- a/stubs/setuptools/setuptools/_distutils/archive_util.pyi +++ b/stubs/setuptools/setuptools/_distutils/archive_util.pyi @@ -8,7 +8,6 @@ def make_archive( root_dir: StrOrBytesPath | None = None, base_dir: str | None = None, verbose: bool = False, - dry_run: bool = False, owner: str | None = None, group: str | None = None, ) -> str: ... @@ -19,7 +18,6 @@ def make_archive( root_dir: StrOrBytesPath, base_dir: str | None = None, verbose: bool = False, - dry_run: bool = False, owner: str | None = None, group: str | None = None, ) -> str: ... @@ -28,8 +26,7 @@ def make_tarball( base_dir: StrPath, compress: Literal["gzip", "bzip2", "xz"] | None = "gzip", verbose: bool = False, - dry_run: bool = False, owner: str | None = None, group: str | None = None, ) -> str: ... -def make_zipfile(base_name: str, base_dir: StrPath, verbose: bool = False, dry_run: bool = False) -> str: ... +def make_zipfile(base_name: str, base_dir: StrPath, verbose: bool = False) -> str: ... diff --git a/stubs/setuptools/setuptools/_distutils/cmd.pyi b/stubs/setuptools/setuptools/_distutils/cmd.pyi index 036bb08441f8..77ceb4b90581 100644 --- a/stubs/setuptools/setuptools/_distutils/cmd.pyi +++ b/stubs/setuptools/setuptools/_distutils/cmd.pyi @@ -12,7 +12,6 @@ _CommandT = TypeVar("_CommandT", bound=Command) _Ts = TypeVarTuple("_Ts") class Command: - dry_run: bool # Exposed from __getattr_. Same as Distribution.dry_run distribution: Distribution # Any to work around variance issues sub_commands: ClassVar[list[tuple[str, Callable[[Any], bool] | None]]] diff --git a/stubs/setuptools/setuptools/_distutils/compilers/C/base.pyi b/stubs/setuptools/setuptools/_distutils/compilers/C/base.pyi index 8f51b6790596..7ee78dababdc 100644 --- a/stubs/setuptools/setuptools/_distutils/compilers/C/base.pyi +++ b/stubs/setuptools/setuptools/_distutils/compilers/C/base.pyi @@ -25,7 +25,6 @@ class Compiler: language_map: ClassVar[dict[str, str]] language_order: ClassVar[list[str]] - dry_run: bool force: bool verbose: bool output_dir: str | None @@ -39,7 +38,7 @@ class Compiler: SHARED_OBJECT: Final = "shared_object" SHARED_LIBRARY: Final = "shared_library" EXECUTABLE: Final = "executable" - def __init__(self, verbose: bool = False, dry_run: bool = False, force: bool = False) -> None: ... + def __init__(self, verbose: bool = False, force: bool = False) -> None: ... def add_include_dir(self, dir: str) -> None: ... def set_include_dirs(self, dirs: list[str]) -> None: ... def add_library(self, libname: str) -> None: ... @@ -194,7 +193,7 @@ compiler_class: dict[str, tuple[str, str, str]] def show_compilers() -> None: ... def new_compiler( - plat: str | None = None, compiler: str | None = None, verbose: bool = False, dry_run: bool = False, force: bool = False + plat: str | None = None, compiler: str | None = None, verbose: bool = False, force: bool = False ) -> Compiler: ... def gen_preprocess_options(macros: Iterable[_Macro], include_dirs: Iterable[str]) -> list[str]: ... def gen_lib_options( diff --git a/stubs/setuptools/setuptools/_distutils/dist.pyi b/stubs/setuptools/setuptools/_distutils/dist.pyi index 2757b725f582..dcfc826db663 100644 --- a/stubs/setuptools/setuptools/_distutils/dist.pyi +++ b/stubs/setuptools/setuptools/_distutils/dist.pyi @@ -73,7 +73,6 @@ class Distribution: display_option_names: ClassVar[list[str]] negative_opt: ClassVar[dict[str, str]] verbose: bool - dry_run: bool help: bool command_packages: str | list[str] | None script_name: StrPath | None diff --git a/stubs/setuptools/setuptools/_distutils/spawn.pyi b/stubs/setuptools/setuptools/_distutils/spawn.pyi index 9b725d43a63d..958490c4966c 100644 --- a/stubs/setuptools/setuptools/_distutils/spawn.pyi +++ b/stubs/setuptools/setuptools/_distutils/spawn.pyi @@ -5,18 +5,10 @@ from typing import Literal, overload @overload def spawn( - cmd: Sequence[StrOrBytesPath], - search_path: Literal[False], - verbose: Unused = False, - dry_run: bool = False, - env: _ENV | None = None, + cmd: Sequence[StrOrBytesPath], search_path: Literal[False], verbose: Unused = False, env: _ENV | None = None ) -> None: ... @overload def spawn( - cmd: MutableSequence[bytes | StrPath], - search_path: Literal[True] = True, - verbose: Unused = False, - dry_run: bool = False, - env: _ENV | None = None, + cmd: MutableSequence[bytes | StrPath], search_path: Literal[True] = True, verbose: Unused = False, env: _ENV | None = None ) -> None: ... def find_executable(executable: str, path: str | None = None) -> str | None: ... diff --git a/stubs/setuptools/setuptools/_distutils/util.pyi b/stubs/setuptools/setuptools/_distutils/util.pyi index 64ff78f3c04a..37d6692b563f 100644 --- a/stubs/setuptools/setuptools/_distutils/util.pyi +++ b/stubs/setuptools/setuptools/_distutils/util.pyi @@ -17,11 +17,7 @@ def subst_vars(s: str, local_vars: Mapping[str, object]) -> str: ... def grok_environment_error(exc: object, prefix: str = "error: ") -> str: ... def split_quoted(s: str) -> list[str]: ... def execute( - func: Callable[[Unpack[_Ts]], Unused], - args: tuple[Unpack[_Ts]], - msg: str | None = None, - verbose: bool = False, - dry_run: bool = False, + func: Callable[[Unpack[_Ts]], Unused], args: tuple[Unpack[_Ts]], msg: str | None = None, verbose: bool = False ) -> None: ... def strtobool(val: str) -> Literal[0, 1]: ... def byte_compile( @@ -31,7 +27,6 @@ def byte_compile( prefix: str | None = None, base_dir: str | None = None, verbose: bool = True, - dry_run: bool = False, direct: bool | None = None, ) -> None: ... def rfc822_escape(header: str) -> str: ... diff --git a/stubs/setuptools/setuptools/command/bdist_egg.pyi b/stubs/setuptools/setuptools/command/bdist_egg.pyi index 264052cda2af..dc921dde8c8a 100644 --- a/stubs/setuptools/setuptools/command/bdist_egg.pyi +++ b/stubs/setuptools/setuptools/command/bdist_egg.pyi @@ -52,10 +52,5 @@ def can_scan() -> bool: ... INSTALL_DIRECTORY_ATTRS: Final[list[str]] def make_zipfile( - zip_filename: _StrPathT, - base_dir, - verbose: bool = False, - dry_run: bool = False, - compress: bool = True, - mode: _ZipFileMode = "w", + zip_filename: _StrPathT, base_dir, verbose: bool = False, compress: bool = True, mode: _ZipFileMode = "w" ) -> _StrPathT: ... diff --git a/stubs/setuptools/setuptools/command/editable_wheel.pyi b/stubs/setuptools/setuptools/command/editable_wheel.pyi index 989289829a49..615c0059db10 100644 --- a/stubs/setuptools/setuptools/command/editable_wheel.pyi +++ b/stubs/setuptools/setuptools/command/editable_wheel.pyi @@ -72,7 +72,6 @@ class _NamespaceInstaller(namespaces.Installer): installation_dir: Incomplete editable_name: Incomplete outputs: list[str] - dry_run: bool def __init__(self, distribution, installation_dir, editable_name, src_root) -> None: ... class InformationOnly(SetuptoolsWarning): ... diff --git a/stubs/setuptools/setuptools/command/setopt.pyi b/stubs/setuptools/setuptools/command/setopt.pyi index 0e16758cf7f4..62957a112fa4 100644 --- a/stubs/setuptools/setuptools/command/setopt.pyi +++ b/stubs/setuptools/setuptools/command/setopt.pyi @@ -7,7 +7,7 @@ from .. import Command __all__ = ["config_file", "edit_config", "option_base", "setopt"] def config_file(kind: str = "local"): ... -def edit_config(filename, settings, dry_run: bool = False) -> None: ... +def edit_config(filename, settings) -> None: ... class option_base(Command): user_options: ClassVar[list[tuple[str, str, str]]]