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

+4 -4
View File
@@ -32,7 +32,7 @@ from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parent))
from artifacts import file_lock, write_bytes_atomic, write_if_changed, write_text_atomic
from core.artifacts import file_lock, write_bytes_atomic, write_if_changed, write_text_atomic
import yaml
from common import (
@@ -51,7 +51,7 @@ from common import (
)
from exporter import discover_exporters
from exporter.base_exporter import BaseExporter
from exporter.baseline import (
from resolve.reconcile import (
HASH_FIELDS,
NativeFile,
Report,
@@ -59,9 +59,9 @@ from exporter.baseline import (
_single_size,
build_native_model,
)
from exporter.candidates import removal_candidates
from resolve.categories import removal_candidates
from exporter.doubled import doubled_destinations
from truth import generate_platform_truth
from resolve.truth import generate_platform_truth
DEFAULT_CACHE = ".cache/upstream-native"
# The database generate_truth reads by default.