From 1f8e1069744b7d2403d3b7fa4d96481c62395c6f Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Wed, 18 Nov 2026 13:17:34 +0100 Subject: [PATCH] docs: name the packs modules --- .github/workflows/deploy-site.yml | 31 ++++++++++++++++--------------- CONTRIBUTING.md | 2 +- scripts/generate_readme.py | 2 +- wiki/adding-a-platform.md | 2 +- wiki/advanced-usage.md | 2 +- wiki/architecture.md | 2 +- wiki/tools.md | 1 + 7 files changed, 22 insertions(+), 20 deletions(-) diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml index 9f8588d89..ee25f651a 100644 --- a/.github/workflows/deploy-site.yml +++ b/.github/workflows/deploy-site.yml @@ -12,7 +12,6 @@ on: # Every script the build runs or imports, and no other # (tests/test_workflow_paths.py). - "scripts/archive_build.py" - - "scripts/auto_fetch.py" - "scripts/build_port.py" - "scripts/core/__init__.py" - "scripts/core/artifacts.py" @@ -27,15 +26,11 @@ on: - "scripts/core/torrentzip.py" - "scripts/core/upstream.py" - "scripts/core/ziptools.py" - - "scripts/cross_reference.py" - - "scripts/dedup.py" - "scripts/derivations.py" - "scripts/generate_event_schema.py" - - "scripts/generate_pack.py" - "scripts/generate_readme.py" - "scripts/generate_site.py" - "scripts/indexnow.py" - - "scripts/manifestselect.py" - "scripts/measurement_records.py" - "scripts/model/__init__.py" - "scripts/model/alternatives.py" @@ -45,6 +40,7 @@ on: - "scripts/model/declarations.py" - "scripts/model/dumpcatalog.py" - "scripts/model/largefiles.py" + - "scripts/model/nodedup.py" - "scripts/model/platforms.py" - "scripts/model/profiles.py" - "scripts/model/region.py" @@ -55,11 +51,18 @@ on: - "scripts/model/sources.py" - "scripts/model/systems.py" - "scripts/model/targets.py" - - "scripts/packextras.py" - - "scripts/packpaths.py" - - "scripts/packreadme.py" - - "scripts/packresolve.py" - - "scripts/packverify.py" + - "scripts/packs/__init__.py" + - "scripts/packs/archive.py" + - "scripts/packs/coverage.py" + - "scripts/packs/crossref.py" + - "scripts/packs/datadirs.py" + - "scripts/packs/extras.py" + - "scripts/packs/gaps.py" + - "scripts/packs/naming.py" + - "scripts/packs/parts.py" + - "scripts/packs/paths.py" + - "scripts/packs/slots.py" + - "scripts/packs/verdicts.py" - "scripts/pr_checks.py" - "scripts/provenance_report.py" - "scripts/refresh_data_dirs.py" @@ -67,6 +70,7 @@ on: - "scripts/resolve/__init__.py" - "scripts/resolve/archives.py" - "scripts/resolve/categories.py" + - "scripts/resolve/collisions.py" - "scripts/resolve/content.py" - "scripts/resolve/contentlayout.py" - "scripts/resolve/cores.py" @@ -80,9 +84,10 @@ on: - "scripts/resolve/localfile.py" - "scripts/resolve/nativemode.py" - "scripts/resolve/ownership.py" + - "scripts/resolve/packfiles.py" - "scripts/resolve/reconcile.py" - "scripts/resolve/regions.py" - - "scripts/resolve/slot.py" + - "scripts/resolve/review.py" - "scripts/resolve/standalone.py" - "scripts/resolve/truth.py" - "scripts/resolve/validation.py" @@ -106,12 +111,8 @@ on: - "scripts/sitesteps.py" - "scripts/sitewanted.py" - "scripts/sitewrite.py" - - "scripts/slots.py" - - "scripts/split_pack.py" - - "scripts/validate_pr.py" - "scripts/validate_schemas.py" - "scripts/validate_site.py" - - "scripts/verify.py" - "schemas/**" - "docs_assets/**" - "install/**" diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7ec8cf5a8..1d5bb909b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -72,7 +72,7 @@ lists what else a change rewrites. - A file too large for git goes to the `large-files` GitHub release and its path into `.gitignore`, the list that decides what is served from the release - Trees addressed by path are kept out of deduplication (`NODEDUP_DIRS` in - `scripts/dedup.py`) + `scripts/model/nodedup.py`) - Two paths differing only by case break clones on Windows and macOS, and `tests/test_no_case_collisions.py` enforces this diff --git a/scripts/generate_readme.py b/scripts/generate_readme.py index bd313926d..4715d897b 100644 --- a/scripts/generate_readme.py +++ b/scripts/generate_readme.py @@ -919,7 +919,7 @@ lists what else a change rewrites. - A file too large for git goes to the `large-files` GitHub release and its path into `.gitignore`, the list that decides what is served from the release - Trees addressed by path are kept out of deduplication (`NODEDUP_DIRS` in - `scripts/dedup.py`) + `scripts/model/nodedup.py`) - Two paths differing only by case break clones on Windows and macOS, and `tests/test_no_case_collisions.py` enforces this diff --git a/wiki/adding-a-platform.md b/wiki/adding-a-platform.md index 6a241daa2..de3fb7bac 100644 --- a/wiki/adding-a-platform.md +++ b/wiki/adding-a-platform.md @@ -384,7 +384,7 @@ describes. `firmware_folder_flat: true` is set where the frontend reads a system's firmware folder without descending into it (RomM 5.4.1, `backend/handler/filesystem/base_handler.py:1002`, `recursive=False`). On such a platform, a core file whose destination has a -subfolder is left out of the pack (`nested` in `scripts/packextras.py`), since no +subfolder is left out of the pack (`nested` in `scripts/packs/extras.py`), since no core would receive it. ### Platform YAML header diff --git a/wiki/advanced-usage.md b/wiki/advanced-usage.md index 8b54dd794..9416e7bca 100644 --- a/wiki/advanced-usage.md +++ b/wiki/advanced-usage.md @@ -232,7 +232,7 @@ complete. Every dimension that removes files appears in the output filename and in the pack README, because the five places that name an artefact (the pack, the `--split` parts, the `_Split` directory, the grouped-alias rename and the -manifest) all build from one list (`_narrowings` in `generate_pack.py`). A pack narrowed three ways is called +manifest) all build from one list (`_narrowings` in `scripts/packs/naming.py`). A pack narrowed three ways is called `Recalbox_10.1.1_NorthAmerica_OnePerSlot_Required_BIOS_Pack.zip` and opens with a `PACK TYPE: Narrowed` block listing the three. Adding a new way to narrow a pack means adding it to that list, so it cannot reach users nameless or diff --git a/wiki/architecture.md b/wiki/architecture.md index c2d83b993..41f5b628f 100644 --- a/wiki/architecture.md +++ b/wiki/architecture.md @@ -316,7 +316,7 @@ How files enter `bios/`, and why. - **One content, one file.** A byte-identical copy under another name is removed, and the name it carried becomes a profile alias. Trees addressed by path keep their equal files, since equality is part of their layout: those - folders are `NODEDUP_DIRS` in `scripts/dedup.py`. + folders are `NODEDUP_DIRS` in `scripts/model/nodedup.py`. - **Archives the project builds are TorrentZip.** `build_torrentzip()` makes an archive's bytes depend on its contents alone, so anyone can rebuild it. An upstream romset whose MD5 a platform pins stays verbatim in `.variants/`. diff --git a/wiki/tools.md b/wiki/tools.md index 861e7a088..ac9bc6b35 100644 --- a/wiki/tools.md +++ b/wiki/tools.md @@ -1358,6 +1358,7 @@ before a release (wiki/release-process.md). Its lines stay in | `core/` | Standard library only: hashing, ZIP reading and TorrentZip, atomic writes and output locks, `run_cli` and the input errors it prints on one line, the GitHub token, the repository root, forge access (`upstream.py`) | | `model/` | Data loading: `database.json`, platform configs and the registry, emulator profiles, hardware targets, system ids, the region vocabulary, dump catalogues, release assets, the `source_ref` grammar (`sourceref.py`) | | `resolve/` | From a declaration to a file: content checks, `resolve_local_file` and its stages, archive members, launcher layouts, the cores a platform runs, validation, slots, truth | +| `packs/` | The library behind `verify.py`, `generate_pack.py`, `cross_reference.py`, `slots.py` and `refresh_data_dirs.py`: per-file verdicts, coverage and gaps, core extras, slot arbitration, pack naming and archives, manifests, the pack check, the data directory cache | | `profiling/` | What `profile_sync.py` runs: citations, anchoring, the report and its forms, version checks, detection, triage, and the guarded writes (recale, bump, prose realignment, `version_basis`) | | `retired_files.py` | The record of files that left the collection, `retired.json`, which `generate_db.py` appends to and the site's lookup reads. `--backfill` rebuilds it from the history of `database.json` since content addresses were published (`--output` names another file) | | `dedup.py` | Deduplicate `bios/` (`--dry-run`, `--bios-dir`): byte-identical copies are deleted and one kept. Identical MAME sets under other names stay one file, named in `_mame_clones.json`. Trees addressed by path are left alone (`NODEDUP_DIRS`), under a folder of that name at any depth: BBK, Bungie, C-Dogs SDL, Ikemen GO, mame, PinMAME, RPG Maker, ScummVM, Softdisk, TheXTech, splitwolf, Theme Hospital, c64-emu, opentyrian, tzdata |