git: 3cb4ef9446cb - main - devel/py-pydantic-yaml: Fix build after py-ruamel.yaml 0.18.2 update (580cbb2bbe1f9cd20b6a3467555fe98f1d2d0667)

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 01 Nov 2023 02:16:28 UTC
The branch main has been updated by sunpoet:

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

commit 3cb4ef9446cbc1e8a5155a77f88cc1818984256c
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-11-01 01:49:13 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-11-01 02:08:22 +0000

    devel/py-pydantic-yaml: Fix build after py-ruamel.yaml 0.18.2 update (580cbb2bbe1f9cd20b6a3467555fe98f1d2d0667)
    
    - Bump PORTREVISION for package change
    
    Reference:      https://pkg-status.freebsd.org/beefy18/data/main-amd64-default/p3130e470f7e6_sc656f5c1a6/logs/py39-pydantic-yaml-1.2.0.log
                    https://pkg-status.freebsd.org/beefy16/data/132amd64-default/7190d05ec515/logs/py39-pydantic-yaml-1.2.0.log
---
 devel/py-pydantic-yaml/Makefile                   |  3 ++-
 devel/py-pydantic-yaml/files/patch-pyproject.toml | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/devel/py-pydantic-yaml/Makefile b/devel/py-pydantic-yaml/Makefile
index 75dac0ad3999..9f23bd35847b 100644
--- a/devel/py-pydantic-yaml/Makefile
+++ b/devel/py-pydantic-yaml/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pydantic-yaml
 PORTVERSION=	1.2.0
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -19,7 +20,7 @@ BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=4.2.0:devel/py-importl
 		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pydantic2>=2.0.0:devel/py-pydantic2@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}ruamel.yaml>=0.16.0<0.18.0:devel/py-ruamel.yaml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}ruamel.yaml>=0.16.0<0.19.0:devel/py-ruamel.yaml@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.5.0:devel/py-typing-extensions@${PY_FLAVOR}
 
 USES=		python
diff --git a/devel/py-pydantic-yaml/files/patch-pyproject.toml b/devel/py-pydantic-yaml/files/patch-pyproject.toml
new file mode 100644
index 000000000000..42c369297298
--- /dev/null
+++ b/devel/py-pydantic-yaml/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig	2023-09-25 18:54:10 UTC
++++ pyproject.toml
+@@ -26,7 +26,7 @@ classifiers = [
+ ]
+ dependencies = [
+     "pydantic>=1.8",               # including pydantic>=2.0.0!
+-    "ruamel.yaml>=0.16.0,<0.18.0", # recommended ~=0.17.21
++    "ruamel.yaml>=0.16.0,<0.19.0", # recommended ~=0.17.21
+     "importlib_metadata",
+     "typing_extensions>=4.5.0",
+ ]