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.
This commit is contained in:
Abdessamad Derraz committed 2026-11-18 12:49:20 +01:00
1 parent eea24c68ca
commit 735f86283b
24 files changed
+6016 -5737

No files matched your search

+2 -1
View File
@@ -26,7 +26,8 @@ sys.path.insert(0, os.path.dirname(__file__))
from core import upstream
from core.cli import require_directory, suggest_names
from profile_sync import collect_citations, select_views
from profiling.citations import collect_citations
from profiling.repos import select_views
from model.sourceref import ref_role, split_source_ref
from model.safeparse import yaml_load