Bump setuptools to 68.0 (#10339)

* Any -> Incomplete in a few files
* Bump setuptools to 68.0.*

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Sebastian Rittau
2023-06-21 14:26:55 +02:00
committed by GitHub
parent aeb3bf7099
commit 06c2fb047a
4 changed files with 73 additions and 83 deletions

View File

@@ -1,6 +1,7 @@
from _typeshed import Incomplete
from collections.abc import Iterator
from typing import Any
from collections.abc import Iterable, Iterator
from typing import ClassVar
from typing_extensions import Self, TypedDict
from pkg_resources import Environment
@@ -11,46 +12,46 @@ __all__ = ["easy_install", "PthDistributions", "extract_wininst_cfg", "get_exe_p
class easy_install(Command):
description: str
command_consumes_arguments: bool
user_options: Any
boolean_options: Any
negative_opt: Any
create_index: Any
user_options: Incomplete
boolean_options: Incomplete
negative_opt: Incomplete
create_index: Incomplete
user: int
zip_ok: Any
install_dir: Any
index_url: Any
find_links: Any
build_directory: Any
args: Any
optimize: Any
upgrade: Any
editable: Any
root: Any
version: Any
install_purelib: Any
install_platlib: Any
install_headers: Any
install_lib: Any
install_scripts: Any
install_data: Any
install_base: Any
install_platbase: Any
install_userbase: Any
install_usersite: Any
no_find_links: Any
package_index: Any
pth_file: Any
site_dirs: Any
installed_projects: Any
verbose: Any
zip_ok: Incomplete
install_dir: Incomplete
index_url: Incomplete
find_links: Incomplete
build_directory: Incomplete
args: Incomplete
optimize: Incomplete
upgrade: Incomplete
editable: Incomplete
root: Incomplete
version: Incomplete
install_purelib: Incomplete
install_platlib: Incomplete
install_headers: Incomplete
install_lib: Incomplete
install_scripts: Incomplete
install_data: Incomplete
install_base: Incomplete
install_platbase: Incomplete
install_userbase: Incomplete
install_usersite: Incomplete
no_find_links: Incomplete
package_index: Incomplete
pth_file: Incomplete
site_dirs: Incomplete
installed_projects: Incomplete
verbose: Incomplete
def initialize_options(self) -> None: ...
def delete_blockers(self, blockers) -> None: ...
config_vars: Any
script_dir: Any
all_site_dirs: Any
shadow_path: Any
local_index: Any
outputs: Any
config_vars: Incomplete
script_dir: Incomplete
all_site_dirs: Incomplete
shadow_path: Incomplete
local_index: Incomplete
outputs: Incomplete
def finalize_options(self) -> None: ...
def expand_basedirs(self) -> None: ...
def expand_dirs(self) -> None: ...
@@ -88,17 +89,17 @@ class easy_install(Command):
def unpack_and_compile(self, egg_path, destination): ...
def byte_compile(self, to_compile) -> None: ...
def create_home_path(self) -> None: ...
INSTALL_SCHEMES: Any
DEFAULT_SCHEME: Any
INSTALL_SCHEMES: Incomplete
DEFAULT_SCHEME: Incomplete
def extract_wininst_cfg(dist_filename): ...
def get_exe_prefixes(exe_filename): ...
class PthDistributions(Environment):
dirty: bool
filename: Any
sitedirs: Any
basedir: Any
filename: Incomplete
sitedirs: Incomplete
basedir: Incomplete
paths: list[str]
def __init__(self, filename, sitedirs=()) -> None: ...
def save(self) -> None: ...
@@ -107,16 +108,20 @@ class PthDistributions(Environment):
def make_relative(self, path): ...
class RewritePthDistributions(PthDistributions):
prelude: Any
postlude: Any
prelude: Incomplete
postlude: Incomplete
class _SplitArgs(TypedDict, total=False):
comments: bool
posix: bool
class CommandSpec(list[str]):
options: Any
split_args: Any
options: list[Incomplete]
split_args: ClassVar[_SplitArgs]
@classmethod
def best(cls) -> type[CommandSpec]: ...
@classmethod
def from_param(cls, param) -> CommandSpec: ...
def from_param(cls, param: str | Self | Iterable[str] | None) -> Self: ...
@classmethod
def from_environment(cls) -> CommandSpec: ...
@classmethod
@@ -124,31 +129,22 @@ class CommandSpec(list[str]):
def install_options(self, script_text: str) -> None: ...
def as_header(self) -> str: ...
class WindowsCommandSpec(CommandSpec):
split_args: Any
class WindowsCommandSpec(CommandSpec): ...
class ScriptWriter:
template: Any
command_spec_class: Any
@classmethod
def get_script_args(cls, dist, executable: Incomplete | None = None, wininst: bool = False) -> Iterator[tuple[str, str]]: ...
@classmethod
def get_script_header(cls, script_text, executable: Incomplete | None = None, wininst: bool = False) -> str: ...
template: ClassVar[str]
command_spec_class: ClassVar[type[CommandSpec]]
@classmethod
def get_args(cls, dist, header: Incomplete | None = None) -> Iterator[tuple[str, str]]: ...
@classmethod
def get_writer(cls, force_windows: bool) -> type[ScriptWriter]: ...
@classmethod
def best(cls) -> type[ScriptWriter]: ...
@classmethod
def get_header(cls, script_text: str = "", executable: Incomplete | None = None) -> str: ...
def get_header(cls, script_text: str = "", executable: str | CommandSpec | Iterable[str] | None = None) -> str: ...
class WindowsScriptWriter(ScriptWriter):
command_spec_class: Any
command_spec_class: ClassVar[type[WindowsCommandSpec]]
@classmethod
def get_writer(cls): ...
@classmethod
def best(cls): ...
def best(cls) -> type[WindowsScriptWriter]: ...
class WindowsExecutableLauncherWriter(WindowsScriptWriter): ...
class EasyInstallDeprecationWarning(SetuptoolsDeprecationWarning): ...

View File

@@ -1,4 +1,4 @@
from typing import Any
from _typeshed import Incomplete
from typing_extensions import Final
from .. import Command, SetuptoolsDeprecationWarning
@@ -10,8 +10,8 @@ PY_MAJOR: Final[str]
def translate_pattern(glob): ...
class InfoCommon:
tag_build: Any
tag_date: Any
tag_build: Incomplete
tag_date: Incomplete
@property
def name(self): ...
def tagged_version(self): ...
@@ -21,13 +21,13 @@ class InfoCommon:
class egg_info(InfoCommon, Command):
description: str
user_options: Any
boolean_options: Any
negative_opt: Any
egg_base: Any
egg_name: Any
egg_info: Any
egg_version: Any
user_options: Incomplete
boolean_options: Incomplete
negative_opt: Incomplete
egg_base: Incomplete
egg_name: Incomplete
egg_info: Incomplete
egg_version: Incomplete
broken_egg_info: bool
def initialize_options(self) -> None: ...
@property
@@ -40,9 +40,8 @@ class egg_info(InfoCommon, Command):
def write_file(self, what, filename, data) -> None: ...
def delete_file(self, filename) -> None: ...
def run(self) -> None: ...
filelist: Any
filelist: Incomplete
def find_sources(self) -> None: ...
def check_broken_egg_info(self) -> None: ...
class FileList(_FileList):
def __init__(self, warn=None, debug_print=None, ignore_egg_info_dir: bool = False) -> None: ...
@@ -66,7 +65,7 @@ class manifest_maker(sdist):
force_manifest: int
def initialize_options(self) -> None: ...
def finalize_options(self) -> None: ...
filelist: Any
filelist: Incomplete
def run(self) -> None: ...
def write_manifest(self) -> None: ...
def warn(self, msg) -> None: ...
@@ -83,6 +82,5 @@ def write_toplevel_names(cmd, basename, filename) -> None: ...
def overwrite_arg(cmd, basename, filename) -> None: ...
def write_arg(cmd, basename, filename, force: bool = False) -> None: ...
def write_entries(cmd, basename, filename) -> None: ...
def get_pkg_info_revision(): ...
class EggInfoDeprecationWarning(SetuptoolsDeprecationWarning): ...