massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / distutils / dist.pyi
1 from _typeshed import StrOrBytesPath, SupportsWrite
2 from distutils.cmd import Command
3 from typing import IO, Any, Iterable, Mapping, Type
4
5 class DistributionMetadata:
6     def __init__(self, path: int | StrOrBytesPath | None = ...) -> None: ...
7     name: str | None
8     version: str | None
9     author: str | None
10     author_email: str | None
11     maintainer: str | None
12     maintainer_email: str | None
13     url: str | None
14     license: str | None
15     description: str | None
16     long_description: str | None
17     keywords: str | list[str] | None
18     platforms: str | list[str] | None
19     classifiers: str | list[str] | None
20     download_url: str | None
21     provides: list[str] | None
22     requires: list[str] | None
23     obsoletes: list[str] | None
24     def read_pkg_file(self, file: IO[str]) -> None: ...
25     def write_pkg_info(self, base_dir: str) -> None: ...
26     def write_pkg_file(self, file: SupportsWrite[str]) -> None: ...
27     def get_name(self) -> str: ...
28     def get_version(self) -> str: ...
29     def get_fullname(self) -> str: ...
30     def get_author(self) -> str: ...
31     def get_author_email(self) -> str: ...
32     def get_maintainer(self) -> str: ...
33     def get_maintainer_email(self) -> str: ...
34     def get_contact(self) -> str: ...
35     def get_contact_email(self) -> str: ...
36     def get_url(self) -> str: ...
37     def get_license(self) -> str: ...
38     def get_licence(self) -> str: ...
39     def get_description(self) -> str: ...
40     def get_long_description(self) -> str: ...
41     def get_keywords(self) -> str | list[str]: ...
42     def get_platforms(self) -> str | list[str]: ...
43     def get_classifiers(self) -> str | list[str]: ...
44     def get_download_url(self) -> str: ...
45     def get_requires(self) -> list[str]: ...
46     def set_requires(self, value: Iterable[str]) -> None: ...
47     def get_provides(self) -> list[str]: ...
48     def set_provides(self, value: Iterable[str]) -> None: ...
49     def get_obsoletes(self) -> list[str]: ...
50     def set_obsoletes(self, value: Iterable[str]) -> None: ...
51
52 class Distribution:
53     cmdclass: dict[str, Type[Command]]
54     metadata: DistributionMetadata
55     def __init__(self, attrs: Mapping[str, Any] | None = ...) -> None: ...
56     def get_option_dict(self, command: str) -> dict[str, tuple[str, str]]: ...
57     def parse_config_files(self, filenames: Iterable[str] | None = ...) -> None: ...
58     def get_command_obj(self, command: str, create: bool = ...) -> Command | None: ...