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"
This commit is contained in:
Teddy Sudol
2017-04-17 15:06:36 -07:00
committed by Matthias Kramm
parent 243b67f0d2
commit 70f7f6cce6

View File

@@ -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: ...