feat: build the installer as a PyPI package

scripts/build_pypi.py writes a wheel and an sdist from install.py, the
copy install.sh pins, and packaging/pypi. The version is the date of the
release in release.json. validate.yml now runs on packaging/ changes.
This commit is contained in:
Abdessamad Derraz committed 2026-11-09 07:07:54 +01:00
1 parent 47593c58d7
commit 7ba899d467
6 files changed
+487 -2

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
# RetroBIOS
Puts the BIOS files your emulators need in the right folder.
It finds your setup and its BIOS folder, downloads only the missing files and
checks each one. It works with RetroArch, Batocera, EmuDeck, RetroBat,
Recalbox, RetroDECK, RomM and more.
Run it:
```bash
uvx retrobios
```
Or `pipx run retrobios`, or `pip install retrobios` and then `retrobios`.
Python 3.8 or newer.
Add `--check` to see what is missing without changing anything, and `--help`
for every option.
Guides, the list of setups and the files each one needs:
https://abdess.github.io/retrobios/
+37
View File
@@ -0,0 +1,37 @@
# The package PyPI serves as `retrobios`: install.py and the command that
# runs it, nothing else. The root pyproject.toml is the contributors'
# environment. scripts/build_pypi.py writes the wheel and the sdist from this
# file, README.md, LICENSE and install.py, and writes retrobios/__init__.py
# with the version. This file is the one a build from the sdist reads.
[build-system]
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"
[project]
name = "retrobios"
dynamic = ["version"]
description = "Install the BIOS files your emulators need"
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
license-files = ["LICENSE"]
dependencies = []
classifiers = [
"Environment :: Console",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: System :: Emulators",
]
[project.urls]
Homepage = "https://abdess.github.io/retrobios/"
Source = "https://github.com/Abdess/retrobios"
[project.scripts]
retrobios = "retrobios:main"
[tool.setuptools]
packages = ["retrobios"]
[tool.setuptools.dynamic]
version = { attr = "retrobios.__version__" }