git: 874ae5850900 - main - textproc/py-markdown-it-py: Update to 2.1.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 18 Apr 2022 00:02:22 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=874ae5850900aa7fec36109c88e2aed0f5eabd4a

commit 874ae5850900aa7fec36109c88e2aed0f5eabd4a
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-04-17 23:45:20 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-04-17 23:58:24 +0000

    textproc/py-markdown-it-py: Update to 2.1.0
    
    Changes:        https://github.com/executablebooks/markdown-it-py/releases
                    https://github.com/executablebooks/markdown-it-py/blob/master/CHANGELOG.md
---
 textproc/py-markdown-it-py/Makefile       | 10 +++---
 textproc/py-markdown-it-py/distinfo       |  6 ++--
 textproc/py-markdown-it-py/files/setup.py | 58 +++++++++++++++++++++++++++++++
 3 files changed, 67 insertions(+), 7 deletions(-)

diff --git a/textproc/py-markdown-it-py/Makefile b/textproc/py-markdown-it-py/Makefile
index 88f10fb1b6eb..378e95489471 100644
--- a/textproc/py-markdown-it-py/Makefile
+++ b/textproc/py-markdown-it-py/Makefile
@@ -1,7 +1,7 @@
 # Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
 
 PORTNAME=	markdown-it-py
-PORTVERSION=	2.0.1
+PORTVERSION=	2.1.0
 CATEGORIES=	textproc python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,10 +12,9 @@ COMMENT=	Python port of markdown-it
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}attrs>=19<22:devel/py-attrs@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}mdurl>=0.1<1:textproc/py-mdurl@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mdurl>=0.1<1:textproc/py-mdurl@${PY_FLAVOR}
 
-USES=		python:3.6+
+USES=		python:3.7+
 USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
@@ -26,4 +25,7 @@ NO_ARCH=	yes
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.7.4:devel/py-typing-extensions@${PY_FLAVOR}
 .endif
 
+post-patch:
+	@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
+
 .include <bsd.port.post.mk>
diff --git a/textproc/py-markdown-it-py/distinfo b/textproc/py-markdown-it-py/distinfo
index 3b3ba0702e77..05677f1f15d5 100644
--- a/textproc/py-markdown-it-py/distinfo
+++ b/textproc/py-markdown-it-py/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1643382564
-SHA256 (markdown-it-py-2.0.1.tar.gz) = 7b5c153ae1ab2cde00a33938bce68f3ad5d68fbe363f946de7d28555bed4e08a
-SIZE (markdown-it-py-2.0.1.tar.gz) = 62355
+TIMESTAMP = 1650228820
+SHA256 (markdown-it-py-2.1.0.tar.gz) = cf7e59fed14b5ae17c0006eff14a2d9a00ed5f3a846148153899a0224e2c07da
+SIZE (markdown-it-py-2.1.0.tar.gz) = 66227
diff --git a/textproc/py-markdown-it-py/files/setup.py b/textproc/py-markdown-it-py/files/setup.py
new file mode 100644
index 000000000000..a2166377b371
--- /dev/null
+++ b/textproc/py-markdown-it-py/files/setup.py
@@ -0,0 +1,58 @@
+#!/usr/bin/env python
+# setup.py generated by flit for tools that don't yet use PEP 517
+
+from distutils.core import setup
+
+packages = \
+['markdown_it',
+ 'markdown_it.cli',
+ 'markdown_it.common',
+ 'markdown_it.helpers',
+ 'markdown_it.presets',
+ 'markdown_it.rules_block',
+ 'markdown_it.rules_core',
+ 'markdown_it.rules_inline']
+
+package_data = \
+{'': ['*']}
+
+install_requires = \
+['mdurl~=0.1']
+
+extras_require = \
+{":python_version<'3.8'": ['typing_extensions>=3.7.4'],
+ 'benchmarking': ['psutil', 'pytest', 'pytest-benchmark~=3.2'],
+ 'code_style': ['pre-commit==2.6'],
+ 'compare': ['commonmark~=0.9.1',
+             'markdown~=3.3.6',
+             'mistletoe~=0.8.1',
+             'mistune~=2.0.2',
+             'panflute~=2.1.3'],
+ 'linkify': ['linkify-it-py~=1.0'],
+ 'plugins': ['mdit-py-plugins'],
+ 'profiling': ['gprof2dot'],
+ 'rtd': ['attrs',
+         'myst-parser',
+         'pyyaml',
+         'sphinx',
+         'sphinx-copybutton',
+         'sphinx-design',
+         'sphinx_book_theme'],
+ 'testing': ['coverage', 'pytest', 'pytest-cov', 'pytest-regressions']}
+
+entry_points = \
+{'console_scripts': ['markdown-it = markdown_it.cli.parse:main']}
+
+setup(name='markdown-it-py',
+      version='%%PORTVERSION%%',
+      description='Python port of markdown-it. Markdown parsing, done right!',
+      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,
+      entry_points=entry_points,
+      python_requires='>=3.7',
+     )