mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 03:41:28 +08:00
Update setuptools to 69.5.* (#11756)
This commit is contained in:
@@ -63,7 +63,6 @@ setuptools._distutils.command.install.SCHEME_KEYS
|
||||
setuptools._distutils.command.install.WINDOWS_SCHEME
|
||||
setuptools._distutils.command.install_lib.PYTHON_SOURCE_EXTENSION
|
||||
setuptools._distutils.command.sdist
|
||||
setuptools._distutils.command.sdist.show_formats
|
||||
setuptools._distutils.command.register
|
||||
setuptools._distutils.command.upload
|
||||
setuptools._distutils.config.DEFAULT_PYPIRC
|
||||
@@ -91,7 +90,6 @@ setuptools._distutils.util.MACOSX_VERSION_VAR
|
||||
# (Many of these may be implementation details,
|
||||
# but they can be added if people ask for them)
|
||||
setuptools._distutils.bcppcompiler
|
||||
setuptools._distutils.command.bdist
|
||||
setuptools._distutils.command.bdist_dumb
|
||||
setuptools._distutils.command.build_scripts
|
||||
setuptools._distutils.command.check
|
||||
@@ -100,7 +98,7 @@ setuptools._distutils.command.config
|
||||
setuptools._distutils.command.install_data
|
||||
setuptools._distutils.command.install_egg_info
|
||||
setuptools._distutils.command.install_headers
|
||||
setuptools._distutils.command.py37compat
|
||||
setuptools._distutils.compat.py38
|
||||
setuptools._distutils.core
|
||||
setuptools._distutils.cygwinccompiler
|
||||
setuptools._distutils.debug
|
||||
@@ -117,6 +115,7 @@ setuptools._distutils.text_file
|
||||
setuptools._distutils.unixccompiler
|
||||
setuptools._distutils.version
|
||||
setuptools._distutils.versionpredicate
|
||||
setuptools._distutils.zosccompiler
|
||||
|
||||
# Reexported from setuptools._distutils; problems should be fixed there
|
||||
distutils\..+
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
version = "69.2.*"
|
||||
version = "69.5.*"
|
||||
upstream_repository = "https://github.com/pypa/setuptools"
|
||||
|
||||
[tool.stubtest]
|
||||
|
||||
1
stubs/setuptools/distutils/command/bdist.pyi
Normal file
1
stubs/setuptools/distutils/command/bdist.pyi
Normal file
@@ -0,0 +1 @@
|
||||
from setuptools._distutils.command.bdist import *
|
||||
1
stubs/setuptools/distutils/compat/__init__.pyi
Normal file
1
stubs/setuptools/distutils/compat/__init__.pyi
Normal file
@@ -0,0 +1 @@
|
||||
from setuptools._distutils.compat import *
|
||||
@@ -149,7 +149,7 @@ class CCompiler:
|
||||
extra_postargs: list[str] | None = ...,
|
||||
) -> None: ...
|
||||
def executable_filename(self, basename: str, strip_dir: int = ..., output_dir: str = ...) -> str: ...
|
||||
def library_filename(self, libname: str, lib_type: str = ..., strip_dir: int = ..., output_dir: str = ...) -> str: ...
|
||||
def library_filename(self, libname: str, lib_type: str = "static", strip_dir: int = 0, output_dir: str = "") -> str: ...
|
||||
def object_filenames(self, source_filenames: list[str], strip_dir: int = ..., output_dir: str = ...) -> list[str]: ...
|
||||
def shared_object_filename(self, basename: str, strip_dir: int = ..., output_dir: str = ...) -> str: ...
|
||||
def execute(self, func: Callable[..., object], args: tuple[Any, ...], msg: str | None = ..., level: int = ...) -> None: ...
|
||||
|
||||
25
stubs/setuptools/setuptools/_distutils/command/bdist.pyi
Normal file
25
stubs/setuptools/setuptools/_distutils/command/bdist.pyi
Normal file
@@ -0,0 +1,25 @@
|
||||
from _typeshed import Unused
|
||||
from typing import ClassVar
|
||||
from typing_extensions import deprecated
|
||||
|
||||
from ..cmd import Command
|
||||
|
||||
def show_formats() -> None: ...
|
||||
|
||||
class ListCompat(dict[str, tuple[str, str]]):
|
||||
@deprecated("format_commands is now a dict. append is deprecated")
|
||||
def append(self, item: Unused) -> None: ...
|
||||
|
||||
class bdist(Command):
|
||||
description: ClassVar[str]
|
||||
user_options: ClassVar[list[tuple[str | None, str | None, str | None]]]
|
||||
boolean_options: ClassVar[list[str]]
|
||||
help_options: ClassVar[list[tuple[str | None, ...]]]
|
||||
no_format_option: ClassVar[tuple[str, ...]]
|
||||
default_format: ClassVar[dict[str, str]]
|
||||
format_commands: ClassVar[ListCompat]
|
||||
format_command = format_commands
|
||||
|
||||
def initialize_options(self) -> None: ...
|
||||
def finalize_options(self) -> None: ...
|
||||
def run(self) -> None: ...
|
||||
@@ -1,7 +1,11 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Iterable, Iterator
|
||||
from typing import AnyStr, TypeVar, overload
|
||||
|
||||
from ..config import PyPIRCCommand
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
class register(PyPIRCCommand):
|
||||
description: str
|
||||
list_classifiers: int
|
||||
@@ -15,3 +19,12 @@ class register(PyPIRCCommand):
|
||||
def send_metadata(self) -> None: ...
|
||||
def build_post_data(self, action): ...
|
||||
def post_to_server(self, data, auth: Incomplete | None = ...): ...
|
||||
|
||||
@overload
|
||||
def make_iterable(values: None) -> list[None]: ...
|
||||
@overload
|
||||
def make_iterable(values: AnyStr) -> Iterator[AnyStr]: ...
|
||||
@overload
|
||||
def make_iterable(values: Iterable[_T]) -> Iterator[_T]: ...
|
||||
@overload
|
||||
def make_iterable(values: _T) -> Iterator[_T]: ...
|
||||
|
||||
@@ -1,10 +1,16 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
from typing_extensions import deprecated
|
||||
|
||||
from ..cmd import Command
|
||||
|
||||
def show_formats() -> None: ...
|
||||
|
||||
class sdist(Command):
|
||||
description: str
|
||||
description: ClassVar[str]
|
||||
|
||||
def checking_metadata(self): ...
|
||||
|
||||
user_options: Incomplete
|
||||
boolean_options: Incomplete
|
||||
help_options: Incomplete
|
||||
@@ -27,6 +33,7 @@ class sdist(Command):
|
||||
def finalize_options(self) -> None: ...
|
||||
filelist: Incomplete
|
||||
def run(self) -> None: ...
|
||||
@deprecated("distutils.command.sdist.check_metadata is deprecated, use the check command instead")
|
||||
def check_metadata(self) -> None: ...
|
||||
def get_file_list(self) -> None: ...
|
||||
def add_defaults(self) -> None: ...
|
||||
@@ -37,3 +44,5 @@ class sdist(Command):
|
||||
def make_release_tree(self, base_dir, files) -> None: ...
|
||||
def make_distribution(self) -> None: ...
|
||||
def get_archive_files(self): ...
|
||||
|
||||
def is_comment(line: str) -> bool: ...
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
from collections.abc import Iterable, Iterator
|
||||
from typing import AnyStr, ClassVar, TypeVar, overload
|
||||
|
||||
from ..config import PyPIRCCommand
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
class upload(PyPIRCCommand):
|
||||
description: ClassVar[str]
|
||||
username: str
|
||||
@@ -16,3 +19,12 @@ class upload(PyPIRCCommand):
|
||||
def finalize_options(self) -> None: ...
|
||||
def run(self) -> None: ...
|
||||
def upload_file(self, command: str, pyversion: str, filename: str) -> None: ...
|
||||
|
||||
@overload
|
||||
def make_iterable(values: None) -> list[None]: ...
|
||||
@overload
|
||||
def make_iterable(values: AnyStr) -> Iterator[AnyStr]: ...
|
||||
@overload
|
||||
def make_iterable(values: Iterable[_T]) -> Iterator[_T]: ...
|
||||
@overload
|
||||
def make_iterable(values: _T) -> Iterator[_T]: ...
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
def consolidate_linker_args(args: list[str]) -> str | list[str]: ...
|
||||
Reference in New Issue
Block a user