git: d4e70cca1a2e - main - devel/py-hatch-fancy-pypi-readme: Add py-hatch-fancy-pypi-readme 22.8.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 09 Oct 2022 19:49:16 UTC
The branch main has been updated by sunpoet:

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

commit d4e70cca1a2e5638cf401106f1a8c758d401fd7a
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-10-09 19:43:18 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-10-09 19:45:24 +0000

    devel/py-hatch-fancy-pypi-readme: Add py-hatch-fancy-pypi-readme 22.8.0
    
    hatch-fancy-pypi-readme is a Hatch metadata plugin for everyone who cares about
    the first impression of their project's PyPI landing page. It allows you to
    define your PyPI project description in terms of concatenated fragments that are
    based on static strings, files, and most importantly: parts of files defined
    using cut-off points or regular expressions.
    
    Once you've assembled your readme, you can additionally run regular
    expression-based substitutions over it. For instance to make relative links
    absolute or to linkify users and issue numbers in your changelog.
---
 devel/Makefile                                  |  1 +
 devel/py-hatch-fancy-pypi-readme/Makefile       | 35 ++++++++++++++++
 devel/py-hatch-fancy-pypi-readme/distinfo       |  3 ++
 devel/py-hatch-fancy-pypi-readme/files/setup.py | 55 +++++++++++++++++++++++++
 devel/py-hatch-fancy-pypi-readme/pkg-descr      |  9 ++++
 5 files changed, 103 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 4035695f59c2..b7e988dbf33e 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4623,6 +4623,7 @@
     SUBDIR += py-gyp
     SUBDIR += py-hash_ring
     SUBDIR += py-hatch
+    SUBDIR += py-hatch-fancy-pypi-readme
     SUBDIR += py-hatch-vcs
     SUBDIR += py-hatchling
     SUBDIR += py-heapdict
diff --git a/devel/py-hatch-fancy-pypi-readme/Makefile b/devel/py-hatch-fancy-pypi-readme/Makefile
new file mode 100644
index 000000000000..1715c18ce49c
--- /dev/null
+++ b/devel/py-hatch-fancy-pypi-readme/Makefile
@@ -0,0 +1,35 @@
+PORTNAME=	hatch-fancy-pypi-readme
+PORTVERSION=	22.8.0
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	hatch_fancy_pypi_readme-${PORTVERSION}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Fancy PyPI READMEs with Hatch
+WWW=		https://github.com/hynek/hatch-fancy-pypi-readme
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
+
+USES=		python:3.7+
+USE_PYTHON=	autoplist concurrent distutils
+
+#NO_ARCH=	yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 30800
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
+.endif
+
+.if ${PYTHON_REL} < 31000
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tomli>=0:textproc/py-tomli@${PY_FLAVOR}
+.endif
+
+post-patch:
+	@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
+
+.include <bsd.port.post.mk>
diff --git a/devel/py-hatch-fancy-pypi-readme/distinfo b/devel/py-hatch-fancy-pypi-readme/distinfo
new file mode 100644
index 000000000000..ccce702f8666
--- /dev/null
+++ b/devel/py-hatch-fancy-pypi-readme/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1665330600
+SHA256 (hatch_fancy_pypi_readme-22.8.0.tar.gz) = da91282ca09601c18aded8e378daf8b578c70214866f0971156ee9bb9ce6c26a
+SIZE (hatch_fancy_pypi_readme-22.8.0.tar.gz) = 26511
diff --git a/devel/py-hatch-fancy-pypi-readme/files/setup.py b/devel/py-hatch-fancy-pypi-readme/files/setup.py
new file mode 100644
index 000000000000..61788718446f
--- /dev/null
+++ b/devel/py-hatch-fancy-pypi-readme/files/setup.py
@@ -0,0 +1,55 @@
+# -*- coding: utf-8 -*-
+from setuptools import setup
+
+setup(
+    name='hatch-fancy-pypi-readme',
+    version='%%PORTVERSION%%',
+    description='Fancy PyPI READMEs with Hatch',
+    long_description='# Your ✨Fancy✨ Project Deserves a ✨Fancy✨ PyPI Readme! 🧐\n\n[![PyPI - Version](https://img.shields.io/pypi/v/hatch-fancy-pypi-readme.svg)](https://pypi.org/project/hatch-fancy-pypi-readme)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/hatch-fancy-pypi-readme.svg)](https://pypi.org/project/hatch-fancy-pypi-readme)\n[![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)\n[![License: MIT](https://img.shields.io/badge/license-MIT-C06524)](https://github.com/hynek/hatch-fancy-pypi-readme/blob/main/LICENSE.txt)\n\n\n*hatch-fancy-pypi-readme* is an MIT-licensed metadata plugin for [*Hatch*](https://hatch.pypa.io/).\n\nIts purpose is to help you to have fancy PyPI readmes – unlike *this* one you’re looking at right now.\n\nPlease check out the [documentation](https://github.com/hynek/hatch-fancy-pypi-readme#readme) to see what *hatch-fancy-pypi-readme* can do for you and your proj
 ects!\n',
+    author_email='Hynek Schlawack <hs@ox.cx>',
+    classifiers=[
+        'Development Status :: 5 - Production/Stable',
+        'Framework :: Hatch',
+        'License :: OSI Approved :: MIT License',
+        'Operating System :: OS Independent',
+        'Programming Language :: Python',
+        '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',
+        'Programming Language :: Python :: Implementation :: CPython',
+        'Programming Language :: Python :: Implementation :: PyPy',
+        'Topic :: Software Development :: Build Tools',
+    ],
+    install_requires=[
+        'hatchling',
+        'tomli; python_version < "3.11"',
+        'typing-extensions; python_version < "3.8"',
+    ],
+    extras_require={
+        'dev': [
+            'hatch-fancy-pypi-readme[tests]',
+            'mypy',
+        ],
+        'tests': [
+            'build',
+            'pytest',
+            'wheel',
+        ],
+    },
+    entry_points={
+        'console_scripts': [
+            'hatch-fancy-pypi-readme = hatch_fancy_pypi_readme.__main__:main',
+        ],
+        'hatch': [
+            'fancy-pypi-readme = hatch_fancy_pypi_readme.hooks',
+        ],
+    },
+    packages=[
+        'hatch_fancy_pypi_readme',
+    ],
+    package_dir={
+        '': 'src',
+    },
+)
diff --git a/devel/py-hatch-fancy-pypi-readme/pkg-descr b/devel/py-hatch-fancy-pypi-readme/pkg-descr
new file mode 100644
index 000000000000..df89ba88e74c
--- /dev/null
+++ b/devel/py-hatch-fancy-pypi-readme/pkg-descr
@@ -0,0 +1,9 @@
+hatch-fancy-pypi-readme is a Hatch metadata plugin for everyone who cares about
+the first impression of their project's PyPI landing page. It allows you to
+define your PyPI project description in terms of concatenated fragments that are
+based on static strings, files, and most importantly: parts of files defined
+using cut-off points or regular expressions.
+
+Once you've assembled your readme, you can additionally run regular
+expression-based substitutions over it. For instance to make relative links
+absolute or to linkify users and issue numbers in your changelog.