Prepare wikiq for release: fixes, dependency cleanup, and packaging #2
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user