Xqt created this task.
Xqt added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
**Feature summary**:
pywikibot.textlib needs a wikitext parser. Either `mwparserfromhell` or
`wikitextparser` is supported. But none of them are required via
requitements.txt or setup.py. In result Pywikibot user have to install the
wikitext parser additionally. An ImportWarning is shown if one of these
libraries is missing:
ImportError:
Pywikibot is missing a MediaWiki markup parser which is necessary.
Please update the required module with either
pip install "mwparserfromhell>=0.5.0"
or
pip install "wikitextparser>=0.47.5"
I propose to make `mwparserfromhell` mandatory because it is preinstalled on
Toolforge. In additon `commons_information` and `patrol` scripts needs it.
**Benefits**:
No additional installation is necessary if Pywikibot is installed from Python
Package Index or if requirements.txt is used to install dependencies. If both
`mwparserfromhell` and `wikitextparser` are installed, `wikitextparser` is used.
**See also**:
T326452 <https://phabricator.wikimedia.org/T326452>, T106763
<https://phabricator.wikimedia.org/T106763>
TASK DETAIL
https://phabricator.wikimedia.org/T326498
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Earwig, RPI2026F1, Aklapper, Dalba, Xqt, pywikibot-bugs-list, PotsdamLamb,
Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi,
Tbscho, MayS, Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis,
mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]