refactor: move leaf modules into packages

core: hashing, artifacts, ziptools, deterministic_zip, romdir, sect233r1,
crypto_verify, paths (REPO_ROOT). model: safeparse (needs yaml),
dumpcatalog, largefiles, alternatives. resolve: nativemode, validation,
launchers, slot, truth, gamedata, and exporter/baseline.py and
exporter/candidates.py as resolve/reconcile.py and resolve/categories.py,
which truth and gamedata read.

Every importer follows. Modules one level deeper read the repository
root from core.paths instead of __file__.
This commit is contained in:
Abdessamad Derraz committed 2026-11-18 10:50:45 +01:00
1 parent 23d8a770f1
commit c784aef883
167 files changed
+412 -434

No files matched your search

+3 -3
View File
@@ -207,7 +207,7 @@ def _group_requirement_split(path: Path, document: object) -> list[str]:
that can contradict the first: a true on the first name only wrote the
search order into required, and the other names read as optional.
"""
from alternatives import groups_of
from model.alternatives import groups_of
if not isinstance(document, dict):
return []
@@ -558,7 +558,7 @@ def _save_dir_without_library_name(path: Path, document: object) -> list[str]:
(sort_savefiles_enable): without the name, packs and the installer
cannot say where the file goes, and leave it out.
"""
from validation import read_from_save_dir
from resolve.validation import read_from_save_dir
if not isinstance(document, dict):
return []
@@ -581,7 +581,7 @@ def _save_folder_once_paths(path: Path, document: dict) -> list[str]:
frontend sorts saves by core or not, which holds only when the path
already names the folder the core reads below.
"""
from validation import read_from_save_dir
from resolve.validation import read_from_save_dir
if not document.get("save_folder_once"):
return []