git: c60d5d94fdc1 - main - devel/py-pydantic2: Allow build with py-pydantic-core 2.28.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 07 Feb 2025 21:20:07 UTC
The branch main has been updated by sunpoet:

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

commit c60d5d94fdc1d6edd1ff769cae317c6a715c5769
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-02-07 20:15:25 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-02-07 21:16:03 +0000

    devel/py-pydantic2: Allow build with py-pydantic-core 2.28.0
    
    - Bump PORTREVISION for package change
    
    Obtained from:  https://github.com/pydantic/pydantic/commit/4a7ec17b5f8bcdd151ee35e4585fec3fb65bdf1a
---
 devel/py-pydantic2/Makefile                   |  3 ++-
 devel/py-pydantic2/files/patch-pyproject.toml | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/devel/py-pydantic2/Makefile b/devel/py-pydantic2/Makefile
index dee657588e3f..46c46730a2ef 100644
--- a/devel/py-pydantic2/Makefile
+++ b/devel/py-pydantic2/Makefile
@@ -4,6 +4,7 @@ CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 PKGNAMESUFFIX=	2
+PORTREVISION=	1
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Data validation using Python type hints
@@ -16,7 +17,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatch-fancy-pypi-readme>=22.5.0:devel/py-hatch-fancy-pypi-readme@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}annotated-types>=0.6.0:devel/py-annotated-types@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pydantic-core>=2.27.2<2.27.2_99:devel/py-pydantic-core@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pydantic-core>=2.28.0<2.28.0_99:devel/py-pydantic-core@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.12.2:devel/py-typing-extensions@${PY_FLAVOR}
 
 USES=		python
diff --git a/devel/py-pydantic2/files/patch-pyproject.toml b/devel/py-pydantic2/files/patch-pyproject.toml
new file mode 100644
index 000000000000..f7404d131d85
--- /dev/null
+++ b/devel/py-pydantic2/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig	2020-02-02 00:00:00 UTC
++++ pyproject.toml
+@@ -46,7 +46,7 @@ dependencies = [
+ dependencies = [
+     'typing-extensions>=4.12.2',
+     'annotated-types>=0.6.0',
+-    'pydantic-core==2.27.2',
++    'pydantic-core==2.28.0',
+ ]
+ dynamic = ['version', 'readme']
+