Two version tags existed with no record of what was in them. Since neither was ever released, the first entry describes 0.3.0 against what people are actually running rather than against a previous release. The redirect column change leads, because it is the one thing here that will break code someone else has written. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
3.0 KiB
Changelog
0.3.0
Changes relative to what people have been running. Earlier version tags in this repository were internal markers rather than releases, so there is no previous release to compare against.
Incompatible changes
-
Redirect detection is now per revision. The page-level
redirect_targetcolumn has been replaced byrevision_is_redirectandrevision_redirect_target, which classify each revision from its own text. The old column reported a page's redirect status as of the time the dump was exported and applied that single value to every revision in the page's history, which is wrong for any page that was turned into a redirect, or turned back, at some point in its life. Revisions with deleted text report null in both columns rather than false. Wikis using a localized redirect keyword can add it with--redirect-aliases;#REDIRECTis always recognized.Code reading
redirect_targetneeds updating. -
Parquet output has been removed, along with the
--partition-namespacesand--max-revisions-per-fileoptions that only applied to it. Use JSONL, which supports--resume. -
pyspark is no longer a dependency and the
wikiq-sparkentry point is gone. The second pass of that pipeline was never in this repository. -
Python 3.11 or later is required. Python 3.9 reached end of life in October 2025, and the floor unlocks current pyarrow, more-itertools and pandas, along with the CPython 3.11 speedups on the CPU-bound work wikiq does.
-
The project is now called wikiq, rather than mediawiki_dump_tools.
Installation
-
wikiq installs with plain
pipand needs no C++ compiler. Previously every install required pywikidiff2, built from an ssh-only git URL, so anyone outside the collective could not install the tool at all. It is now optional and needed only for--diffand-p wikidiff2. -
-p legacyneeds the newlegacyextra. It was the only user ofmediawiki-utilities, a 2015 package that also pulls in a MySQL client and six other packages. Everyone was paying for that to support one flag. -
Dependencies resolve from PyPI rather than from pinned forks under personal accounts. Requires mwxml >= 0.3.8, which fixes eleven upstream issues; note that mwxml 0.3.7 changed namespace handling to trust the dump's embedded
<ns>tag.
Added
--version, and the version is printed to stderr on every run so it lands in job logs beside the output.- Licensing: wikiq is GPL-3.0-or-later. See
COPYING.
Fixed
- Regex matching (
-RP/-CP) crashed with aTypeErroron revisions whose text or comment was deleted or suppressed. Deleted content now reports null. - Page titles in non-main namespaces were prefixed twice under mwxml
0.3.7 and later, producing titles like
Category:Category:Alaska. - The test suite had 16 failing tests, and
pytest test/silently collected only half of it because the main test file matched neither of pytest's discovery patterns. It is nowtest_wikiq.pyand the suite runs green.