Skip to content

Commit 30ff539

Browse files
authored
Bump setuptools to 80.3.* (#13938)
1 parent a4d3f6f commit 30ff539

File tree

3 files changed

+7
-246
lines changed

3 files changed

+7
-246
lines changed

stubs/setuptools/METADATA.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "80.1.*"
1+
version = "80.3.*"
22
upstream_repository = "https://github.com/pypa/setuptools"
33
extra_description = """\
44
Given that `pkg_resources` is typed since `setuptools >= 71.1`, \
Original file line numberDiff line numberDiff line change
@@ -1,151 +1,11 @@
1-
from _typeshed import Incomplete
2-
from collections.abc import Iterable, Iterator
3-
from typing import Any, ClassVar, Literal, NoReturn, TypedDict
4-
from typing_extensions import Self
1+
from abc import abstractmethod
52

6-
from pkg_resources import Distribution, Environment
7-
from setuptools.package_index import PackageIndex
8-
9-
from .. import Command, SetuptoolsDeprecationWarning
10-
11-
__all__ = ["PthDistributions", "easy_install", "extract_wininst_cfg", "get_exe_prefixes"]
3+
from setuptools import Command
124

135
class easy_install(Command):
14-
description: str
15-
command_consumes_arguments: bool
16-
user_options: ClassVar[list[tuple[str, str | None, str]]]
17-
boolean_options: ClassVar[list[str]]
18-
negative_opt: ClassVar[dict[str, str]]
19-
create_index: ClassVar[type[PackageIndex]]
20-
user: bool
21-
zip_ok: Incomplete
22-
install_dir: Incomplete
23-
index_url: Incomplete
24-
find_links: Incomplete
25-
build_directory: Incomplete
26-
args: Incomplete
27-
optimize: Incomplete
28-
upgrade: Incomplete
29-
editable: Incomplete
30-
root: Incomplete
31-
version: Incomplete
32-
install_purelib: Incomplete
33-
install_platlib: Incomplete
34-
install_headers: Incomplete
35-
install_lib: Incomplete
36-
install_scripts: Incomplete
37-
install_data: Incomplete
38-
install_base: Incomplete
39-
install_platbase: Incomplete
40-
install_userbase: str | None
41-
install_usersite: str | None
42-
no_find_links: Incomplete
43-
package_index: Incomplete
44-
pth_file: Incomplete
45-
site_dirs: Incomplete
46-
installed_projects: Incomplete
47-
verbose: bool | Literal[0, 1]
6+
@abstractmethod
487
def initialize_options(self) -> None: ...
49-
def delete_blockers(self, blockers) -> None: ...
50-
config_vars: dict[str, Any]
51-
script_dir: Incomplete
52-
all_site_dirs: list[str]
53-
shadow_path: list[str]
54-
local_index: Environment
55-
outputs: list[str]
8+
@abstractmethod
569
def finalize_options(self) -> None: ...
57-
def expand_basedirs(self) -> None: ...
58-
def expand_dirs(self) -> None: ...
59-
def run(self, show_deprecation: bool = True) -> NoReturn: ...
60-
def pseudo_tempname(self): ...
61-
def warn_deprecated_options(self) -> None: ...
62-
def check_site_dir(self) -> None: ...
63-
def cant_write_to_target(self) -> NoReturn: ...
64-
def check_pth_processing(self): ...
65-
def install_egg_scripts(self, dist) -> None: ...
66-
def add_output(self, path) -> None: ...
67-
def not_editable(self, spec) -> None: ...
68-
def check_editable(self, spec) -> None: ...
69-
def easy_install(self, spec, deps: bool = False) -> Distribution | None: ...
70-
def install_item(self, spec, download, tmpdir, deps, install_needed: bool = False) -> Distribution | None: ...
71-
def select_scheme(self, name) -> None: ...
72-
def process_distribution(self, requirement, dist, deps: bool = True, *info) -> None: ...
73-
def should_unzip(self, dist) -> bool: ...
74-
def maybe_move(self, spec, dist_filename, setup_base): ...
75-
def install_wrapper_scripts(self, dist) -> None: ...
76-
def install_script(self, dist, script_name, script_text, dev_path: Incomplete | None = None) -> None: ...
77-
def write_script(self, script_name, contents, mode: str = "t", blockers=()) -> None: ...
78-
def install_eggs(self, spec, dist_filename, tmpdir) -> list[Distribution]: ...
79-
def egg_distribution(self, egg_path): ...
80-
def install_egg(self, egg_path, tmpdir): ...
81-
def install_exe(self, dist_filename, tmpdir): ...
82-
def exe_to_egg(self, dist_filename, egg_tmp) -> None: ...
83-
def install_wheel(self, wheel_path, tmpdir): ...
84-
def installation_report(self, req, dist, what: str = "Installed") -> str: ...
85-
def report_editable(self, spec, setup_script): ...
86-
def run_setup(self, setup_script, setup_base, args) -> NoReturn: ...
87-
def build_and_install(self, setup_script, setup_base): ...
88-
def update_pth(self, dist) -> None: ...
89-
def unpack_progress(self, src, dst): ...
90-
def unpack_and_compile(self, egg_path, destination): ...
91-
def byte_compile(self, to_compile) -> None: ...
92-
def create_home_path(self) -> None: ...
93-
INSTALL_SCHEMES: ClassVar[dict[str, dict[str, str]]]
94-
DEFAULT_SCHEME: ClassVar[dict[str, str]]
95-
96-
def extract_wininst_cfg(dist_filename): ...
97-
def get_exe_prefixes(exe_filename): ...
98-
99-
class PthDistributions(Environment):
100-
dirty: bool
101-
filename: Incomplete
102-
sitedirs: list[str]
103-
basedir: Incomplete
104-
paths: list[str]
105-
def __init__(self, filename, sitedirs=()) -> None: ...
106-
def save(self) -> None: ...
107-
def add(self, dist) -> None: ...
108-
def remove(self, dist) -> None: ...
109-
def make_relative(self, path): ...
110-
111-
class RewritePthDistributions(PthDistributions):
112-
prelude: str
113-
postlude: str
114-
115-
class _SplitArgs(TypedDict, total=False):
116-
comments: bool
117-
posix: bool
118-
119-
class CommandSpec(list[str]):
120-
options: list[str]
121-
split_args: ClassVar[_SplitArgs]
122-
@classmethod
123-
def best(cls) -> type[CommandSpec]: ...
124-
@classmethod
125-
def from_param(cls, param: Self | str | Iterable[str] | None) -> Self: ...
126-
@classmethod
127-
def from_environment(cls) -> CommandSpec: ...
128-
@classmethod
129-
def from_string(cls, string: str) -> CommandSpec: ...
130-
def install_options(self, script_text: str) -> None: ...
131-
def as_header(self) -> str: ...
132-
133-
class WindowsCommandSpec(CommandSpec): ...
134-
135-
class ScriptWriter:
136-
template: ClassVar[str]
137-
command_spec_class: ClassVar[type[CommandSpec]]
138-
@classmethod
139-
def get_args(cls, dist, header: Incomplete | None = None) -> Iterator[tuple[str, str]]: ...
140-
@classmethod
141-
def best(cls) -> type[ScriptWriter]: ...
142-
@classmethod
143-
def get_header(cls, script_text: str = "", executable: str | CommandSpec | Iterable[str] | None = None) -> str: ...
144-
145-
class WindowsScriptWriter(ScriptWriter):
146-
command_spec_class: ClassVar[type[WindowsCommandSpec]]
147-
@classmethod
148-
def best(cls) -> type[WindowsScriptWriter]: ...
149-
150-
class WindowsExecutableLauncherWriter(WindowsScriptWriter): ...
151-
class EasyInstallDeprecationWarning(SetuptoolsDeprecationWarning): ...
10+
@abstractmethod
11+
def run(self) -> None: ...

stubs/setuptools/setuptools/package_index.pyi

-99
This file was deleted.

0 commit comments

Comments
 (0)