refactor: split crossref into its three subjects

FileConsumers, held_copy and entry_target move to packs/consumers.py, the
data/ and bios/ ZIP index to packs/supplemental.py, the launcher-name report
to packs/crossreflaunchers.py and the set-aside labels with
profile_breakdown to packs/crossreftext.py. The site no longer imports the
gap engine to learn who reads a file.
This commit is contained in:
Abdessamad Derraz committed 2026-11-23 21:02:44 +01:00
1 parent cdbde88017
commit 3344cfd2fb
35 files changed
+806 -768

No files matched your search

+2 -2
View File
@@ -341,7 +341,7 @@ class TheGapHeadingAddsUp(unittest.TestCase):
16 entries were set aside without a word."""
def test_every_entry_is_counted_once(self):
from packs import crossref
from packs import crossref, crossreftext
files = [
{"name": "kick.rom", "required": True},
@@ -358,7 +358,7 @@ class TheGapHeadingAddsUp(unittest.TestCase):
all_declared={"kick.rom": [(None, "kick.rom")]})
data = report["emu"]
self.assertEqual(
crossref.profile_breakdown(data),
crossreftext.profile_breakdown(data),
"1 declared by platforms, 3 undeclared, 1 unsourceable, "
"2 set aside (1 other versions of a slot, 1 outside the pack)",
)