1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
Po-Chuan Hsieh 2022-04-18 07:45:20 +08:00
parent 438f62f4dc
commit 874ae58509
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
3 changed files with 67 additions and 7 deletions

View File

@ -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>

View File

@ -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

View File

@ -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',
)