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

+3 -3
View File
@@ -15,8 +15,8 @@ import urllib.error
import urllib.request
from pathlib import Path
import upstream
from upstream import make_repo, parse_repo, raw_url
from core import upstream
from core.upstream import make_repo, parse_repo, raw_url
def _no_network(url: str):
@@ -127,7 +127,7 @@ class TestRawUrl(unittest.TestCase):
def test_forgejo_fetches_through_the_api(self):
# git.ngram.ca serves an HTML proof-of-work page on /raw/commit,
# which fetch_file would have cached as the file's lines.
import upstream
from core import upstream
repo = parse_repo("https://git.ngram.ca/mirrors/Ryujinx")
self.assertEqual(