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.
This commit is contained in:
Abdessamad Derraz committed 2026-11-18 12:39:09 +01:00
1 parent 8cdda10393
commit e1f2f8685d
29 files changed
+51 -49

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ from model.profiles import source_yaml_paths
from core.artifacts import write_text_atomic
from model.safeparse import yaml_load
import upstream
from core import upstream
from ._hash_merge import (
_build_contents,
+1 -1
View File
@@ -23,7 +23,7 @@ from pathlib import Path
if (_SCRIPTS_DIR := str(Path(__file__).resolve().parents[2])) not in sys.path:
sys.path.insert(0, _SCRIPTS_DIR)
import upstream
from core import upstream
from model.safeparse import yaml_load
CACHE_DIR = upstream.CACHE_DIR
+1 -1
View File
@@ -14,7 +14,7 @@ from pathlib import Path
import yaml
from . import Fetcher, SourceError, load_sources, scrape_setup
from upstream import UpstreamError
from core.upstream import UpstreamError
from core.artifacts import write_text_atomic
from ..base_scraper import _PlatformDumper