From 307dd08a6e09f800cb239d37f0eb475345c7c67c Mon Sep 17 00:00:00 2001 From: Avasam Date: Thu, 8 Dec 2022 05:45:30 -0500 Subject: [PATCH] Bump pyinstaller to 5.7.* (#9343) --- stubs/pyinstaller/@tests/stubtest_allowlist.txt | 1 - stubs/pyinstaller/METADATA.toml | 2 +- stubs/pyinstaller/PyInstaller/compat.pyi | 1 + stubs/pyinstaller/PyInstaller/isolated/_parent.pyi | 1 + .../pyinstaller/PyInstaller/utils/hooks/__init__.pyi | 11 +++-------- 5 files changed, 6 insertions(+), 10 deletions(-) diff --git a/stubs/pyinstaller/@tests/stubtest_allowlist.txt b/stubs/pyinstaller/@tests/stubtest_allowlist.txt index 7d14fec40..683bb11b8 100644 --- a/stubs/pyinstaller/@tests/stubtest_allowlist.txt +++ b/stubs/pyinstaller/@tests/stubtest_allowlist.txt @@ -32,7 +32,6 @@ PyInstaller.utils.git PyInstaller.utils.hooks.django PyInstaller.utils.hooks.gi PyInstaller.utils.hooks.qt -PyInstaller.utils.hooks.subproc.* PyInstaller.utils.hooks.tcl_tk PyInstaller.utils.misc PyInstaller.utils.osx diff --git a/stubs/pyinstaller/METADATA.toml b/stubs/pyinstaller/METADATA.toml index 4a5c58124..19f97e644 100644 --- a/stubs/pyinstaller/METADATA.toml +++ b/stubs/pyinstaller/METADATA.toml @@ -1,4 +1,4 @@ -version = "5.6.*" +version = "5.7.*" requires = ["types-setuptools"] [tool.stubtest] diff --git a/stubs/pyinstaller/PyInstaller/compat.pyi b/stubs/pyinstaller/PyInstaller/compat.pyi index 8e18e262b..af165e1e9 100644 --- a/stubs/pyinstaller/PyInstaller/compat.pyi +++ b/stubs/pyinstaller/PyInstaller/compat.pyi @@ -7,6 +7,7 @@ from typing_extensions import Literal, TypeAlias _OpenFile: TypeAlias = StrOrBytesPath | FileDescriptor +strict_collect_mode: bool is_64bits: bool is_py35: Literal[True] is_py36: Literal[True] diff --git a/stubs/pyinstaller/PyInstaller/isolated/_parent.pyi b/stubs/pyinstaller/PyInstaller/isolated/_parent.pyi index ea9ee603e..b10612bb1 100644 --- a/stubs/pyinstaller/PyInstaller/isolated/_parent.pyi +++ b/stubs/pyinstaller/PyInstaller/isolated/_parent.pyi @@ -9,6 +9,7 @@ _R = TypeVar("_R") _P = ParamSpec("_P") class Python: + def __init__(self, strict_mode: bool | None = ...) -> None: ... def __enter__(self: Self) -> Self: ... def __exit__( self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None diff --git a/stubs/pyinstaller/PyInstaller/utils/hooks/__init__.pyi b/stubs/pyinstaller/PyInstaller/utils/hooks/__init__.pyi index 28d27b52c..013781c03 100644 --- a/stubs/pyinstaller/PyInstaller/utils/hooks/__init__.pyi +++ b/stubs/pyinstaller/PyInstaller/utils/hooks/__init__.pyi @@ -1,9 +1,9 @@ # https://pyinstaller.org/en/stable/hooks.html -from _typeshed import StrOrBytesPath, StrPath, SupportsKeysAndGetItem -from collections.abc import Callable, Iterable, Mapping +from _typeshed import StrOrBytesPath, StrPath +from collections.abc import Callable, Iterable from typing import Any -from typing_extensions import Literal, TypeAlias +from typing_extensions import Literal import pkg_resources from PyInstaller import HOMEPATH as HOMEPATH @@ -13,17 +13,12 @@ from PyInstaller.utils.hooks.win32 import get_pywin32_module_file_attribute as g conda_support = conda -_Environ: TypeAlias = SupportsKeysAndGetItem[str, str] | Iterable[tuple[str, str]] | Mapping[str, str] - PY_IGNORE_EXTENSIONS: set[str] hook_variables: dict[str, str] def exec_statement(statement: str) -> str | int: ... def exec_statement_rc(statement: str) -> str | int: ... -def exec_script(script_filename: StrOrBytesPath, *args: str, env: _Environ | None = ...) -> str | int: ... -def exec_script_rc(script_filename: StrOrBytesPath, *args: str, env: _Environ | None = ...) -> str | int: ... def eval_statement(statement: str) -> Any | Literal[""]: ... -def eval_script(script_filename: StrOrBytesPath, *args: str, env: _Environ | None = ...) -> Any | Literal[""]: ... def get_pyextension_imports(module_name: str) -> list[str]: ... def get_homebrew_path(formula: str = ...) -> str | None: ... def remove_prefix(string: str, prefix: str) -> str: ...