diff --git a/textproc/py-mwparserfromhell/Makefile b/textproc/py-mwparserfromhell/Makefile index b36bd8431c17..d5a905770428 100644 --- a/textproc/py-mwparserfromhell/Makefile +++ b/textproc/py-mwparserfromhell/Makefile @@ -1,26 +1,24 @@ PORTNAME= mwparserfromhell -DISTVERSION= 0.6.6 -PORTREVISION= 1 +DISTVERSION= 0.7.2 CATEGORIES= textproc python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Parser for MediaWiki wikicode WWW= https://github.com/earwig/mwparserfromhell LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} USES= python -USE_PYTHON= autoplist distutils +USE_PYTHON= autoplist distutils pytest post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/mwparserfromhell/parser/_tokenizer*.so -do-test: - @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test +# tests as of 0.7.2: 2 failed, 2006 passed, 1 skipped in 9.34s .include diff --git a/textproc/py-mwparserfromhell/distinfo b/textproc/py-mwparserfromhell/distinfo index c6225c10d733..0fc2734c27f5 100644 --- a/textproc/py-mwparserfromhell/distinfo +++ b/textproc/py-mwparserfromhell/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1710180110 -SHA256 (mwparserfromhell-0.6.6.tar.gz) = 71afec1e9784ba576e95d6f34845582d3c733a3a52ba770dd8a9c3a40e5b649f -SIZE (mwparserfromhell-0.6.6.tar.gz) = 138899 +TIMESTAMP = 1780639615 +SHA256 (mwparserfromhell-0.7.2.tar.gz) = f4193072e9ea93b9e88f772f60a02125c0602d32890d0bbdcb275ed58c8b3763 +SIZE (mwparserfromhell-0.7.2.tar.gz) = 196317 diff --git a/textproc/py-mwparserfromhell/files/patch-pyproject.toml b/textproc/py-mwparserfromhell/files/patch-pyproject.toml new file mode 100644 index 000000000000..afa93f384fd0 --- /dev/null +++ b/textproc/py-mwparserfromhell/files/patch-pyproject.toml @@ -0,0 +1,11 @@ +--- pyproject.toml.orig 2026-06-05 06:08:23 UTC ++++ pyproject.toml +@@ -5,8 +5,6 @@ authors = [ + authors = [ + {name = "Ben Kurtovic", email = "ben@benkurtovic.com"}, + ] +-license = "MIT" +-license-files = ["LICENSE"] + keywords = [ + "mwparserfromhell", "wikipedia", "wiki", "mediawiki", "wikicode", "wikitext" + ] diff --git a/textproc/py-mwparserfromhell/files/patch-setup.py b/textproc/py-mwparserfromhell/files/patch-setup.py deleted file mode 100644 index c5ca89daaf4f..000000000000 --- a/textproc/py-mwparserfromhell/files/patch-setup.py +++ /dev/null @@ -1,11 +0,0 @@ ---- setup.py.orig 2025-03-16 19:50:17 UTC -+++ setup.py -@@ -82,7 +82,7 @@ setup( - packages=find_packages("src"), - package_dir={"": "src"}, - ext_modules=[tokenizer] if use_extension else [], -- setup_requires=["pytest-runner"] -+ setup_requires=[] - if "test" in sys.argv or "pytest" in sys.argv - else [], - tests_require=["pytest"],