ipsw-parser 1.7.2__tar.gz → 1.7.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ipsw_parser-1.7.5/.github/workflows/python-publish.yml +38 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/PKG-INFO +1 -1
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/ipsw_parser/_version.py +3 -3
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/ipsw_parser/build_identity.py +16 -3
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/ipsw_parser.egg-info/PKG-INFO +1 -1
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/ipsw_parser.egg-info/SOURCES.txt +2 -0
- ipsw_parser-1.7.5/ipsw_parser.egg-info/scm_file_list.json +29 -0
- ipsw_parser-1.7.5/ipsw_parser.egg-info/scm_version.json +8 -0
- ipsw_parser-1.7.2/.github/workflows/python-publish.yml +0 -31
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/.gitattributes +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/.github/workflows/codeql.yml +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/.github/workflows/python-app.yml +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/.gitignore +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/.pre-commit-config.yaml +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/CODE_OF_CONDUCT.md +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/LICENSE +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/README.md +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/ipsw_parser/__init__.py +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/ipsw_parser/__main__.py +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/ipsw_parser/archive.py +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/ipsw_parser/build_manifest.py +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/ipsw_parser/component.py +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/ipsw_parser/dsc.py +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/ipsw_parser/exceptions.py +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/ipsw_parser/firmware.py +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/ipsw_parser/ipsw.py +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/ipsw_parser.egg-info/dependency_links.txt +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/ipsw_parser.egg-info/entry_points.txt +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/ipsw_parser.egg-info/requires.txt +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/ipsw_parser.egg-info/top_level.txt +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/pyproject.toml +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/pytest.ini +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/requirements.txt +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/setup.cfg +0 -0
- {ipsw_parser-1.7.2 → ipsw_parser-1.7.5}/tests/test_archive_backends.py +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# This workflow uploads a Python Package to PyPI using Trusted Publishing (OIDC).
|
|
2
|
+
# No API tokens or passwords are stored: PyPI verifies the workflow's identity.
|
|
3
|
+
# See: https://docs.pypi.org/trusted-publishers/
|
|
4
|
+
|
|
5
|
+
name: Upload Python Package
|
|
6
|
+
|
|
7
|
+
on:
|
|
8
|
+
release:
|
|
9
|
+
types: [created]
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
deploy:
|
|
13
|
+
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
environment:
|
|
17
|
+
name: pypi
|
|
18
|
+
url: https://pypi.org/p/ipsw_parser
|
|
19
|
+
|
|
20
|
+
permissions:
|
|
21
|
+
id-token: write # required for Trusted Publishing (OIDC)
|
|
22
|
+
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v4
|
|
25
|
+
with:
|
|
26
|
+
fetch-depth: 0 # full history + tags so setuptools_scm can derive the version
|
|
27
|
+
- name: Set up Python
|
|
28
|
+
uses: actions/setup-python@v5
|
|
29
|
+
with:
|
|
30
|
+
python-version: '3.x'
|
|
31
|
+
- name: Install dependencies
|
|
32
|
+
run: |
|
|
33
|
+
python -m pip install --upgrade pip
|
|
34
|
+
pip install build
|
|
35
|
+
- name: Build
|
|
36
|
+
run: python -m build
|
|
37
|
+
- name: Publish package distributions to PyPI
|
|
38
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '1.7.
|
|
22
|
-
__version_tuple__ = version_tuple = (1, 7,
|
|
21
|
+
__version__ = version = '1.7.5'
|
|
22
|
+
__version_tuple__ = version_tuple = (1, 7, 5)
|
|
23
23
|
|
|
24
|
-
__commit_id__ = commit_id = '
|
|
24
|
+
__commit_id__ = commit_id = 'g06957d9d9'
|
|
@@ -2,6 +2,7 @@ import logging
|
|
|
2
2
|
import os
|
|
3
3
|
import shutil
|
|
4
4
|
from collections import UserDict
|
|
5
|
+
from concurrent.futures import ThreadPoolExecutor, as_completed
|
|
5
6
|
from functools import cached_property
|
|
6
7
|
from pathlib import Path
|
|
7
8
|
from tempfile import TemporaryDirectory
|
|
@@ -72,8 +73,9 @@ def _decode_sandbox_profiles(kernel_output: Path, output: Path, profile_type: Op
|
|
|
72
73
|
args += ["--type", profile_type]
|
|
73
74
|
|
|
74
75
|
output.mkdir(exist_ok=True, parents=True)
|
|
76
|
+
profile_names = ipsw(*args).splitlines()
|
|
75
77
|
|
|
76
|
-
|
|
78
|
+
def decode_worker(profile_name: str) -> None:
|
|
77
79
|
profile_path = (output / profile_name).with_suffix(".sb")
|
|
78
80
|
decode_args = ["sb", "dec", kernel_output, profile_name]
|
|
79
81
|
if profile_type is not None:
|
|
@@ -82,9 +84,20 @@ def _decode_sandbox_profiles(kernel_output: Path, output: Path, profile_type: Op
|
|
|
82
84
|
profile = ipsw(*decode_args)
|
|
83
85
|
except ProcessExecutionError as e:
|
|
84
86
|
logger.warning(f"failed to decode sandbox profile {profile_name}: {e}")
|
|
85
|
-
|
|
87
|
+
return
|
|
86
88
|
profile_path.write_text(profile)
|
|
87
89
|
|
|
90
|
+
with ThreadPoolExecutor(max_workers=os.cpu_count()) as executor:
|
|
91
|
+
futures = [
|
|
92
|
+
executor.submit(
|
|
93
|
+
decode_worker,
|
|
94
|
+
profile_name,
|
|
95
|
+
)
|
|
96
|
+
for profile_name in profile_names
|
|
97
|
+
]
|
|
98
|
+
for future in as_completed(futures):
|
|
99
|
+
future.result()
|
|
100
|
+
|
|
88
101
|
|
|
89
102
|
def _extract_kernelcache(build_identity: "BuildIdentity", output: Path) -> Path:
|
|
90
103
|
kernel_component = build_identity.get_component("KernelCache")
|
|
@@ -216,7 +229,7 @@ class BuildIdentity(UserDict):
|
|
|
216
229
|
logger.error("Failed to extract sandbox profiles: %s", e)
|
|
217
230
|
try:
|
|
218
231
|
_decode_sandbox_profiles(kernel_output, sandbox_profiles / "protobox", profile_type="protobox")
|
|
219
|
-
except (ProcessExecutionError, FileNotFoundError) as e:
|
|
232
|
+
except (ProcessExecutionError, FileNotFoundError, OSError) as e:
|
|
220
233
|
logger.error("Failed to extract sandbox profiles: %s", e)
|
|
221
234
|
|
|
222
235
|
for cryptex in ("App", "OS"):
|
|
@@ -28,5 +28,7 @@ ipsw_parser.egg-info/SOURCES.txt
|
|
|
28
28
|
ipsw_parser.egg-info/dependency_links.txt
|
|
29
29
|
ipsw_parser.egg-info/entry_points.txt
|
|
30
30
|
ipsw_parser.egg-info/requires.txt
|
|
31
|
+
ipsw_parser.egg-info/scm_file_list.json
|
|
32
|
+
ipsw_parser.egg-info/scm_version.json
|
|
31
33
|
ipsw_parser.egg-info/top_level.txt
|
|
32
34
|
tests/test_archive_backends.py
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"files": [
|
|
3
|
+
".gitattributes",
|
|
4
|
+
".github/ISSUE_TEMPLATE/bug_report.md",
|
|
5
|
+
".github/ISSUE_TEMPLATE/feature_request.md",
|
|
6
|
+
".github/workflows/codeql.yml",
|
|
7
|
+
".github/workflows/python-app.yml",
|
|
8
|
+
".github/workflows/python-publish.yml",
|
|
9
|
+
".gitignore",
|
|
10
|
+
".pre-commit-config.yaml",
|
|
11
|
+
"CODE_OF_CONDUCT.md",
|
|
12
|
+
"LICENSE",
|
|
13
|
+
"README.md",
|
|
14
|
+
"ipsw_parser/__init__.py",
|
|
15
|
+
"ipsw_parser/__main__.py",
|
|
16
|
+
"ipsw_parser/archive.py",
|
|
17
|
+
"ipsw_parser/build_identity.py",
|
|
18
|
+
"ipsw_parser/build_manifest.py",
|
|
19
|
+
"ipsw_parser/component.py",
|
|
20
|
+
"ipsw_parser/dsc.py",
|
|
21
|
+
"ipsw_parser/exceptions.py",
|
|
22
|
+
"ipsw_parser/firmware.py",
|
|
23
|
+
"ipsw_parser/ipsw.py",
|
|
24
|
+
"pyproject.toml",
|
|
25
|
+
"pytest.ini",
|
|
26
|
+
"requirements.txt",
|
|
27
|
+
"tests/test_archive_backends.py"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# This workflows will upload a Python Package using Twine when a release is created
|
|
2
|
-
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
|
|
3
|
-
|
|
4
|
-
name: Upload Python Package
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
release:
|
|
8
|
-
types: [created]
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
deploy:
|
|
12
|
-
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
|
|
15
|
-
steps:
|
|
16
|
-
- uses: actions/checkout@v4
|
|
17
|
-
- name: Set up Python
|
|
18
|
-
uses: actions/setup-python@v4
|
|
19
|
-
with:
|
|
20
|
-
python-version: '3.x'
|
|
21
|
-
- name: Install dependencies
|
|
22
|
-
run: |
|
|
23
|
-
python -m pip install --upgrade pip
|
|
24
|
-
pip install build setuptools wheel twine
|
|
25
|
-
- name: Build and publish
|
|
26
|
-
env:
|
|
27
|
-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
|
|
28
|
-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
|
|
29
|
-
run: |
|
|
30
|
-
python -m build
|
|
31
|
-
twine upload dist/*
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|