git: f4ab72f99290 - main - misc/py-openai: update runtime dependency on py-pydantic to py-pydantic2

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Sat, 03 Feb 2024 06:01:52 UTC
The branch main has been updated by tagattie:

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

commit f4ab72f99290a7069080a9a0abd23442bac3aee4
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2024-02-03 05:57:38 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2024-02-03 06:01:37 +0000

    misc/py-openai: update runtime dependency on py-pydantic to py-pydantic2
    
    misc/py-shell-gpt (one of the dependent ports on py-openai) has the
    following dependency graph:
    
    misc/py-shell-gpt -> misc/py-instructor -> devel/py-pydantic2
                         (pyproject.toml contains pydantic = "^2.0.2")
                      -> misc/py-openai -> devel/py-pydantic
                         (pyproject.toml contains "pydantic>=1.9.0, <3")
    
    Updating the dependency of py-openai to py-pydantic2 satisfies both
    requirements at the same time.
    
    PR:             276548
    Approved by:    yuri (maintainer)
---
 misc/py-openai/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/misc/py-openai/Makefile b/misc/py-openai/Makefile
index 39099b49424d..7705ebd74712 100644
--- a/misc/py-openai/Makefile
+++ b/misc/py-openai/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	openai
 DISTVERSION=	1.9.0
+PORTREVISION=	1
 CATEGORIES=	misc # machine-learning
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -18,7 +19,7 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}aiohttp>0:www/py-aiohttp@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}cached-property>0:devel/py-cached-property@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}anyio>=3.5.0:devel/py-anyio@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}httpx>=0.23.0<1:www/py-httpx@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pydantic>=1.9.0:devel/py-pydantic@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pydantic2>=1.9.0<3:devel/py-pydantic2@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests>=2.20:www/py-requests@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}tqdm>4:misc/py-tqdm@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.7:devel/py-typing-extensions@${PY_FLAVOR}