1 from abc import abstractmethod
2 from collections.abc import Iterable, Mapping
3 from distutils.core import Command as _Command
4 from typing import Any, Type
6 from setuptools._deprecation_warning import SetuptoolsDeprecationWarning as SetuptoolsDeprecationWarning
7 from setuptools.depends import Require as Require
8 from setuptools.dist import Distribution as Distribution
9 from setuptools.extension import Extension as Extension
15 def find(cls, where: str = ..., exclude: Iterable[str] = ..., include: Iterable[str] = ...) -> list[str]: ...
17 class PEP420PackageFinder(PackageFinder): ...
19 find_packages = PackageFinder.find
20 find_namespace_packages = PEP420PackageFinder.find
26 description: str = ...,
27 long_description: str = ...,
29 author_email: str = ...,
30 maintainer: str = ...,
31 maintainer_email: str = ...,
33 download_url: str = ...,
34 packages: list[str] = ...,
35 py_modules: list[str] = ...,
36 scripts: list[str] = ...,
37 ext_modules: list[Extension] = ...,
38 classifiers: list[str] = ...,
39 distclass: Type[Distribution] = ...,
40 script_name: str = ...,
41 script_args: list[str] = ...,
42 options: Mapping[str, Any] = ...,
44 keywords: list[str] | str = ...,
45 platforms: list[str] | str = ...,
46 cmdclass: Mapping[str, Type[Command]] = ...,
47 data_files: list[tuple[str, list[str]]] = ...,
48 package_dir: Mapping[str, str] = ...,
49 obsoletes: list[str] = ...,
50 provides: list[str] = ...,
51 requires: list[str] = ...,
52 command_packages: list[str] = ...,
53 command_options: Mapping[str, Mapping[str, tuple[Any, Any]]] = ...,
54 package_data: Mapping[str, list[str]] = ...,
55 include_package_data: bool = ...,
56 libraries: list[str] = ...,
57 headers: list[str] = ...,
58 ext_package: str = ...,
59 include_dirs: list[str] = ...,
65 class Command(_Command):
66 command_consumes_arguments: bool
67 def __init__(self, dist: Distribution, **kw: Any) -> None: ...
68 def ensure_string_list(self, option: str | list[str]) -> None: ...
69 def reinitialize_command(self, command: _Command | str, reinit_subcommands: int = ..., **kw: Any) -> _Command: ...
71 def initialize_options(self) -> None: ...
73 def finalize_options(self) -> None: ...
75 def run(self) -> None: ...