Skip to content

Commit 01bbf04

Browse files
authored
[setuptools] Update to 81.0.* (#15387)
1 parent ae6f49a commit 01bbf04

File tree

11 files changed

+10
-35
lines changed

11 files changed

+10
-35
lines changed

stubs/setuptools/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "80.10.*"
1+
version = "81.0.*"
22
upstream_repository = "https://github.com/pypa/setuptools"
33
extra_description = """\
44
Given that `pkg_resources` is typed since `setuptools >= 71.1`, \

stubs/setuptools/setuptools/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ def setup(
107107
# Attributes from distutils.dist.Distribution.__init__ (except self.metadata)
108108
# These take priority over attributes from distutils.dist.Distribution.display_option_names
109109
verbose: bool = True,
110-
dry_run: bool = False,
111110
help: bool = False,
112111
cmdclass: _MutableDictLike[str, type[_Command]] = {},
113112
command_packages: str | list[str] | None = None,
@@ -164,6 +163,7 @@ def setup(
164163
class Command(_Command):
165164
command_consumes_arguments: bool
166165
distribution: Distribution
166+
dry_run: bool
167167
# Any: Dynamic command subclass attributes
168168
def __init__(self, dist: Distribution, **kw: Any) -> None: ...
169169
# Note: Commands that setuptools doesn't re-expose are considered deprecated (they must be imported from distutils directly)

stubs/setuptools/setuptools/_distutils/archive_util.pyi

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ def make_archive(
88
root_dir: StrOrBytesPath | None = None,
99
base_dir: str | None = None,
1010
verbose: bool = False,
11-
dry_run: bool = False,
1211
owner: str | None = None,
1312
group: str | None = None,
1413
) -> str: ...
@@ -19,7 +18,6 @@ def make_archive(
1918
root_dir: StrOrBytesPath,
2019
base_dir: str | None = None,
2120
verbose: bool = False,
22-
dry_run: bool = False,
2321
owner: str | None = None,
2422
group: str | None = None,
2523
) -> str: ...
@@ -28,8 +26,7 @@ def make_tarball(
2826
base_dir: StrPath,
2927
compress: Literal["gzip", "bzip2", "xz"] | None = "gzip",
3028
verbose: bool = False,
31-
dry_run: bool = False,
3229
owner: str | None = None,
3330
group: str | None = None,
3431
) -> str: ...
35-
def make_zipfile(base_name: str, base_dir: StrPath, verbose: bool = False, dry_run: bool = False) -> str: ...
32+
def make_zipfile(base_name: str, base_dir: StrPath, verbose: bool = False) -> str: ...

stubs/setuptools/setuptools/_distutils/cmd.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ _CommandT = TypeVar("_CommandT", bound=Command)
1212
_Ts = TypeVarTuple("_Ts")
1313

1414
class Command:
15-
dry_run: bool # Exposed from __getattr_. Same as Distribution.dry_run
1615
distribution: Distribution
1716
# Any to work around variance issues
1817
sub_commands: ClassVar[list[tuple[str, Callable[[Any], bool] | None]]]

stubs/setuptools/setuptools/_distutils/compilers/C/base.pyi

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class Compiler:
2525

2626
language_map: ClassVar[dict[str, str]]
2727
language_order: ClassVar[list[str]]
28-
dry_run: bool
2928
force: bool
3029
verbose: bool
3130
output_dir: str | None
@@ -39,7 +38,7 @@ class Compiler:
3938
SHARED_OBJECT: Final = "shared_object"
4039
SHARED_LIBRARY: Final = "shared_library"
4140
EXECUTABLE: Final = "executable"
42-
def __init__(self, verbose: bool = False, dry_run: bool = False, force: bool = False) -> None: ...
41+
def __init__(self, verbose: bool = False, force: bool = False) -> None: ...
4342
def add_include_dir(self, dir: str) -> None: ...
4443
def set_include_dirs(self, dirs: list[str]) -> None: ...
4544
def add_library(self, libname: str) -> None: ...
@@ -194,7 +193,7 @@ compiler_class: dict[str, tuple[str, str, str]]
194193

195194
def show_compilers() -> None: ...
196195
def new_compiler(
197-
plat: str | None = None, compiler: str | None = None, verbose: bool = False, dry_run: bool = False, force: bool = False
196+
plat: str | None = None, compiler: str | None = None, verbose: bool = False, force: bool = False
198197
) -> Compiler: ...
199198
def gen_preprocess_options(macros: Iterable[_Macro], include_dirs: Iterable[str]) -> list[str]: ...
200199
def gen_lib_options(

stubs/setuptools/setuptools/_distutils/dist.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ class Distribution:
7373
display_option_names: ClassVar[list[str]]
7474
negative_opt: ClassVar[dict[str, str]]
7575
verbose: bool
76-
dry_run: bool
7776
help: bool
7877
command_packages: str | list[str] | None
7978
script_name: StrPath | None

stubs/setuptools/setuptools/_distutils/spawn.pyi

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,10 @@ from typing import Literal, overload
55

66
@overload
77
def spawn(
8-
cmd: Sequence[StrOrBytesPath],
9-
search_path: Literal[False],
10-
verbose: Unused = False,
11-
dry_run: bool = False,
12-
env: _ENV | None = None,
8+
cmd: Sequence[StrOrBytesPath], search_path: Literal[False], verbose: Unused = False, env: _ENV | None = None
139
) -> None: ...
1410
@overload
1511
def spawn(
16-
cmd: MutableSequence[bytes | StrPath],
17-
search_path: Literal[True] = True,
18-
verbose: Unused = False,
19-
dry_run: bool = False,
20-
env: _ENV | None = None,
12+
cmd: MutableSequence[bytes | StrPath], search_path: Literal[True] = True, verbose: Unused = False, env: _ENV | None = None
2113
) -> None: ...
2214
def find_executable(executable: str, path: str | None = None) -> str | None: ...

stubs/setuptools/setuptools/_distutils/util.pyi

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ def subst_vars(s: str, local_vars: Mapping[str, object]) -> str: ...
1717
def grok_environment_error(exc: object, prefix: str = "error: ") -> str: ...
1818
def split_quoted(s: str) -> list[str]: ...
1919
def execute(
20-
func: Callable[[Unpack[_Ts]], Unused],
21-
args: tuple[Unpack[_Ts]],
22-
msg: str | None = None,
23-
verbose: bool = False,
24-
dry_run: bool = False,
20+
func: Callable[[Unpack[_Ts]], Unused], args: tuple[Unpack[_Ts]], msg: str | None = None, verbose: bool = False
2521
) -> None: ...
2622
def strtobool(val: str) -> Literal[0, 1]: ...
2723
def byte_compile(
@@ -31,7 +27,6 @@ def byte_compile(
3127
prefix: str | None = None,
3228
base_dir: str | None = None,
3329
verbose: bool = True,
34-
dry_run: bool = False,
3530
direct: bool | None = None,
3631
) -> None: ...
3732
def rfc822_escape(header: str) -> str: ...

stubs/setuptools/setuptools/command/bdist_egg.pyi

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,5 @@ def can_scan() -> bool: ...
5252
INSTALL_DIRECTORY_ATTRS: Final[list[str]]
5353

5454
def make_zipfile(
55-
zip_filename: _StrPathT,
56-
base_dir,
57-
verbose: bool = False,
58-
dry_run: bool = False,
59-
compress: bool = True,
60-
mode: _ZipFileMode = "w",
55+
zip_filename: _StrPathT, base_dir, verbose: bool = False, compress: bool = True, mode: _ZipFileMode = "w"
6156
) -> _StrPathT: ...

stubs/setuptools/setuptools/command/editable_wheel.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ class _NamespaceInstaller(namespaces.Installer):
7272
installation_dir: Incomplete
7373
editable_name: Incomplete
7474
outputs: list[str]
75-
dry_run: bool
7675
def __init__(self, distribution, installation_dir, editable_name, src_root) -> None: ...
7776

7877
class InformationOnly(SetuptoolsWarning): ...

0 commit comments

Comments
 (0)