From 1b3763e58fe00da4085ad5747f248e42338f6131 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Wed, 21 Oct 2026 05:59:51 +0200 Subject: [PATCH] feat: read the voidpoint.io gitlab eduke32 and fury declare https://voidpoint.io/terminx/eduke32 and were skipped as an unsupported host. The instance serves the GitLab v4 API (/api/v4/projects/terminx%2Feduke32 answers 200) and /-/raw/ paths. --- scripts/upstream.py | 6 ++++++ tests/test_upstream.py | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/scripts/upstream.py b/scripts/upstream.py index 50ddd9d3..e5eec95f 100644 --- a/scripts/upstream.py +++ b/scripts/upstream.py @@ -46,6 +46,12 @@ _HOSTS: dict[str, tuple[str, str, str]] = { "https://git.libretro.com/api/v4", "https://git.libretro.com", ), + # EDuke32 and its forks (eduke32, fury) are developed on this GitLab. + "voidpoint.io": ( + "gitlab", + "https://voidpoint.io/api/v4", + "https://voidpoint.io", + ), "codeberg.org": ( "forgejo", "https://codeberg.org/api/v1", diff --git a/tests/test_upstream.py b/tests/test_upstream.py index c88ece29..c4f7302a 100644 --- a/tests/test_upstream.py +++ b/tests/test_upstream.py @@ -66,6 +66,16 @@ class TestParseRepo(unittest.TestCase): "/-/raw/abc123/source/Engine.cpp", ) + def test_voidpoint_is_a_gitlab(self): + """eduke32 and fury were skipped as an unsupported host.""" + repo = parse_repo("https://voidpoint.io/terminx/eduke32") + self.assertEqual(repo.family, "gitlab") + self.assertEqual(repo.api_base, "https://voidpoint.io/api/v4") + self.assertEqual( + raw_url(repo, "abc123", "source/build/src/build.cpp"), + "https://voidpoint.io/terminx/eduke32/-/raw/abc123/source/build/src/build.cpp", + ) + def test_libretro_gitlab_is_a_gitlab(self): repo = parse_repo("https://git.libretro.com/libretro/wqxemu.git") self.assertEqual(repo.family, "gitlab")