From 1b55acb01fe70d94821190b62630f609932e1e33 Mon Sep 17 00:00:00 2001 From: Benjamin Mako Hill Date: Thu, 13 Aug 2026 16:15:14 -0700 Subject: [PATCH] rename the project from mediawiki_dump_tools to wikiq wikiq is what the tool is called, what people type, and what they would search for; mediawiki_dump_tools was only ever the name of the directory it lived in. The repository is being renamed on gitea and github to match, so rename the distribution with it. This also settles the name to claim on PyPI. The metadata lookup that backs --version takes the distribution name as a literal, so it changes here too, along with the install command wikiq prints when -p legacy is used without its extra. Co-Authored-By: Claude Opus 5 --- README.md | 6 +++--- pyproject.toml | 4 ++-- src/wikiq/__init__.py | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 0fc01b3..ed7aaef 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# mediawiki_dump_tools +# wikiq Tools for converting MediaWiki XML database dumps—the "history" dumps that include every revision of every page—into tabular datasets for @@ -12,8 +12,8 @@ optional computed columns. wikiq requires Python 3.11 or later. Install it with pip from a clone of this repository: - git clone https://gitea.communitydata.science/collective/mediawiki_dump_tools.git - cd mediawiki_dump_tools + git clone https://gitea.communitydata.science/collective/wikiq.git + cd wikiq pip install . [uv](https://docs.astral.sh/uv/) works too (`uv sync`) and is convenient diff --git a/pyproject.toml b/pyproject.toml index d56d85a..8f16667 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "mediawiki-dump-tools" +name = "wikiq" version = "0.3.0" description = "Convert MediaWiki XML database dumps into tabular datasets for research" readme = "README.md" @@ -61,7 +61,7 @@ dev = [ [project.urls] Homepage = "https://wiki.communitydata.science/" -Repository = "https://gitea.communitydata.science/collective/mediawiki_dump_tools" +Repository = "https://gitea.communitydata.science/collective/wikiq" [project.scripts] wikiq = "wikiq:main" diff --git a/src/wikiq/__init__.py b/src/wikiq/__init__.py index b4f53b2..27a2735 100755 --- a/src/wikiq/__init__.py +++ b/src/wikiq/__init__.py @@ -49,7 +49,7 @@ from wikiq.resume import get_resume_point try: from importlib.metadata import PackageNotFoundError from importlib.metadata import version as _package_version - __version__ = _package_version("mediawiki-dump-tools") + __version__ = _package_version("wikiq") except PackageNotFoundError: __version__ = "unknown" @@ -99,7 +99,7 @@ def require_mw_persistence(): "-p legacy requires mediawiki-utilities, which wikiq no longer " "installs by default.\n" "Install it with:\n" - " pip install 'mediawiki-dump-tools[legacy]'\n" + " pip install 'wikiq[legacy]'\n" "This method exists to reproduce results from older research " "projects; -p sequence is the current equivalent." )