massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / setuptools / setuptools / __init__.pyi
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
5
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
10
11 __version__: str
12
13 class PackageFinder:
14     @classmethod
15     def find(cls, where: str = ..., exclude: Iterable[str] = ..., include: Iterable[str] = ...) -> list[str]: ...
16
17 class PEP420PackageFinder(PackageFinder): ...
18
19 find_packages = PackageFinder.find
20 find_namespace_packages = PEP420PackageFinder.find
21
22 def setup(
23     *,
24     name: str = ...,
25     version: str = ...,
26     description: str = ...,
27     long_description: str = ...,
28     author: str = ...,
29     author_email: str = ...,
30     maintainer: str = ...,
31     maintainer_email: str = ...,
32     url: 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] = ...,
43     license: str = ...,
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] = ...,
60     password: str = ...,
61     fullname: str = ...,
62     **attrs: Any,
63 ) -> None: ...
64
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: ...
70     @abstractmethod
71     def initialize_options(self) -> None: ...
72     @abstractmethod
73     def finalize_options(self) -> None: ...
74     @abstractmethod
75     def run(self) -> None: ...
76
77 class sic(str): ...