Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stubs/setuptools/METADATA.toml
Original file line number Diff line number Diff line change
@@ -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`, \
Expand Down
2 changes: 1 addition & 1 deletion stubs/setuptools/setuptools/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
Expand Down
5 changes: 1 addition & 4 deletions stubs/setuptools/setuptools/_distutils/archive_util.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand All @@ -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: ...
Expand All @@ -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: ...
1 change: 0 additions & 1 deletion stubs/setuptools/setuptools/_distutils/cmd.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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]]]
Expand Down
5 changes: 2 additions & 3 deletions stubs/setuptools/setuptools/_distutils/compilers/C/base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: ...
Expand Down Expand Up @@ -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(
Expand Down
1 change: 0 additions & 1 deletion stubs/setuptools/setuptools/_distutils/dist.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 2 additions & 10 deletions stubs/setuptools/setuptools/_distutils/spawn.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
7 changes: 1 addition & 6 deletions stubs/setuptools/setuptools/_distutils/util.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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: ...
Expand Down
7 changes: 1 addition & 6 deletions stubs/setuptools/setuptools/command/bdist_egg.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
1 change: 0 additions & 1 deletion stubs/setuptools/setuptools/command/editable_wheel.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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): ...
Expand Down
2 changes: 1 addition & 1 deletion stubs/setuptools/setuptools/command/setopt.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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]]]
Expand Down