summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-03-22 02:48:23 +0800
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-03-22 03:21:20 +0800
commit85441e9beaf72bfe0784d7e37aceb471534bf6bb (patch)
tree7f6c6fe7bcf2b09220dd641155d10dea77d86442
parenttextproc/py-markdown-it-py: Convert to USE_PYTHON=pep517 (diff)
textproc/py-marko: Convert to USE_PYTHON=pep517
- Bump PORTREVISION for dependency and package change
-rw-r--r--textproc/py-marko/Makefile8
-rw-r--r--textproc/py-marko/files/setup.py56
2 files changed, 4 insertions, 60 deletions
diff --git a/textproc/py-marko/Makefile b/textproc/py-marko/Makefile
index dcd02f92ff32..5652331d4043 100644
--- a/textproc/py-marko/Makefile
+++ b/textproc/py-marko/Makefile
@@ -1,5 +1,6 @@
PORTNAME= marko
PORTVERSION= 1.3.0
+PORTREVISION= 1
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,12 +12,11 @@ WWW= https://github.com/frostming/marko
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pdm-pep517>=0:devel/py-pdm-pep517@${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-marko/files/setup.py b/textproc/py-marko/files/setup.py
deleted file mode 100644
index d8040d085f37..000000000000
--- a/textproc/py-marko/files/setup.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# -*- coding: utf-8 -*-
-from setuptools import setup
-
-import codecs
-
-with codecs.open('README.md', encoding="utf-8") as fp:
- long_description = fp.read()
-EXTRAS_REQUIRE = {
- 'toc': [
- 'python-slugify',
- ],
- 'codehilite': [
- 'pygments',
- ],
-}
-ENTRY_POINTS = {
- 'console_scripts': [
- 'marko = marko.cli:main',
- ],
-}
-
-setup_kwargs = {
- 'name': 'marko',
- 'version': '%%PORTVERSION%%',
- 'description': 'A markdown parser with high extensibility.',
- 'long_description': long_description,
- 'license': 'MIT',
- 'author': '',
- 'author_email': 'Frost Ming <mianghong@gmail.com>',
- 'maintainer': None,
- 'maintainer_email': None,
- 'url': 'https://github.com/frostming/marko',
- 'packages': [
- 'marko',
- 'marko.ext',
- 'marko.ext.gfm',
- ],
- 'package_data': {'': ['*']},
- 'long_description_content_type': 'text/markdown',
- 'classifiers': [
- 'Development Status :: 5 - Production/Stable',
- 'Intended Audience :: Developers',
- 'Operating System :: OS Independent',
- 'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.7',
- 'Programming Language :: Python :: 3.8',
- 'Programming Language :: Python :: 3.9',
- 'Programming Language :: Python :: 3.10',
- 'Programming Language :: Python :: 3.11',
- ],
- 'extras_require': EXTRAS_REQUIRE,
- 'python_requires': '>=3.7',
- 'entry_points': ENTRY_POINTS,
-}
-
-setup(**setup_kwargs)