refactor: release, installer_build, devtools pkgs

The release tools, the installer build tools and the repository's
commit and PR checks keep their commands and move their code into
three packages. The release record readers move to model.releaserecord,
romfolders to model, the buildbot check to scraper. The site reads the
handheld launchers and the bootstrap pin from installer_build.
This commit is contained in:
Abdessamad Derraz committed 2026-11-18 20:44:12 +01:00
1 parent 5b3b3f19e8
commit c4fdf12874
91 files changed
+3508 -3277

No files matched your search

+8 -6
View File
@@ -39,7 +39,9 @@ from packs import platformpack
from sitegen import readme as sitegen_readme
from sitegen import home
import release_notes
import release_record
from release import notes
from release import record as release_record
from model import releaserecord
from packs import parts
HAS_JSONSCHEMA = jsonschema is not None
@@ -483,9 +485,9 @@ class ReleaseRecord(unittest.TestCase):
record["packs"]["Whole_1.0_BIOS_Pack.zip"], files=99, platforms=["other"]
)
self.assertEqual(
release_record.pack_name_for("whole", record), "Whole_1.0_BIOS_Pack.zip"
releaserecord.pack_name_for("whole", record), "Whole_1.0_BIOS_Pack.zip"
)
self.assertEqual(release_record.pack_for("whole", record)["files"], 2)
self.assertEqual(releaserecord.pack_for("whole", record)["files"], 2)
def test_the_owners_are_the_full_pack_names_the_builder_writes(self):
owners = release_record.release_owners(str(REPO_ROOT / "platforms"))
@@ -589,7 +591,7 @@ class TheReleaseNotesReadTheRecord(unittest.TestCase):
}}
def render(self, record=None):
return release_notes.render(record or self.RECORD, str(REPO_ROOT / "platforms"),
return notes.render(record or self.RECORD, str(REPO_ROOT / "platforms"),
"### What changed\n\n- x\n")
def test_each_pack_row_carries_the_record(self):
@@ -620,11 +622,11 @@ class TheReleaseNotesReadTheRecord(unittest.TestCase):
text = self.render().split("### What changed")[0]
self.assertNotIn("every file its emulators", text)
self.assertIn("https://abdess.github.io/retrobios/gaps/", text)
self.assertEqual(release_notes.refused_words(text), [])
self.assertEqual(notes.refused_words(text), [])
def test_a_judging_whats_new_is_refused(self):
self.assertEqual(
release_notes.refused_words(
notes.refused_words(
"- Every hash comes from the emulator's source, never from a forum list.\n"
"- So a game never stops on a missing file."),
["forum", "never stops"])