git: c7f064bb6698 - main - textproc/py-towncrier23: Add py-towncrier23 23.11.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 04 Aug 2024 21:18:37 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=c7f064bb6698d20725a8ca8ce07a1c86bdbc453b commit c7f064bb6698d20725a8ca8ce07a1c86bdbc453b Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-08-04 21:13:48 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-08-04 21:13:48 +0000 textproc/py-towncrier23: Add py-towncrier23 23.11.0 towncrier is a utility to produce useful, summarized news files (also known as changelogs) for your project. Rather than reading the Git history, or having one single file which developers all write to and produce merge conflicts, towncrier reads "news fragments" which contain information useful to end users. Used by Twisted, pytest, pip, BuildBot, and attrs, among others. While the command line tool towncrier requires Python to run, as long as you don't use any Python-specific affordances (like auto-detection of the project version), it is usable with any project type on any platform. --- textproc/Makefile | 1 + textproc/py-towncrier23/Makefile | 35 ++++++++++++++++++++++ textproc/py-towncrier23/distinfo | 3 ++ textproc/py-towncrier23/files/patch-pyproject.toml | 12 ++++++++ textproc/py-towncrier23/pkg-descr | 12 ++++++++ 5 files changed, 63 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index 02e238486977..15b67f597bd7 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1652,6 +1652,7 @@ SUBDIR += py-tomlkit SUBDIR += py-toronado SUBDIR += py-towncrier + SUBDIR += py-towncrier23 SUBDIR += py-trans SUBDIR += py-translationstring SUBDIR += py-transpopy diff --git a/textproc/py-towncrier23/Makefile b/textproc/py-towncrier23/Makefile new file mode 100644 index 000000000000..3319df3ef852 --- /dev/null +++ b/textproc/py-towncrier23/Makefile @@ -0,0 +1,35 @@ +PORTNAME= towncrier +PORTVERSION= 23.11.0 +CATEGORIES= textproc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +PKGNAMESUFFIX= 23 + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Building newsfiles for your project +WWW= https://towncrier.readthedocs.io/en/stable/ \ + https://github.com/twisted/towncrier + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=1.17.1:devel/py-hatchling@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}incremental>=0:devel/py-incremental@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>=0:devel/py-click@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}importlib-resources>=5:devel/py-importlib-resources@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}incremental>=0:devel/py-incremental@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}Jinja2>=0:devel/py-Jinja2@${PY_FLAVOR} \ + ${PY_TOMLI} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}towncrier + +# This is a temporary fix for building documents before py-towncrier is compatible. +# See PR 280570 for details. +PORTSCOUT= ignore:1 + +.include <bsd.port.mk> diff --git a/textproc/py-towncrier23/distinfo b/textproc/py-towncrier23/distinfo new file mode 100644 index 000000000000..837f52c89cac --- /dev/null +++ b/textproc/py-towncrier23/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1722798765 +SHA256 (towncrier-23.11.0.tar.gz) = 13937c247e3f8ae20ac44d895cf5f96a60ad46cfdcc1671759530d7837d9ee5d +SIZE (towncrier-23.11.0.tar.gz) = 51483 diff --git a/textproc/py-towncrier23/files/patch-pyproject.toml b/textproc/py-towncrier23/files/patch-pyproject.toml new file mode 100644 index 000000000000..b526fb03cf2a --- /dev/null +++ b/textproc/py-towncrier23/files/patch-pyproject.toml @@ -0,0 +1,12 @@ +--- pyproject.toml.orig 2020-02-02 00:00:00 UTC ++++ pyproject.toml +@@ -1,7 +1,7 @@ requires = [ + [build-system] + requires = [ +- "hatchling ~= 1.17.1", +- "incremental == 22.10.0", ++ "hatchling >= 1.17.1", ++ "incremental", + ] + build-backend = "hatchling.build" + diff --git a/textproc/py-towncrier23/pkg-descr b/textproc/py-towncrier23/pkg-descr new file mode 100644 index 000000000000..68e889ecb99e --- /dev/null +++ b/textproc/py-towncrier23/pkg-descr @@ -0,0 +1,12 @@ +towncrier is a utility to produce useful, summarized news files (also known as +changelogs) for your project. + +Rather than reading the Git history, or having one single file which developers +all write to and produce merge conflicts, towncrier reads "news fragments" which +contain information useful to end users. + +Used by Twisted, pytest, pip, BuildBot, and attrs, among others. + +While the command line tool towncrier requires Python to run, as long as you +don't use any Python-specific affordances (like auto-detection of the project +version), it is usable with any project type on any platform.