summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textproc/py-pymdown-extensions/Makefile12
-rw-r--r--textproc/py-pymdown-extensions/distinfo6
-rw-r--r--textproc/py-pymdown-extensions/files/patch-setup.py42
3 files changed, 6 insertions, 54 deletions
diff --git a/textproc/py-pymdown-extensions/Makefile b/textproc/py-pymdown-extensions/Makefile
index b315e7613b21..3b9a2cbd3fc5 100644
--- a/textproc/py-pymdown-extensions/Makefile
+++ b/textproc/py-pymdown-extensions/Makefile
@@ -1,5 +1,5 @@
PORTNAME= pymdown-extensions
-DISTVERSION= 9.9
+DISTVERSION= 9.9.2
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,18 +12,12 @@ WWW= https://github.com/facelessuser/pymdown-extensions
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.md
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0.21.1:devel/py-hatchling@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}markdown>=3.2:textproc/py-markdown@${PY_FLAVOR}
USES= python:3.7+
-USE_PYTHON= autoplist distutils
+USE_PYTHON= autoplist pep517
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 <bsd.port.mk>
diff --git a/textproc/py-pymdown-extensions/distinfo b/textproc/py-pymdown-extensions/distinfo
index bdec34704dcc..d1395d92cb0e 100644
--- a/textproc/py-pymdown-extensions/distinfo
+++ b/textproc/py-pymdown-extensions/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1671528940
-SHA256 (pymdown_extensions-9.9.tar.gz) = 0f8fb7b74a37a61cc34e90b2c91865458b713ec774894ffad64353a5fce85cfc
-SIZE (pymdown_extensions-9.9.tar.gz) = 743948
+TIMESTAMP = 1677140141
+SHA256 (pymdown_extensions-9.9.2.tar.gz) = ebb33069bafcb64d5f5988043331d4ea4929325dc678a6bcf247ddfcf96499f8
+SIZE (pymdown_extensions-9.9.2.tar.gz) = 744017
diff --git a/textproc/py-pymdown-extensions/files/patch-setup.py b/textproc/py-pymdown-extensions/files/patch-setup.py
deleted file mode 100644
index e9091bddbf99..000000000000
--- a/textproc/py-pymdown-extensions/files/patch-setup.py
+++ /dev/null
@@ -1,42 +0,0 @@
-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='%%DISTVERSION%%',
-+ description='Extension pack for Python Markdown.',
-+ long_description='',
-+ author_email='Isaac Muse <Isaac.Muse@gmail.com>',
-+ 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',
-+ ],
-+)