git: 8e6ac1419e80 - main - textproc/py-mdit-py-plugins: Update to 0.3.1

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 03 Oct 2022 17:14:19 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8e6ac1419e80dd92ff0bde8b2cc4fd56ab1137c4

commit 8e6ac1419e80dd92ff0bde8b2cc4fd56ab1137c4
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-10-03 17:05:59 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-10-03 17:10:40 +0000

    textproc/py-mdit-py-plugins: Update to 0.3.1
    
    Changes:        https://github.com/executablebooks/mdit-py-plugins/blob/master/CHANGELOG.md
---
 textproc/py-mdit-py-plugins/Makefile       |  7 +++--
 textproc/py-mdit-py-plugins/distinfo       |  6 ++--
 textproc/py-mdit-py-plugins/files/setup.py | 45 ++++++++++++++++++++++++++++++
 3 files changed, 53 insertions(+), 5 deletions(-)

diff --git a/textproc/py-mdit-py-plugins/Makefile b/textproc/py-mdit-py-plugins/Makefile
index 70d1ce6e7932..f2606a1caa7b 100644
--- a/textproc/py-mdit-py-plugins/Makefile
+++ b/textproc/py-mdit-py-plugins/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	mdit-py-plugins
-PORTVERSION=	0.3.0
+PORTVERSION=	0.3.1
 CATEGORIES=	textproc python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,9 +13,12 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}markdown-it-py>=1.0.0<3.0.0:textproc/py-markdown-it-py@${PY_FLAVOR}
 
-USES=		python:3.6+
+USES=		python:3.7+
 USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
+post-patch:
+	@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
+
 .include <bsd.port.mk>
diff --git a/textproc/py-mdit-py-plugins/distinfo b/textproc/py-mdit-py-plugins/distinfo
index ef1f5c5fa6c0..13478197dcef 100644
--- a/textproc/py-mdit-py-plugins/distinfo
+++ b/textproc/py-mdit-py-plugins/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1638556626
-SHA256 (mdit-py-plugins-0.3.0.tar.gz) = ecc24f51eeec6ab7eecc2f9724e8272c2fb191c2e93cf98109120c2cace69750
-SIZE (mdit-py-plugins-0.3.0.tar.gz) = 32696
+TIMESTAMP = 1664767990
+SHA256 (mdit-py-plugins-0.3.1.tar.gz) = 3fc13298497d6e04fe96efdd41281bfe7622152f9caa1815ea99b5c893de9441
+SIZE (mdit-py-plugins-0.3.1.tar.gz) = 35787
diff --git a/textproc/py-mdit-py-plugins/files/setup.py b/textproc/py-mdit-py-plugins/files/setup.py
new file mode 100644
index 000000000000..3a64613df499
--- /dev/null
+++ b/textproc/py-mdit-py-plugins/files/setup.py
@@ -0,0 +1,45 @@
+#!/usr/bin/env python
+# setup.py generated by flit for tools that don't yet use PEP 517
+
+from distutils.core import setup
+
+packages = \
+['mdit_py_plugins',
+ 'mdit_py_plugins.amsmath',
+ 'mdit_py_plugins.anchors',
+ 'mdit_py_plugins.attrs',
+ 'mdit_py_plugins.container',
+ 'mdit_py_plugins.deflist',
+ 'mdit_py_plugins.dollarmath',
+ 'mdit_py_plugins.field_list',
+ 'mdit_py_plugins.footnote',
+ 'mdit_py_plugins.front_matter',
+ 'mdit_py_plugins.myst_blocks',
+ 'mdit_py_plugins.myst_role',
+ 'mdit_py_plugins.tasklists',
+ 'mdit_py_plugins.texmath',
+ 'mdit_py_plugins.wordcount']
+
+package_data = \
+{'': ['*']}
+
+install_requires = \
+['markdown-it-py>=1.0.0,<3.0.0']
+
+extras_require = \
+{'code_style': ['pre-commit'],
+ 'rtd': ['attrs', 'myst-parser~=0.16.1', 'sphinx-book-theme~=0.1.0'],
+ 'testing': ['coverage', 'pytest', 'pytest-cov', 'pytest-regressions']}
+
+setup(name='mdit-py-plugins',
+      version='%%PORTVERSION%%',
+      description='Collection of plugins for markdown-it-py',
+      author=None,
+      author_email='Chris Sewell <chrisj_sewell@hotmail.com>',
+      url=None,
+      packages=packages,
+      package_data=package_data,
+      install_requires=install_requires,
+      extras_require=extras_require,
+      python_requires='>=3.7',
+     )