Page MenuHomePhabricator

Mandatory dependency on mwparserfromhell
Closed, ResolvedPublic

Description

mwparserfromhell includes a tokenizer of wikitext, with a cython version for efficiency.
A mandatory dependency will allow extract_templates_and_params_regex and _ETP_REGEX to be removed, and will mean the result from extract_templates_and_params will be consistent on all platforms.

There was a mandatory dependency on mwparserfromhell for unix, however it was made completely optional in T78378: Depend on mwparserfromhell consistently across operating systems due to v0.4 (2015-05-24) failing to install on Python 3.5 as was discussed at T68010#1306226. I believe this is still not fixed.

We hope to re-enable Python 3.5 builds soon in T106224: Python 3.5/3.6 compatibility, but they might be allowed-failures.

Related Objects

Event Timeline

jayvdb raised the priority of this task from to High.
jayvdb updated the task description. (Show Details)
jayvdb added a project: Pywikibot.
jayvdb added subscribers: jayvdb, Ricordisamoa, Earwig, Xqt.

Sorry, I forgot I had an unreleased fix for the Python 3.5 issue that you've been waiting on. I'm back to working on the parser after a little break so it should come soon.

Okay! I released mwparserfromhell 0.4.1 (and 0.4.2, because I made a mistake...) just an hour ago, which fixes the Python 3.5 issue. I also have Windows binary releases working properly thanks to Appveyor.

Thanks @Earwig !
mwpfh 0.4.2 is passing our tests on 2.6-3.4. We'll need to do a manual check against Python 3.5/3.6, as our automated tests are not running on Python 3.5/3.6 yet due to what we think is a bug in Python (T106212), but as your Python 3.5-dev tests are passing (https://travis-ci.org/earwig/mwparserfromhell/builds/73326035), ours should also pass.

We can now seriously consider enabling mwparserfromhell as a mandatory dependency for Win32 users.

Xqt lowered the priority of this task from High to Lowest.Feb 5 2018, 4:09 AM

Change 675170 had a related patch set uploaded (by Xqt; author: Xqt):
[pywikibot/core@master] [mwpfh] Make mwparserfromhell mandatory

https://gerrit.wikimedia.org/r/675170

Change 675170 merged by jenkins-bot:

[pywikibot/core@master] [parser] Make mwparserfromhell or wikitextparser mandatory

https://gerrit.wikimedia.org/r/675170

JJMC89 assigned this task to Xqt.
JJMC89 raised the priority of this task from Lowest to Medium.

Change 680294 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [parser] Deprecate textlib usage without MediaWiki markup parser

https://gerrit.wikimedia.org/r/680294

Change 680294 merged by jenkins-bot:

[pywikibot/core@master] [parser] Deprecate textlib usage without MediaWiki markup parser

https://gerrit.wikimedia.org/r/680294

Change 680301 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [parser] Make mwparserfromhell or wikitextparser mandatory

https://gerrit.wikimedia.org/r/680301

Change 680301 merged by jenkins-bot:

[pywikibot/core@master] [parser] Make mwparserfromhell or wikitextparser mandatory

https://gerrit.wikimedia.org/r/680301