git: 87f2141af008 - main - textproc/py-sphinxcontrib-towncrier: Update to 0.5.0a0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 14 Mar 2025 09:59:05 UTC
The branch main has been updated by sunpoet:

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

commit 87f2141af00858026aa751974d6eae6f0865b436
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-03-14 09:41:06 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-03-14 09:54:26 +0000

    textproc/py-sphinxcontrib-towncrier: Update to 0.5.0a0
    
    Changes:        https://github.com/sphinx-contrib/sphinxcontrib-towncrier/releases
                    https://github.com/sphinx-contrib/sphinxcontrib-towncrier/commits/master
---
 textproc/py-sphinxcontrib-towncrier/Makefile                | 13 ++++++-------
 textproc/py-sphinxcontrib-towncrier/distinfo                |  6 +++---
 .../py-sphinxcontrib-towncrier/files/patch-pyproject.toml   | 11 +++++++++++
 3 files changed, 20 insertions(+), 10 deletions(-)

diff --git a/textproc/py-sphinxcontrib-towncrier/Makefile b/textproc/py-sphinxcontrib-towncrier/Makefile
index d1626dfb96f3..3fbd1b9305de 100644
--- a/textproc/py-sphinxcontrib-towncrier/Makefile
+++ b/textproc/py-sphinxcontrib-towncrier/Makefile
@@ -1,10 +1,10 @@
 PORTNAME=	sphinxcontrib-towncrier
-PORTVERSION=	0.4.0a0
-PORTREVISION=	1
+PORTVERSION=	0.5.0a0
 CATEGORIES=	textproc python
 MASTER_SITES=	PYPI \
 		https://github.com/sphinx-contrib/sphinxcontrib-towncrier/releases/download/v${PORTVERSION}/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	sphinxcontrib_towncrier-${PORTVERSION}
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	RST directive for injecting a Towncrier-generated changelog draft
@@ -14,16 +14,15 @@ WWW=		https://sphinxcontrib-towncrier.readthedocs.io/en/latest/ \
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=40.6.0:devel/py-setuptools@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}setuptools-scm>=3.5:devel/py-setuptools-scm@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}setuptools_scm_git_archive>=1.1:devel/py-setuptools_scm_git_archive@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools-scm>=8:devel/py-setuptools-scm@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}towncrier23>=19.2:textproc/py-towncrier23@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}towncrier>=23:textproc/py-towncrier@${PY_FLAVOR}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest-xdist>=0,1:devel/py-pytest-xdist@${PY_FLAVOR}
 
-USES=		python
+USES=		python:3.9+
 USE_PYTHON=	autoplist concurrent pep517 pytest
 
 NO_ARCH=	yes
diff --git a/textproc/py-sphinxcontrib-towncrier/distinfo b/textproc/py-sphinxcontrib-towncrier/distinfo
index 27525d93aecb..d5c8d33d11a6 100644
--- a/textproc/py-sphinxcontrib-towncrier/distinfo
+++ b/textproc/py-sphinxcontrib-towncrier/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1722711257
-SHA256 (sphinxcontrib-towncrier-0.4.0a0.tar.gz) = d9b1513fc07781432dd3a0b2ca797cfe0e99e9b5bc5e5c8bf112d5d142afb6dc
-SIZE (sphinxcontrib-towncrier-0.4.0a0.tar.gz) = 49635
+TIMESTAMP = 1740836186
+SHA256 (sphinxcontrib_towncrier-0.5.0a0.tar.gz) = 294e69df6e275e7a86df7ea6a927cc7c28c2c370a884cd5c45de6ec989858f27
+SIZE (sphinxcontrib_towncrier-0.5.0a0.tar.gz) = 62453
diff --git a/textproc/py-sphinxcontrib-towncrier/files/patch-pyproject.toml b/textproc/py-sphinxcontrib-towncrier/files/patch-pyproject.toml
new file mode 100644
index 000000000000..225f31b8c204
--- /dev/null
+++ b/textproc/py-sphinxcontrib-towncrier/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig	2025-02-28 01:49:19 UTC
++++ pyproject.toml
+@@ -1,7 +1,7 @@ requires = [
+ [build-system]
+ requires = [
+   # Essentials
+-  "setuptools >= 64",
++  "setuptools >= 61",
+ 
+   # Plugins
+   "setuptools_scm[toml] >= 8",  # version is required for "no-local-version" scheme + toml extra is needed for supporting config in this file