mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-09 06:46:18 +08:00
[setuptools] Update to 81.0.* (#15387)
This commit is contained in:
@@ -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`, \
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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]]]
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
@@ -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]]]
|
||||
|
||||
Reference in New Issue
Block a user