From nobody Sun Oct 09 19:49:16 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Mlt0X5mPPz4fP9m; Sun, 9 Oct 2022 19:49:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mlt0X4v5pz3Nj7; Sun, 9 Oct 2022 19:49:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665344956; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1RXTn+yH4QbbltaGBTBpCuRc8QE3F2QdSFlKU3RwhBY=; b=JxmYYJl1iuVWxbYlBKe556AaBh36JLKi5aL2HQy/6XCWwZSYdrIKMcF2rilxtxDo8aBCYC yhJzSvVResRoL+ClZzr032+MrlfXlnTDe6pc82bGoT5g45VX+XFu9W4YxZoAZPDYXEzr+U +3Ys5M6WXRu38avVvy9fJaPAHuf2GesR+CjRm/qHYj/PN19PErgGf0SZ8R9Yu/pnPDd4ou CgBYBGs9+zXGD0ARtG8XbwXUpui7BhhBoQpYuNtTZDp0wvYddYJEjS21vrshKxeqVoh3zU 8JK8JH8EuH6xTbMy05araxa4tknCHS+2BKZtD8+ePkZCO40piJ76vE0tszt31Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Mlt0X3xZtzNkM; Sun, 9 Oct 2022 19:49:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 299JnGvZ057641; Sun, 9 Oct 2022 19:49:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 299JnGtk057640; Sun, 9 Oct 2022 19:49:16 GMT (envelope-from git) Date: Sun, 9 Oct 2022 19:49:16 GMT Message-Id: <202210091949.299JnGtk057640@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: d4e70cca1a2e - main - devel/py-hatch-fancy-pypi-readme: Add py-hatch-fancy-pypi-readme 22.8.0 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d4e70cca1a2e5638cf401106f1a8c758d401fd7a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665344956; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1RXTn+yH4QbbltaGBTBpCuRc8QE3F2QdSFlKU3RwhBY=; b=Pxzl9akBcAj7Mm1B7dxGyPhvsknMKJYtaGRHijD928+QWemeWfvlKXTIHAbpa4jQYOH7fi kru/SVHAoqZRLhwOBDzUFFa01TEukfKHTfw1VXoHxBMmUoQBQotA9aX+6uOgdVr7Xpe0lO lKKWCvwoUVG3ln7StTKhf9uEhxl+XSS89v3Rmmm5MKkTU34K0E8z2XTHmup9Lgisc3K02X KZBNyTJ00/wlE1C43knBUProRzBpsLif/kwcuAZNBMxnUrrZv4Lex1Ux1wb9YPT9Z95ocW tHrC5WxLRqgwIIR16WEqQmVYG33C9GvqUwYBY3x12B6NlTySjAdTJvyI8ZLorg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665344956; a=rsa-sha256; cv=none; b=BuhhZ5k8D1lE2+ZJoSlbb11Dbt8LdbMvHdYgJqt/Om1le5YWatWxnm+ZiBS1bqN1PU763a TkKFj2k/Msga9Z2XpWhIFxx/sYZgrNwjdRsxVBGuK6HcZ44rQrFgmYsJbf4t4QCHg1A+nj DR3tvQfABDX3tj2Tqa0921iZp+eyEB93w4EYY6FyAtW4q9Rv/5KOmukX4pgTjehwkloRQe t90iRsiDad/n5vQcSrHr/45/mRIMa9N5IItQFACmA5Ll4NUXGbhr8uHjZDlPfGZqBUk03B QDY+W9b/xmevtahHWGYLpe2L4ix9JMhtBS31qNqXP6TEgGK1ymjKTr3VDnTvAA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=d4e70cca1a2e5638cf401106f1a8c758d401fd7a commit d4e70cca1a2e5638cf401106f1a8c758d401fd7a Author: Po-Chuan Hsieh AuthorDate: 2022-10-09 19:43:18 +0000 Commit: Po-Chuan Hsieh 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 + +.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 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 ', + 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.