mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-21 19:32:13 +08:00
Add remaining types to setuptools.build_meta (#9890)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Mapping
|
||||
from typing import Any
|
||||
|
||||
from setuptools import dist
|
||||
@@ -14,20 +14,31 @@ class Distribution(dist.Distribution):
|
||||
|
||||
class _BuildMetaBackend:
|
||||
def run_setup(self, setup_script: str = ...) -> None: ...
|
||||
def get_requires_for_build_wheel(self, config_settings: Incomplete | None = ...): ...
|
||||
def get_requires_for_build_sdist(self, config_settings: Incomplete | None = ...): ...
|
||||
def prepare_metadata_for_build_wheel(self, metadata_directory, config_settings: Incomplete | None = ...): ...
|
||||
def get_requires_for_build_wheel(self, config_settings: Mapping[str, Any] | None = ...) -> list[str]: ...
|
||||
def get_requires_for_build_sdist(self, config_settings: Mapping[str, Any] | None = ...) -> list[str]: ...
|
||||
def prepare_metadata_for_build_wheel(
|
||||
self, metadata_directory: str, config_settings: Mapping[str, Any] | None = ...
|
||||
) -> str: ...
|
||||
def build_wheel(
|
||||
self, wheel_directory, config_settings: Incomplete | None = ..., metadata_directory: Incomplete | None = ...
|
||||
): ...
|
||||
def build_sdist(self, sdist_directory, config_settings: Incomplete | None = ...): ...
|
||||
self, wheel_directory: str, config_settings: Mapping[str, Any] | None = ..., metadata_directory: str | None = ...
|
||||
) -> str: ...
|
||||
def build_sdist(self, sdist_directory: str, config_settings: Mapping[str, Any] | None = ...) -> str: ...
|
||||
def build_editable(
|
||||
self, wheel_directory: str, config_settings: Mapping[str, Any] | None = ..., metadata_directory: str | None = ...
|
||||
) -> str: ...
|
||||
def get_requires_for_build_editable(self, config_settings: Mapping[str, Any] | None = ...) -> list[str]: ...
|
||||
def prepare_metadata_for_build_editable(
|
||||
self, metadata_directory: str, config_settings: Mapping[str, Any] | None = ...
|
||||
) -> str: ...
|
||||
|
||||
class _BuildMetaLegacyBackend(_BuildMetaBackend):
|
||||
def run_setup(self, setup_script: str = ...) -> None: ...
|
||||
|
||||
get_requires_for_build_wheel: Any
|
||||
get_requires_for_build_sdist: Any
|
||||
prepare_metadata_for_build_wheel: Any
|
||||
build_wheel: Any
|
||||
build_sdist: Any
|
||||
__legacy__: Any
|
||||
_BACKEND: _BuildMetaBackend = ...
|
||||
get_requires_for_build_wheel = _BACKEND.get_requires_for_build_wheel
|
||||
get_requires_for_build_sdist = _BACKEND.get_requires_for_build_sdist
|
||||
prepare_metadata_for_build_wheel = _BACKEND.prepare_metadata_for_build_wheel
|
||||
build_wheel = _BACKEND.build_wheel
|
||||
build_sdist = _BACKEND.build_sdist
|
||||
|
||||
__legacy__: _BuildMetaLegacyBackend
|
||||
|
||||
Reference in New Issue
Block a user