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
|
Tools for converting MediaWiki XML database dumps—the "history" dumps
|
||||||
that include every revision of every page—into tabular datasets for
|
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
|
wikiq requires Python 3.11 or later. Install it with pip from a clone of
|
||||||
this repository:
|
this repository:
|
||||||
|
|
||||||
git clone https://gitea.communitydata.science/collective/mediawiki_dump_tools.git
|
git clone https://gitea.communitydata.science/collective/wikiq.git
|
||||||
cd mediawiki_dump_tools
|
cd wikiq
|
||||||
pip install .
|
pip install .
|
||||||
|
|
||||||
[uv](https://docs.astral.sh/uv/) works too (`uv sync`) and is convenient
|
[uv](https://docs.astral.sh/uv/) works too (`uv sync`) and is convenient
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "mediawiki-dump-tools"
|
name = "wikiq"
|
||||||
version = "0.3.0"
|
version = "0.3.0"
|
||||||
description = "Convert MediaWiki XML database dumps into tabular datasets for research"
|
description = "Convert MediaWiki XML database dumps into tabular datasets for research"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
@@ -61,7 +61,7 @@ dev = [
|
|||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Homepage = "https://wiki.communitydata.science/"
|
Homepage = "https://wiki.communitydata.science/"
|
||||||
Repository = "https://gitea.communitydata.science/collective/mediawiki_dump_tools"
|
Repository = "https://gitea.communitydata.science/collective/wikiq"
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
wikiq = "wikiq:main"
|
wikiq = "wikiq:main"
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ from wikiq.resume import get_resume_point
|
|||||||
try:
|
try:
|
||||||
from importlib.metadata import PackageNotFoundError
|
from importlib.metadata import PackageNotFoundError
|
||||||
from importlib.metadata import version as _package_version
|
from importlib.metadata import version as _package_version
|
||||||
__version__ = _package_version("mediawiki-dump-tools")
|
__version__ = _package_version("wikiq")
|
||||||
except PackageNotFoundError:
|
except PackageNotFoundError:
|
||||||
__version__ = "unknown"
|
__version__ = "unknown"
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ def require_mw_persistence():
|
|||||||
"-p legacy requires mediawiki-utilities, which wikiq no longer "
|
"-p legacy requires mediawiki-utilities, which wikiq no longer "
|
||||||
"installs by default.\n"
|
"installs by default.\n"
|
||||||
"Install it with:\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 "
|
"This method exists to reproduce results from older research "
|
||||||
"projects; -p sequence is the current equivalent."
|
"projects; -p sequence is the current equivalent."
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user