Skip to content

Commit 7472224

Browse files
authored
Bump pyinstaller to 6.0.* (#10800)
1 parent f8a673f commit 7472224

File tree

8 files changed

+19
-150
lines changed

8 files changed

+19
-150
lines changed
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
PyInstaller\.utils\.win32\.versioninfo\.\w+?
2-
PyInstaller\.utils\.win32\.winmanifest\.\w+?

stubs/pyinstaller/METADATA.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
version = "5.13.*"
1+
version = "6.0.*"
22
upstream_repository = "https://github.com/pyinstaller/pyinstaller"
33
requires = ["types-setuptools"]
4+
requires_python = ">=3.8"

stubs/pyinstaller/PyInstaller/building/api.pyi

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ from PyInstaller.building.build_main import Analysis
1313
from PyInstaller.building.datastruct import Target, _TOCTuple
1414
from PyInstaller.building.splash import Splash
1515
from PyInstaller.utils.win32.versioninfo import VSVersionInfo
16-
from PyInstaller.utils.win32.winmanifest import Manifest
1716

1817
if sys.platform == "darwin":
1918
_TargetArch: TypeAlias = Literal["x86_64", "arm64", "universal2"]
@@ -22,9 +21,9 @@ if sys.platform == "darwin":
2221
_CodesignIdentityParam: TypeAlias = str | None
2322
else:
2423
_TargetArch: TypeAlias = None
25-
_SuportedTargetArchParam: TypeAlias = object
24+
_SuportedTargetArchParam: TypeAlias = Unused
2625
_CodesignIdentity: TypeAlias = None
27-
_CodesignIdentityParam: TypeAlias = object
26+
_CodesignIdentityParam: TypeAlias = Unused
2827

2928
if sys.platform == "win32":
3029
_Icon: TypeAlias = list[StrPath] | str
@@ -34,18 +33,18 @@ elif sys.platform == "darwin":
3433
_IconParam: TypeAlias = StrPath | list[StrPath] | None
3534
else:
3635
_Icon: TypeAlias = None
37-
_IconParam: TypeAlias = object
36+
_IconParam: TypeAlias = Unused
3837

3938
if sys.platform == "win32":
4039
_VersionSrc: TypeAlias = VSVersionInfo | None
4140
_VersionParam: TypeAlias = VSVersionInfo | StrOrBytesPath | None
42-
_Manifest: TypeAlias = Manifest
43-
_ManifestParam: TypeAlias = Manifest | None
41+
_Manifest: TypeAlias = bytes
42+
_ManifestParam: TypeAlias = str | None
4443
else:
4544
_VersionSrc: TypeAlias = None
46-
_VersionParam: TypeAlias = object
45+
_VersionParam: TypeAlias = Unused
4746
_Manifest: TypeAlias = None
48-
_ManifestParam: TypeAlias = object
47+
_ManifestParam: TypeAlias = Unused
4948

5049
class PYZ(Target):
5150
name: str
@@ -60,6 +59,7 @@ class PKG(Target):
6059
xformdict: ClassVar[dict[str, str]]
6160
toc: list[_TOCTuple]
6261
cdict: Mapping[str, bool]
62+
python_lib_name: str
6363
name: str
6464
exclude_binaries: bool
6565
strip_binaries: bool
@@ -71,6 +71,7 @@ class PKG(Target):
7171
def __init__(
7272
self,
7373
toc: Iterable[_TOCTuple],
74+
python_lib_name: str,
7475
name: str | None = None,
7576
cdict: Mapping[str, bool] | None = None,
7677
exclude_binaries: bool = False,

stubs/pyinstaller/PyInstaller/building/datastruct.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ from collections.abc import Iterable, Sequence
33
from typing import ClassVar
44
from typing_extensions import Literal, LiteralString, Self, SupportsIndex, TypeAlias
55

6-
_TypeCode: TypeAlias = Literal["DATA", "BINARY", "EXTENSION", "OPTION"]
6+
_TypeCode: TypeAlias = Literal["DEPENDENCY", "SYMLINK", "DATA", "BINARY", "EXECUTABLE", "EXTENSION", "OPTION"]
77
_TOCTuple: TypeAlias = tuple[str, str | None, _TypeCode | None]
88

99
class TOC(list[_TOCTuple]):
@@ -44,3 +44,4 @@ class Tree(Target, list[_TOCTuple]):
4444

4545
def normalize_toc(toc: Iterable[_TOCTuple]) -> list[_TOCTuple]: ...
4646
def normalize_pyz_toc(toc: Iterable[_TOCTuple]) -> list[_TOCTuple]: ...
47+
def toc_process_symbolic_links(toc: Iterable[_TOCTuple]) -> list[_TOCTuple]: ...

stubs/pyinstaller/PyInstaller/compat.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ strict_collect_mode: bool
99
is_64bits: Final[bool]
1010
is_py35: Final = True
1111
is_py36: Final = True
12-
is_py37: Final[bool]
13-
is_py38: Final[bool]
12+
is_py37: Final = True
13+
is_py38: Final = True
1414
is_py39: Final[bool]
1515
is_py310: Final[bool]
1616
is_py311: Final[bool]

stubs/pyinstaller/PyInstaller/utils/hooks/__init__.pyi

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ from collections.abc import Callable, Iterable
55
from typing import Any
66
from typing_extensions import Final, Literal
77

8-
import pkg_resources
98
from PyInstaller import HOMEPATH as HOMEPATH
109
from PyInstaller.depend.imphookapi import PostGraphAPI
1110
from PyInstaller.utils.hooks import conda
12-
from PyInstaller.utils.hooks.win32 import get_pywin32_module_file_attribute as get_pywin32_module_file_attribute
1311

1412
conda_support = conda
1513

@@ -27,11 +25,9 @@ def remove_file_extension(filename: str) -> str: ...
2725
def can_import_module(module_name: str) -> bool: ...
2826
def get_module_attribute(module_name: str, attr_name: str) -> Any: ...
2927
def get_module_file_attribute(package: str) -> str | None: ...
30-
def is_module_satisfies(
31-
requirements: Iterable[str] | pkg_resources.Requirement,
32-
version: str | pkg_resources.Distribution | None = None,
33-
version_attr: str = "__version__",
34-
) -> bool: ...
28+
def get_pywin32_module_file_attribute(module_name: str) -> str | None: ...
29+
def check_requirement(requirement: str) -> bool: ...
30+
def is_module_satisfies(requirements: str, version: None = None, version_attr: None = None) -> bool: ...
3531
def is_package(module_name: str) -> bool: ...
3632
def get_all_package_paths(package: str) -> list[str]: ...
3733
def package_base_path(package_path: str, package: str) -> str: ...
@@ -58,11 +54,10 @@ def collect_system_data_files(
5854
) -> list[tuple[str, str]]: ...
5955
def copy_metadata(package_name: str, recursive: bool = False) -> list[tuple[str, str]]: ...
6056
def get_installer(module: str) -> str | None: ...
61-
def requirements_for_package(package_name: str) -> list[str]: ...
6257
def collect_all(
6358
package_name: str,
6459
include_py_files: bool = True,
65-
filter_submodules: Callable[[str], bool] | None = None,
60+
filter_submodules: Callable[[str], bool] = ...,
6661
exclude_datas: Iterable[str] | None = None,
6762
include_datas: Iterable[str] | None = None,
6863
on_error: Literal["ignore", "warn once", "warn", "raise"] = "warn once",

stubs/pyinstaller/PyInstaller/utils/hooks/win32.pyi

Lines changed: 0 additions & 1 deletion
This file was deleted.

stubs/pyinstaller/PyInstaller/utils/win32/winmanifest.pyi

Lines changed: 0 additions & 127 deletions
This file was deleted.

0 commit comments

Comments
 (0)