Date: Tue, 21 Mar 2023 19:30:18 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: df9e0bf5fddc - main - textproc/py-myst-parser: Convert to USE_PYTHON=pep517 Message-ID: <202303211930.32LJUIAT042607@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=df9e0bf5fddc653af4f613600956c95bd3954fe1 commit df9e0bf5fddc653af4f613600956c95bd3954fe1 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-03-21 18:48:33 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-03-21 19:21:21 +0000 textproc/py-myst-parser: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for dependency and package change --- textproc/py-myst-parser/Makefile | 7 ++-- textproc/py-myst-parser/files/setup.py | 68 ---------------------------------- 2 files changed, 3 insertions(+), 72 deletions(-) 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,5 +1,6 @@ PORTNAME= myst-parser PORTVERSION= 0.18.1 +PORTREVISION= 1 CATEGORIES= textproc python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,6 +12,7 @@ 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} \ @@ -20,11 +22,8 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}docutils>=0.15,1<0.20,1:textproc/py-docutils ${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 <bsd.port.mk> 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 <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', - )
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303211930.32LJUIAT042607>