Drop the [tool.uv.sources] pins of deltas, mwxml, and yamlconf to forks under a personal github account: - The deltas fork was byte-identical to upstream. - The mwxml fork carried one patch to mwxml.map(), which wikiq does not call, and was missing eleven upstream commits of fixes. Require mwxml >= 0.3.8 for those fixes; note that 0.3.7 changed namespace handling to trust the dump's embedded <ns> tag rather than overriding it based on the title prefix. - The yamlconf fork loosened an old pyyaml pin in requirements.txt. yamlconf is not imported by wikiq and is only needed transitively by deltas, so drop the direct dependency; the PyPI release installs fine, though its pyyaml pin is old (worth fixing upstream). With pywikidiff2 already declared as a PEP 508 direct https reference, no uv-specific configuration remains and the package installs with pip. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
43 lines
927 B
TOML
43 lines
927 B
TOML
[project]
|
|
name = "mediawiki-dump-tools"
|
|
version = "0.1.1"
|
|
description = "Add your description here"
|
|
readme = "README.md"
|
|
requires-python = ">=3.9"
|
|
dependencies = [
|
|
"deltas>=0.7.0",
|
|
"mediawiki-utilities>=0.4.18",
|
|
"more-itertools>=10.7.0",
|
|
"mwparserfromhell>=0.6.0",
|
|
"mwpersistence>=0.2.4",
|
|
"mwreverts>=0.1.5",
|
|
"mwtypes>=0.4.0",
|
|
"mwxml>=0.3.8",
|
|
"pyarrow>=20.0.0",
|
|
"pywikidiff2 @ git+https://gitea.communitydata.science/groceryheist/pywikidiff2.git",
|
|
"sortedcontainers>=2.4.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
wikiq = "wikiq:main"
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/wikiq"]
|
|
|
|
[tool.hatch.metadata]
|
|
allow-direct-references = true
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"ipython>=8.18.1",
|
|
"memray>=1.17.2",
|
|
"pandas>=2.1.0",
|
|
"pytest>=8.4.1",
|
|
"pytest-asyncio>=1.0.0",
|
|
"pytest-benchmark>=5.1.0",
|
|
]
|