From 3ab988d6ebc755ee6a92e897f29178a74af2eae6 Mon Sep 17 00:00:00 2001 From: Benjamin Mako Hill Date: Thu, 6 Aug 2026 16:00:44 -0700 Subject: [PATCH] declare pywikidiff2 as a PEP 508 direct reference over https Move pywikidiff2 from a [tool.uv.sources] entry to a direct git URL in the dependency list, and switch it from ssh to anonymous https. The ssh URL required an account on the gitea instance just to install the package. A PEP 508 direct reference is understood by pip and every other standards-compliant installer, not just uv, so this is a step toward making uv an optional convenience rather than a requirement for working with this repository. Hatchling rejects direct references by default because they are not allowed in packages published to PyPI (this one is not); set tool.hatch.metadata.allow-direct-references to permit them. Co-Authored-By: Claude Fable 5 --- pyproject.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index bc3e709..a2848ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ dependencies = [ "mwtypes>=0.4.0", "mwxml>=0.3.6", "pyarrow>=20.0.0", - "pywikidiff2", + "pywikidiff2 @ git+https://gitea.communitydata.science/groceryheist/pywikidiff2.git", "sortedcontainers>=2.4.0", "yamlconf>=0.2.6", ] @@ -29,12 +29,14 @@ build-backend = "hatchling.build" [tool.hatch.build.targets.wheel] packages = ["src/wikiq"] +[tool.hatch.metadata] +allow-direct-references = true + [tool.uv.sources] yamlconf = { git = "https://github.com/groceryheist/yamlconf" } mwxml = { git = "https://github.com/groceryheist/python-mwxml" } deltas = { git = "https://github.com/groceryheist/deltas" } -pywikidiff2 = { git = "ssh://gitea@gitea.communitydata.science:2200/groceryheist/pywikidiff2.git"} [dependency-groups] dev = [