refactor: split common.py into three packages

core: cli (run_cli, input errors, name hints), github (token), paths.
model: sources, database, composition, registry, platforms,
declarations, targets, systems, profiles, cliargs. resolve: content,
ownership, datadirs, archives, localfile, directories, layout,
contentlayout, standalone, grouping, cores.

Definitions move verbatim; common.py and its re-exports are gone and
every importer, patch target and code-in-string names the new home. A
test that stubbed common.load_platform_config stubs each module that
reads the loader by its own name.
This commit is contained in:
Abdessamad Derraz committed 2026-11-18 11:09:13 +01:00
1 parent c784aef883
commit 83cfa6fd0f
281 files changed
+7036 -6794

No files matched your search

+23 -1
View File
@@ -14,10 +14,11 @@ on:
- "scripts/archive_build.py"
- "scripts/auto_fetch.py"
- "scripts/build_port.py"
- "scripts/common.py"
- "scripts/core/artifacts.py"
- "scripts/core/cli.py"
- "scripts/core/crypto_verify.py"
- "scripts/core/deterministic_zip.py"
- "scripts/core/github.py"
- "scripts/core/hashing.py"
- "scripts/core/paths.py"
- "scripts/core/romdir.py"
@@ -34,9 +35,19 @@ on:
- "scripts/manifestselect.py"
- "scripts/measurement_records.py"
- "scripts/model/alternatives.py"
- "scripts/model/cliargs.py"
- "scripts/model/composition.py"
- "scripts/model/database.py"
- "scripts/model/declarations.py"
- "scripts/model/dumpcatalog.py"
- "scripts/model/largefiles.py"
- "scripts/model/platforms.py"
- "scripts/model/profiles.py"
- "scripts/model/registry.py"
- "scripts/model/safeparse.py"
- "scripts/model/sources.py"
- "scripts/model/systems.py"
- "scripts/model/targets.py"
- "scripts/packextras.py"
- "scripts/packpaths.py"
- "scripts/packreadme.py"
@@ -48,12 +59,23 @@ on:
- "scripts/region.py"
- "scripts/release_record.py"
- "scripts/resolve/__init__.py"
- "scripts/resolve/archives.py"
- "scripts/resolve/categories.py"
- "scripts/resolve/content.py"
- "scripts/resolve/contentlayout.py"
- "scripts/resolve/cores.py"
- "scripts/resolve/datadirs.py"
- "scripts/resolve/directories.py"
- "scripts/resolve/gamedata.py"
- "scripts/resolve/grouping.py"
- "scripts/resolve/launchers.py"
- "scripts/resolve/layout.py"
- "scripts/resolve/localfile.py"
- "scripts/resolve/nativemode.py"
- "scripts/resolve/ownership.py"
- "scripts/resolve/reconcile.py"
- "scripts/resolve/slot.py"
- "scripts/resolve/standalone.py"
- "scripts/resolve/truth.py"
- "scripts/resolve/validation.py"
- "scripts/restore_large_files.py"