Commit Graph
7 Commits
Author SHA1 Message Date
Abdessamad Derraz 0b532366d0 refactor: move pack library code into packs/ 2026-11-18 13:47:31 +01:00
Abdessamad Derraz 18e91f8c07 refactor: read the repo root from core.paths 2026-11-18 13:46:15 +01:00
Abdessamad Derraz a5834a4b8a refactor: move the export library into exporter 2026-11-18 13:38:44 +01:00
Abdessamad Derraz 8738179f42 refactor: move the region audit library down 2026-11-18 13:38:44 +01:00
Abdessamad Derraz 735f86283b refactor: split profile_sync into profiling
profile_sync.py keeps the command line: the parser, the flag checks,
profile selection against the branch, main, and the two steps that
read top-level modules (project_base, the site's source paths). The
library goes to one module per concern under scripts/profiling.

Tests that patched a name now patch the module their caller reads
it from. test_layers declares profiling with no sibling imports.
2026-11-18 12:49:20 +01:00
Abdessamad Derraz e1f2f8685d refactor: move upstream, sourceref, version_basis
upstream reads forges with the standard library alone and scrapers,
packs and the site read it: it goes to core. sourceref is the grammar
of a profile field, which the site parses without the comparison
tool: it goes to model. version_basis is read by profile_sync alone
and opens the profiling package.
2026-11-18 12:39:09 +01:00
Abdessamad Derraz ba94437558 feat: hold the import layers of scripts/
core (0) imports the standard library only, model (1) loads data,
resolve (2) turns declarations into files, the domain packages (3)
build on them and the top-level scripts are the commands (4). The test
refuses an import into a higher layer, a cycle between packages or
inside core, model and resolve, and a package module importing a
top-level module. NOT_YET_PACKAGED and PENDING_TOP_LEVEL_IMPORTS list
what later waves move, exactly, so an emptied entry has to leave.
2026-11-18 11:40:15 +01:00