diff --git a/textproc/py-myst-parser/Makefile b/textproc/py-myst-parser/Makefile index 4c61e27ca6cc..690a8c176e29 100644 --- a/textproc/py-myst-parser/Makefile +++ b/textproc/py-myst-parser/Makefile @@ -1,30 +1,29 @@ PORTNAME= myst-parser PORTVERSION= 0.18.1 +PORTREVISION= 1 CATEGORIES= textproc python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Extended commonmark compliant parser with bridges to docutils & sphinx WWW= https://github.com/executablebooks/MyST-Parser LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.4<4:devel/py-flit-core@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}docutils>=0.15,1<0.20,1:textproc/py-docutils@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}Jinja2>=0:devel/py-Jinja2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}markdown-it-py>=1.0.0<3.0.0:textproc/py-markdown-it-py@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}mdit-py-plugins>=0.3.1<0.4:textproc/py-mdit-py-plugins@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}sphinx>=4,1<6,1:textproc/py-sphinx@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR} USES= python:3.7+ -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes -post-patch: - @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py - .include diff --git a/textproc/py-myst-parser/files/setup.py b/textproc/py-myst-parser/files/setup.py deleted file mode 100644 index 9ee4305c51d1..000000000000 --- a/textproc/py-myst-parser/files/setup.py +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env python -# setup.py generated by flit for tools that don't yet use PEP 517 - -from distutils.core import setup - -packages = \ -['myst_parser', - 'myst_parser.config', - 'myst_parser.mdit_to_docutils', - 'myst_parser.parsers', - 'myst_parser.sphinx_ext'] - -package_data = \ -{'': ['*']} - -install_requires = \ -['docutils>=0.15,<0.20', - 'jinja2', - 'markdown-it-py>=1.0.0,<3.0.0', - 'mdit-py-plugins~=0.3.1', - 'pyyaml', - 'sphinx>=4,<6', - 'typing-extensions'] - -extras_require = \ -{'code_style': ['pre-commit~=2.12'], - 'linkify': ['linkify-it-py~=1.0'], - 'rtd': ['ipython', - 'sphinx-book-theme', - 'sphinx-design', - 'sphinxext-rediraffe~=0.2.7', - 'sphinxcontrib.mermaid~=0.7.1', - 'sphinxext-opengraph~=0.6.3'], - 'testing': ['beautifulsoup4', - 'coverage[toml]', - 'pytest>=6,<7', - 'pytest-cov', - 'pytest-regressions', - 'pytest-param-files~=0.3.4', - 'sphinx-pytest', - 'sphinx<5.2']} - -entry_points = \ -{'console_scripts': ['myst-anchors = myst_parser.cli:print_anchors', - 'myst-docutils-html = ' - 'myst_parser.parsers.docutils_:cli_html', - 'myst-docutils-html5 = ' - 'myst_parser.parsers.docutils_:cli_html5', - 'myst-docutils-latex = ' - 'myst_parser.parsers.docutils_:cli_latex', - 'myst-docutils-pseudoxml = ' - 'myst_parser.parsers.docutils_:cli_pseudoxml', - 'myst-docutils-xml = ' - 'myst_parser.parsers.docutils_:cli_xml']} - -setup(name='myst-parser', - version='%%PORTVERSION%%', - description='An extended commonmark compliant parser, with bridges to docutils & sphinx.', - author=None, - author_email='Chris Sewell ', - url=None, - packages=packages, - package_data=package_data, - install_requires=install_requires, - extras_require=extras_require, - entry_points=entry_points, - python_requires='>=3.7', - )