git: c8fe8a3aa947 - main - textproc/py-duecredit: update 0.10.2 → 0.11.2

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 27 Jul 2026 01:00:22 UTC
The branch main has been updated by yuri:

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

commit c8fe8a3aa9478984e7443ee8f97e1eafe2ac9189
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-07-27 00:35:31 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-07-27 01:00:03 +0000

    textproc/py-duecredit: update 0.10.2 → 0.11.2
---
 textproc/py-duecredit/Makefile                   | 13 ++++++++-----
 textproc/py-duecredit/distinfo                   |  6 +++---
 textproc/py-duecredit/files/patch-pyproject.toml | 21 +++++++++++++++++++++
 textproc/py-duecredit/files/patch-setup.py       | 11 -----------
 4 files changed, 32 insertions(+), 19 deletions(-)

diff --git a/textproc/py-duecredit/Makefile b/textproc/py-duecredit/Makefile
index 7e213366d248..106f90e3245e 100644
--- a/textproc/py-duecredit/Makefile
+++ b/textproc/py-duecredit/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	duecredit
-DISTVERSION=	0.10.2
-PORTREVISION=	1
+DISTVERSION=	0.11.2
 CATEGORIES=	textproc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,17 +11,21 @@ WWW=		https://github.com/duecredit/duecredit
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR}
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}citeproc-py>=0.4:textproc/py-citeproc-py@${PY_FLAVOR} \
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}citeproc-py>=0.5:textproc/py-citeproc-py@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}looseversion>0:devel/py-looseversion@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	distutils concurrent autoplist pytest
+USE_PYTHON=	pep517 concurrent autoplist pytest
 
 TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
 
 NO_ARCH=	yes
 
+# tests as of 0.11.2: 75 passed, 4 skipped in 7.04s
+
 .include <bsd.port.mk>
diff --git a/textproc/py-duecredit/distinfo b/textproc/py-duecredit/distinfo
index 9a4292a61be0..b3f42b4aa202 100644
--- a/textproc/py-duecredit/distinfo
+++ b/textproc/py-duecredit/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1722550397
-SHA256 (duecredit-0.10.2.tar.gz) = fe73a20e4fbb2d972ba01edf37dec1b0ba1e646efe5ef4ccaf0c6724ca287d42
-SIZE (duecredit-0.10.2.tar.gz) = 84265
+TIMESTAMP = 1785110951
+SHA256 (duecredit-0.11.2.tar.gz) = 7b5c1ae10927f9e02cf4d54e2c74a8aa00cd29c38d637defe3c948d3d8e9f33a
+SIZE (duecredit-0.11.2.tar.gz) = 84059
diff --git a/textproc/py-duecredit/files/patch-pyproject.toml b/textproc/py-duecredit/files/patch-pyproject.toml
new file mode 100644
index 000000000000..e48e2ba83d41
--- /dev/null
+++ b/textproc/py-duecredit/files/patch-pyproject.toml
@@ -0,0 +1,21 @@
+-- Fix invalid pyproject.toml license field format
+-- PEP 621 requires license to be either {text = "..."} or {file = "..."}
+
+--- pyproject.toml.orig	2025-11-26 21:36:02 UTC
++++ pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["setuptools>=77.0.3", "setuptools-scm"]
++requires = ["setuptools", "setuptools-scm"]
+ build-backend = "setuptools.build_meta"
+ 
+ [project]
+@@ -11,8 +11,6 @@ requires-python = ">=3.9"
+ description = "Publications (and donations) tracer"
+ readme = "README.md"
+ requires-python = ">=3.9"
+-license = "BSD-2-Clause"
+-license-files = ["LICENSE"]
+ keywords= ["citation tracing"]
+ classifiers = [
+     "Development Status :: 4 - Beta",
diff --git a/textproc/py-duecredit/files/patch-setup.py b/textproc/py-duecredit/files/patch-setup.py
deleted file mode 100644
index 761043a24790..000000000000
--- a/textproc/py-duecredit/files/patch-setup.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- setup.py.orig	2024-06-04 20:51:40 UTC
-+++ setup.py
-@@ -54,7 +54,7 @@ try:
-     else:
-         print("Attempting to get version number from git...")
-         git = Popen(
--            ["git", "describe", "--abbrev=4", "--dirty"], stdout=PIPE, stderr=sys.stderr
-+            ["false", "describe", "--abbrev=4", "--dirty"], stdout=PIPE, stderr=sys.stderr
-         )
-         if git.wait() != 0:
-             raise OSError