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

+3 -2
View File
@@ -153,7 +153,8 @@ class ManifestsServeWhatTheCoreAccepts(unittest.TestCase):
def test_no_served_core_file_fails_its_check_beside_a_passing_variant(self):
import json
from common import load_emulator_profiles, load_platform_config
from model.profiles import load_emulator_profiles
from model.platforms import load_platform_config
from generate_pack import _platform_cores
from resolve.validation import check_file_validation
@@ -228,7 +229,7 @@ class DolphinForksJudgeTheirOwnDspTable(unittest.TestCase):
FREE_V031 = REPO_ROOT / "bios" / "Nintendo" / "GameCube" / "Sys" / "GC" / "dsp_rom.bin"
def test_each_fork_accepts_its_own_free_rom(self):
from common import load_emulator_profiles
from model.profiles import load_emulator_profiles
from resolve.validation import check_file_validation
if not self.FREE_V04.is_file() or not self.FREE_V031.is_file():