From f4446ab313d441f215f2ec0f97cba0b38a4671ab Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Tue, 10 Nov 2026 11:51:42 +0100 Subject: [PATCH] docs: shorten the no-pack line of the notes --- scripts/release_notes.py | 6 ++---- tests/test_release_packs.py | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/release_notes.py b/scripts/release_notes.py index 933802f2b..c18cc503c 100644 --- a/scripts/release_notes.py +++ b/scripts/release_notes.py @@ -97,16 +97,14 @@ def without_pack(platforms_dir: str) -> list[str]: def no_pack_paragraph(platforms_dir: str) -> list[str]: """One paragraph naming the setups served by the command alone. The packs published are the most downloaded ones (wiki/release-process.md, - "Which platforms get a pack"). The command reads the install manifest, - which the pack builder writes from the same resolution as the pack.""" + "Which platforms get a pack").""" names = without_pack(platforms_dir) if not names: return [] listed = ", ".join(names[:-1]) + f" and {names[-1]}" if len(names) > 1 else names[0] return [ ("Only the most used setups have a pack, to keep the release small." - f" For {listed}, use the command above. It reads the same file list a pack" - " is built from."), + f" For {listed}, use the command above."), "", ] diff --git a/tests/test_release_packs.py b/tests/test_release_packs.py index 563dc83a7..c70712674 100644 --- a/tests/test_release_packs.py +++ b/tests/test_release_packs.py @@ -319,7 +319,7 @@ class TheReleaseNotesNameTheSetupsWithoutAZip(unittest.TestCase): self.assertIn(name, paragraph) for name in ("RetroArch", "Batocera", "RomM"): self.assertNotIn(f" {name},", paragraph) - self.assertIn("use the command above", paragraph) + self.assertTrue(paragraph.endswith("use the command above.")) self.assertLess(text.index("| Platform"), text.index(paragraph)) self.assertLess(text.index(paragraph), text.index("### What changed"))