From 70f7f6cce6d4520930db41d2bcd42e9c85b5e965 Mon Sep 17 00:00:00 2001 From: Teddy Sudol Date: Mon, 17 Apr 2017 15:06:36 -0700 Subject: [PATCH] Add more kwargs to distutils/core.setup() (#1170) * Add more kwargs to distutils/core.setup() These arguments are sourced from https://github.com/python-git/python/blob/master/Lib/distutils/core.py#L44 and https://github.com/python-git/python/blob/master/Lib/distutils/dist.py#L195 I do not claim that the list of kwargs is now complete. * Add missing optional args values * Remove duplicate, change "Dict" to "Mapping" --- stdlib/2and3/distutils/core.pyi | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/stdlib/2and3/distutils/core.pyi b/stdlib/2and3/distutils/core.pyi index 38d6a1a0f..d513c2b00 100644 --- a/stdlib/2and3/distutils/core.pyi +++ b/stdlib/2and3/distutils/core.pyi @@ -29,7 +29,20 @@ def setup(name: str = ..., platforms: Union[List[str], str] = ..., cmdclass: Mapping[str, Command] = ..., data_files: List[Tuple[str, List[str]]] = ..., - package_dir: Mapping[str, str] = ...) -> None: ... + package_dir: Mapping[str, str] = ..., + obsoletes: List[str] = ..., + provides: List[str] = ..., + requires: List[str] = ..., + command_packages: List[str] = ..., + command_options: Mapping[str, Mapping[str, Tuple[Any, Any]]] = ..., + package_data: Mapping[str, List[str]] = ..., + libraries: List[str] = ..., + headers: List[str] = ..., + ext_package: str = ..., + include_dirs: List[str] = ..., + password: str = ..., + fullname: str = ...) -> None: ... + def run_setup(script_name: str, script_args: Optional[List[str]] = ..., stop_after: str = ...) -> Distribution: ...