mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-06-24 17:54:01 +08:00
Bump setuptools to 80.0.* (#13898)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
version = "79.0.*"
|
||||
version = "80.0.*"
|
||||
upstream_repository = "https://github.com/pypa/setuptools"
|
||||
extra_description = """\
|
||||
Given that `pkg_resources` is typed since `setuptools >= 71.1`, \
|
||||
|
||||
@@ -1,34 +1,24 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import ClassVar
|
||||
from typing_extensions import deprecated
|
||||
|
||||
from pkg_resources import Distribution
|
||||
from setuptools import Command
|
||||
from setuptools.warnings import SetuptoolsDeprecationWarning
|
||||
|
||||
from .. import namespaces
|
||||
from .easy_install import easy_install
|
||||
|
||||
class develop(namespaces.DevelopInstaller, easy_install):
|
||||
description: str
|
||||
class develop(Command):
|
||||
user_options: ClassVar[list[tuple[str, str | None, str]]]
|
||||
boolean_options: ClassVar[list[str]]
|
||||
command_consumes_arguments: bool
|
||||
multi_version: bool
|
||||
def run(self) -> None: ... # type: ignore[override]
|
||||
uninstall: Incomplete
|
||||
egg_path: Incomplete
|
||||
setup_path: Incomplete
|
||||
always_copy_from: str
|
||||
install_dir: Incomplete
|
||||
no_deps: bool
|
||||
user: bool
|
||||
prefix: Incomplete
|
||||
index_url: Incomplete
|
||||
def run(self) -> None: ...
|
||||
@deprecated(
|
||||
"develop command is deprecated. Please avoid running `setup.py` and `develop`. "
|
||||
"Instead, use standards-based tools like pip or uv."
|
||||
)
|
||||
def initialize_options(self) -> None: ...
|
||||
args: list[Incomplete]
|
||||
egg_link: str
|
||||
egg_base: Incomplete
|
||||
dist: Distribution
|
||||
def finalize_options(self) -> None: ...
|
||||
def install_for_development(self) -> None: ...
|
||||
def uninstall_link(self) -> None: ...
|
||||
def install_egg_scripts(self, dist): ...
|
||||
def install_wrapper_scripts(self, dist): ...
|
||||
|
||||
class VersionlessRequirement:
|
||||
def __init__(self, dist) -> None: ...
|
||||
def __getattr__(self, name: str): ...
|
||||
def as_requirement(self): ...
|
||||
class DevelopDeprecationWarning(SetuptoolsDeprecationWarning): ...
|
||||
|
||||
@@ -56,7 +56,7 @@ class easy_install(Command):
|
||||
def finalize_options(self) -> None: ...
|
||||
def expand_basedirs(self) -> None: ...
|
||||
def expand_dirs(self) -> None: ...
|
||||
def run(self, show_deprecation: bool = True) -> None: ...
|
||||
def run(self, show_deprecation: bool = True) -> NoReturn: ...
|
||||
def pseudo_tempname(self): ...
|
||||
def warn_deprecated_options(self) -> None: ...
|
||||
def check_site_dir(self) -> None: ...
|
||||
@@ -83,7 +83,7 @@ class easy_install(Command):
|
||||
def install_wheel(self, wheel_path, tmpdir): ...
|
||||
def installation_report(self, req, dist, what: str = "Installed") -> str: ...
|
||||
def report_editable(self, spec, setup_script): ...
|
||||
def run_setup(self, setup_script, setup_base, args) -> None: ...
|
||||
def run_setup(self, setup_script, setup_base, args) -> NoReturn: ...
|
||||
def build_and_install(self, setup_script, setup_base): ...
|
||||
def update_pth(self, dist) -> None: ...
|
||||
def unpack_progress(self, src, dst): ...
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Callable
|
||||
from typing import Any, ClassVar
|
||||
from typing import Any, ClassVar, NoReturn
|
||||
|
||||
from setuptools.dist import Distribution
|
||||
|
||||
@@ -20,4 +20,4 @@ class install(orig.install):
|
||||
extra_dirs: str
|
||||
def handle_extra_path(self): ...
|
||||
def run(self): ...
|
||||
def do_egg_install(self) -> None: ...
|
||||
def do_egg_install(self) -> NoReturn: ...
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
import sys
|
||||
from types import TracebackType
|
||||
from typing import ClassVar
|
||||
from typing_extensions import Self
|
||||
|
||||
from ._distutils.errors import DistutilsError
|
||||
|
||||
__all__ = ["AbstractSandbox", "DirectorySandbox", "SandboxViolation", "run_setup"]
|
||||
|
||||
class UnpickleableException(Exception):
|
||||
@staticmethod
|
||||
def dump(type, exc): ...
|
||||
|
||||
class ExceptionSaver:
|
||||
def __enter__(self) -> Self: ...
|
||||
def __exit__(self, type: type[BaseException] | None, exc: BaseException | None, tb: TracebackType | None) -> bool: ...
|
||||
def resume(self) -> None: ...
|
||||
|
||||
def run_setup(setup_script, args): ...
|
||||
|
||||
class AbstractSandbox:
|
||||
def __enter__(self) -> None: ...
|
||||
def __exit__(
|
||||
self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None
|
||||
) -> None: ...
|
||||
def run(self, func): ...
|
||||
# Dynamically created
|
||||
if sys.platform == "win32":
|
||||
def startfile(self, path, *args, **kw): ...
|
||||
else:
|
||||
def chown(self, path, *args, **kw): ...
|
||||
def chroot(self, path, *args, **kw): ...
|
||||
def lchown(self, path, *args, **kw): ...
|
||||
def mkfifo(self, path, *args, **kw): ...
|
||||
def mknod(self, path, *args, **kw): ...
|
||||
def pathconf(self, path, *args, **kw): ...
|
||||
|
||||
def access(self, path, *args, **kw): ...
|
||||
def chdir(self, path, *args, **kw): ...
|
||||
def chmod(self, path, *args, **kw): ...
|
||||
def getcwd(self, *args, **kw): ...
|
||||
def link(self, src, dst, *args, **kw): ...
|
||||
def listdir(self, path, *args, **kw): ...
|
||||
def lstat(self, path, *args, **kw): ...
|
||||
def mkdir(self, path, *args, **kw): ...
|
||||
def open(self, path, *args, **kw): ...
|
||||
def readlink(self, path, *args, **kw): ...
|
||||
def remove(self, path, *args, **kw): ...
|
||||
def rename(self, src, dst, *args, **kw): ...
|
||||
def rmdir(self, path, *args, **kw): ...
|
||||
def stat(self, path, *args, **kw): ...
|
||||
def symlink(self, src, dst, *args, **kw): ...
|
||||
def unlink(self, path, *args, **kw): ...
|
||||
def utime(self, path, *args, **kw): ...
|
||||
|
||||
class DirectorySandbox(AbstractSandbox):
|
||||
write_ops: ClassVar[dict[str, None]]
|
||||
def __init__(self, sandbox, exceptions=...) -> None: ...
|
||||
def tmpnam(self) -> None: ...
|
||||
def open(self, file, flags, mode: int = 511, *args, **kw): ... # type: ignore[override]
|
||||
|
||||
class SandboxViolation(DistutilsError):
|
||||
tmpl: str
|
||||
Reference in New Issue
Block a user