From 9d8dcb1634f59a6ef59e3f4fd90ce1484fc60afe Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Fri, 13 Nov 2026 06:40:13 +0100 Subject: [PATCH] docs: keep the readme badges that say something GitHub cannot name the license of LICENSE, which opens on its scope, and the Python floor is in the install text. The row keeps the PyPI version and the validation status. --- README.md | 4 ++-- scripts/generate_readme.py | 7 +++---- tests/test_doc_surfaces.py | 10 ++++------ 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index b4c8cc541..b1dbd840d 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@

Website · Get the files · A game does not start · Questions

-

PyPI version Python versions Validation License

+

PyPI version Validation

Some consoles need a small program, the **BIOS**, to start their games: PlayStation 1 and 2, Saturn, Neo Geo, Dreamcast and more. RetroBIOS installs the BIOS and firmware files for AmberELEC, Batocera, BizHawk, EmuDeck, EmuELEC, KNULLI, Lakka, MiSTer FPGA, MinUI, MyMinUI, NextUI, ROCKNIX, Recalbox, RetroArch, RetroBat, RetroDECK, RetroPie, and RomM, checked the way each one checks them. @@ -110,4 +110,4 @@ The scripts and tooling are released under the [MIT License](LICENSE). The BIOS and firmware files are not covered by that license: they are third-party system software, preserved and provided for personal backup, archival, and interoperability with emulation software. [NOTICE](NOTICE) sets out their status and how to ask for a file to be removed. The reasoning, and where it is weakest, is in [the project's legal position](https://abdess.github.io/retrobios/wiki/legal/). -*Auto-generated on 2026-11-12T15:50:13Z* +*Auto-generated on 2026-11-13T03:36:46Z* diff --git a/scripts/generate_readme.py b/scripts/generate_readme.py index 20f16688d..8b1a88a99 100644 --- a/scripts/generate_readme.py +++ b/scripts/generate_readme.py @@ -564,15 +564,14 @@ def _catalog_matched_line(db: dict) -> list[str]: ] -# The badge row under the links: (alt text, image, link). +# The badge row under the links: (alt text, image, link). A badge earns its +# place by saying what the page does not: the Python floor is in the install +# text, and GitHub cannot name the license of LICENSE, which opens on its scope. BADGES = ( ("PyPI version", "https://img.shields.io/pypi/v/retrobios", "https://pypi.org/project/retrobios/"), - ("Python versions", "https://img.shields.io/pypi/pyversions/retrobios", - "https://pypi.org/project/retrobios/"), ("Validation", "https://github.com/Abdess/retrobios/actions/workflows/validate.yml/badge.svg?branch=main", "https://github.com/Abdess/retrobios/actions/workflows/validate.yml"), - ("License", "https://img.shields.io/github/license/Abdess/retrobios", "LICENSE"), ) diff --git a/tests/test_doc_surfaces.py b/tests/test_doc_surfaces.py index 4286c03da..4cc026e7e 100644 --- a/tests/test_doc_surfaces.py +++ b/tests/test_doc_surfaces.py @@ -687,20 +687,18 @@ class ArchiveRecipesAreCountedFromTheRecipes(unittest.TestCase): class TheReadmeBadges(unittest.TestCase): - """One row of four badges under the links, each linking its source.""" + """One row of two badges under the links, each linking its source.""" EXPECTED = ( '

' 'PyPI version ' - 'Python versions ' - f'Validation ' - 'License' + f'Validation' "

" ) - def test_exactly_these_four(self) -> None: + def test_exactly_these_two(self) -> None: readme = _read("README.md") - self.assertEqual(len(re.findall(r"Get the files" in line)