From 4bd3073300d1a4d245f7cbc06923d6985af7f8a6 Mon Sep 17 00:00:00 2001 From: Nicola Vitale Date: Thu, 1 Aug 2024 11:23:57 +0200 Subject: [PATCH] textproc/py-towncrier: Update to 24.7.1 - Convert to PEP517 - Update run/build dependencies according to pyproject.toml Release changes: https://github.com/twisted/towncrier/releases/tag/24.7.1 Reported by: Adi Roiban --- textproc/py-towncrier/Makefile | 33 +++++++++++++++++++++++---------- textproc/py-towncrier/distinfo | 6 +++--- 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/textproc/py-towncrier/Makefile b/textproc/py-towncrier/Makefile index 3e1f53aabf64c..1ca53732f9401 100644 --- a/textproc/py-towncrier/Makefile +++ b/textproc/py-towncrier/Makefile @@ -1,6 +1,5 @@ PORTNAME= towncrier -PORTVERSION= 22.12.0 -PORTREVISION= 1 +PORTVERSION= 24.7.1 CATEGORIES= textproc MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,16 +11,30 @@ WWW= https://github.com/twisted/towncrier LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}incremental>=0:devel/py-incremental@${PY_FLAVOR} -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>=0:devel/py-click@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}click-default-group>=0:devel/py-click-default-group@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}incremental>=0:devel/py-incremental@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}Jinja2>=0:devel/py-Jinja2@${PY_FLAVOR} \ - ${PY_TOMLI} +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=1.25.0:devel/py-hatchling@${PY_FLAVOR} +RUN_DEPENDS= ${PY_TOMLI} \ + ${PYTHON_PKGNAMEPREFIX}click-default-group>=1.2.4:devel/py-click-default-group@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}click>=8.1.7:devel/py-click@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}incremental>=21.3.0:devel/py-incremental@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}Jinja2>=3.1.3:devel/py-Jinja2@${PY_FLAVOR} USES= python -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes -.include +.include + +.if defined(PYTHON_VER) && ${PYTHON_VER} < 3.10 +BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=7.1.0:devel/py-importlib-metadata@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}importlib-resources>=6.4.0:devel/py-importlib-resources@${PY_FLAVOR} +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=7.1.0:devel/py-importlib-metadata@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}importlib-resources>=6.4.0:devel/py-importlib-resources@${PY_FLAVOR} +.endif + +.if defined(PYTHON_VER) && ${PYTHON_VER} < 3.11 +BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tomli>=2.0.1:textproc/py-tomli@${PY_FLAVOR} +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tomli>=2.0.1:textproc/py-tomli@${PY_FLAVOR} +.endif + +.include diff --git a/textproc/py-towncrier/distinfo b/textproc/py-towncrier/distinfo index 4c34c834582d4..be6d2f0e7e4da 100644 --- a/textproc/py-towncrier/distinfo +++ b/textproc/py-towncrier/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1671724352 -SHA256 (towncrier-22.12.0.tar.gz) = 9c49d7e75f646a9aea02ae904c0bc1639c8fd14a01292d2b123b8d307564034d -SIZE (towncrier-22.12.0.tar.gz) = 46201 +TIMESTAMP = 1722497272 +SHA256 (towncrier-24.7.1.tar.gz) = 57a057faedabcadf1a62f6f9bad726ae566c1f31a411338ddb8316993f583b3d +SIZE (towncrier-24.7.1.tar.gz) = 60684