refactor: group scraper modules by subject

scraper/ held the platform scrapers next to three other subjects. The
launcher readers move to scraper/launchers/ (their _launchers suffix
dropped), the MAME and FBNeo hash scrapers and romset importers to
scraper/arcade/, the DAT readers and dump catalog importers to
scraper/dats/. The buildbot check is a freshness check and moves to
freshness/buildbot.py. Every -m command, workflow job, schema
description and page follows.

The scraper discovery in scraper/__init__.py had no caller: the
registry's scraper: field names the module, and the pages now say so.
This commit is contained in:
Abdessamad Derraz committed 2026-11-24 10:22:26 +01:00
1 parent 4e01cff854
commit e1bad01b82
130 files changed
+445 -414

No files matched your search

+3 -3
View File
@@ -8,7 +8,7 @@ import os
import tempfile
import unittest
from scripts.scraper.mame_parser import (
from scripts.scraper.arcade.mame_parser import (
find_bios_root_sets,
parse_mame_source_tree,
parse_rom_block,
@@ -407,7 +407,7 @@ class TestCSourceLexer(unittest.TestCase):
"""One reader of C comments and macro calls for every driver scraper."""
def test_a_char_literal_quote_opens_no_string(self) -> None:
from scripts.scraper.clex import blank_comments
from scripts.scraper.arcade.clex import blank_comments
text = "c = '\"'; /* ROM_START( fake ) */\nx"
self.assertNotIn("ROM_START", blank_comments(text))
@@ -415,7 +415,7 @@ class TestCSourceLexer(unittest.TestCase):
self.assertEqual(blank_comments("a/*x\ny*/b", keep_lines=False), "a b")
def test_an_escaped_quote_does_not_end_the_call(self) -> None:
from scripts.scraper.clex import call_span
from scripts.scraper.arcade.clex import call_span
text = 'GAME(1990, foo, "a\\"b)", 0) tail'
self.assertEqual(call_span(text, 5), (["1990", "foo", '"a\\"b)"', "0"], 27))