git: 02a4293745f5 - main - devel/py-cmdtest: Fix runtime with py-markdown 3.4+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 21 Feb 2024 15:39:03 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=02a4293745f516c73c4c82f57ddd0fecb6eeebf8 commit 02a4293745f516c73c4c82f57ddd0fecb6eeebf8 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-02-21 15:03:28 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-02-21 15:11:28 +0000 devel/py-cmdtest: Fix runtime with py-markdown 3.4+ - Bump PORTREVISION for package change from [1]: In addition, the md_globals parameter of Markdown.extensions.Extension.extendMarkdown() is no longer recognized as a valid parameter and will raise an error if provided. Reference: https://github.com/Python-Markdown/markdown/blob/master/docs/changelog.md [1] --- devel/py-cmdtest/Makefile | 2 +- devel/py-cmdtest/files/patch-markdown | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/devel/py-cmdtest/Makefile b/devel/py-cmdtest/Makefile index 3c8540be40fa..e5689871832e 100644 --- a/devel/py-cmdtest/Makefile +++ b/devel/py-cmdtest/Makefile @@ -1,6 +1,6 @@ PORTNAME= cmdtest PORTVERSION= 0.33.s20191128 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= http://git.liw.fi/cmdtest/snapshot/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/devel/py-cmdtest/files/patch-markdown b/devel/py-cmdtest/files/patch-markdown new file mode 100644 index 000000000000..2d1793fd50ce --- /dev/null +++ b/devel/py-cmdtest/files/patch-markdown @@ -0,0 +1,11 @@ +--- yarnlib/mdparser.py.orig 2019-11-28 08:54:47 UTC ++++ yarnlib/mdparser.py +@@ -55,7 +55,7 @@ class GatherCodeBlocks(Treeprocessor): + + class ParseScenarioTestBlocks(markdown.extensions.Extension): + +- def extendMarkdown(self, md, md_globals): ++ def extendMarkdown(self, md): + self.blocks = [] + self.gatherer = GatherCodeBlocks(self.blocks) + md.treeprocessors.add('gathercode', self.gatherer, '_end')