From 112519409386a7286427c7e38f59a559f90a3bed Mon Sep 17 00:00:00 2001 From: Benjamin Mako Hill Date: Thu, 13 Aug 2026 13:24:44 -0700 Subject: [PATCH] add the project metadata a published package needs The package declared no authors, no URLs, no classifiers and no keywords, so a PyPI page for it would be blank and it would not turn up in a search. Fill those in. Contributors are listed by name only. They are the same people the README credits, so this discloses nothing new, and publishing other people's email addresses to PyPI is not ours to decide. Also mirror the dev dependencies into [project.optional-dependencies]. [dependency-groups] is PEP 735, which only uv reads, so there was no way for a pip user to install what the tests need; `pip install -e '.[dev]'` now works. The two lists have to be kept in step by hand. Co-Authored-By: Claude Opus 5 (cherry picked from commit 7b3c0f9a80e39990df90124a7c592a80d93e0d91) --- pyproject.toml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 6fa3795..f3cbfac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,6 +6,27 @@ readme = "README.md" license = "GPL-3.0-or-later" license-files = ["COPYING"] requires-python = ">=3.11" +authors = [ + { name = "Benjamin Mako Hill" }, + { name = "Nathan TeBlunthuis" }, + { name = "Will Beason" }, + { name = "Sohyeon Hwang" }, + { name = "Kaylea Champion" }, +] +keywords = ["mediawiki", "wikipedia", "wiki", "dump", "xml", "revision", "research"] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: Console", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", + "Operating System :: POSIX", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Topic :: Scientific/Engineering :: Information Analysis", + "Topic :: Text Processing :: Markup", +] dependencies = [ "deltas>=0.7.0", "more-itertools>=10.7.0", @@ -29,6 +50,19 @@ legacy = ["mediawiki-utilities>=0.4.18"] # PyPI, so an extra naming it could not resolve. Until it is, wikiq reports the # git install command when --diff or -p wikidiff2 is used without it. +# Duplicated from [dependency-groups] below, which is PEP 735 and so is visible +# only to uv. This is what makes `pip install -e '.[dev]'` work. +dev = [ + "pandas>=2.1.0", + "pytest>=8.4.1", + "pytest-asyncio>=1.0.0", + "pytest-benchmark>=5.1.0", +] + +[project.urls] +Homepage = "https://wiki.communitydata.science/" +Repository = "https://gitea.communitydata.science/collective/mediawiki_dump_tools" + [project.scripts] wikiq = "wikiq:main"