refactor: split the pack and manifest builders

generate_pack, generate_emulator_pack, generate_manifest, _main and
the other long functions of generate_pack.py are split by stage. A
platform pack is planned once (_PlatformPlan) and written by
_PlatformPackBuild, whose lookups generate_pack binds; the emulator
pack and the manifest follow the same shape. The destinations a build
has taken live in _Placed.

Public builders keep their names and keyword callers: options past
the eighth parameter are typed with Unpack[TypedDict], read once, and
an unknown key still raises TypeError. The imports at the bottom of
the module move to the top. The pack and manifest bytes are unchanged.

generate_emulator_pack now takes zip_contents by keyword:
pipeline.py:599 and test_verify_emulator_evidence.py:66 pass it by
name. _data_directory_members, _select_variants and
_manifest_core_entries take their options from the 9th argument by
keyword.
This commit is contained in:
Abdessamad Derraz committed 2026-11-17 07:48:08 +01:00
1 parent 9bb8d89acd
commit 338d1cc7b9
1 file changed
+3002 -2375
+3002 -2375
View File
File diff suppressed because it is too large. Load diff