diff --git a/textproc/py-pymdown-extensions/Makefile b/textproc/py-pymdown-extensions/Makefile index 18398944be4d..d36c0399d9ea 100644 --- a/textproc/py-pymdown-extensions/Makefile +++ b/textproc/py-pymdown-extensions/Makefile @@ -1,26 +1,29 @@ PORTNAME= pymdown-extensions -DISTVERSION= 9.4 +DISTVERSION= 9.5 CATEGORIES= textproc python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= pymdown_extensions-${DISTVERSION} MAINTAINER= kai@FreeBSD.org COMMENT= Extension pack for Python Markdown WWW= https://github.com/facelessuser/pymdown-extensions LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.md RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}markdown>=3.2:textproc/py-markdown@${PY_FLAVOR} USES= python:3.7+ USE_PYTHON= autoplist distutils NO_ARCH= yes # Avoid that pyproject.toml is read during setup otherwise build fails post-extract: @${MV} ${WRKSRC}/pyproject.toml ${WRKSRC}/pyproject.toml.dist +post-patch: + @${REINPLACE_CMD} -e 's/%%DISTVERSION%%/${DISTVERSION}/' ${WRKSRC}/setup.py + .include diff --git a/textproc/py-pymdown-extensions/distinfo b/textproc/py-pymdown-extensions/distinfo index a81e1f4ba320..33a6f4969cbe 100644 --- a/textproc/py-pymdown-extensions/distinfo +++ b/textproc/py-pymdown-extensions/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1668854734 -SHA256 (pymdown_extensions-9.4.tar.gz) = 1baa22a60550f731630474cad28feb0405c8101f1a7ddc3ec0ed86ee510bcc43 -SIZE (pymdown_extensions-9.4.tar.gz) = 741111 +TIMESTAMP = 1669552457 +SHA256 (pymdown_extensions-9.5.tar.gz) = 3ef2d998c0d5fa7eb09291926d90d69391283561cf6306f85cd588a5eb5befa0 +SIZE (pymdown_extensions-9.5.tar.gz) = 738533 diff --git a/textproc/py-pymdown-extensions/files/patch-setup.py b/textproc/py-pymdown-extensions/files/patch-setup.py index 20eabc148567..e9091bddbf99 100644 --- a/textproc/py-pymdown-extensions/files/patch-setup.py +++ b/textproc/py-pymdown-extensions/files/patch-setup.py @@ -1,42 +1,42 @@ Generated via adding [tool.hatch.build.targets.sdist] support-legacy = true to setup.py and then run "hatchling build". --- setup.py.orig 2022-11-19 11:48:49 UTC +++ setup.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +from setuptools import setup + +setup( + name='pymdown-extensions', -+ version='9.4', ++ version='%%DISTVERSION%%', + description='Extension pack for Python Markdown.', + long_description='', + author_email='Isaac Muse ', + classifiers=[ + 'Development Status :: 5 - Production/Stable', + 'Environment :: Console', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: MIT License', + 'Operating System :: OS Independent', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', + 'Topic :: Software Development :: Libraries :: Python Modules', + 'Topic :: Text Processing :: Filters', + 'Topic :: Text Processing :: Markup :: HTML', + ], + install_requires=[ + 'markdown>=3.2', + ], + packages=[ + 'pymdownx', + ], +)