git: 5f95f20d4418 - main - misc/py-instructor: Allow build with py-typer 0.10.0+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 19 May 2024 17:37:43 UTC
The branch main has been updated by sunpoet:

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

commit 5f95f20d4418546741a3e04ea731afe55cc4c01b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-19 16:29:48 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-19 17:18:32 +0000

    misc/py-instructor: Allow build with py-typer 0.10.0+
    
    - Bump PORTREVISION for package change
    
    Obtained from:  https://github.com/jxnl/instructor/commit/c6273700c9ef7eea4acb88ac9eebb559d300a6a2
    Approved by:    tagattie (maintainer, via private mail)
---
 misc/py-instructor/Makefile                   |  3 ++-
 misc/py-instructor/files/patch-pyproject.toml | 13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/misc/py-instructor/Makefile b/misc/py-instructor/Makefile
index fe99d271b042..ff825e0c3b57 100644
--- a/misc/py-instructor/Makefile
+++ b/misc/py-instructor/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	instructor
 DISTVERSION=	0.4.8
+PORTREVISION=	1
 CATEGORIES=	misc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -15,7 +16,7 @@ BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FL
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}openai>=1.1.0<2.0.0:misc/py-openai@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pydantic2>=2.0.2<3.0.0:devel/py-pydantic2@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}docstring-parser>=0.15<0.16:textproc/py-docstring-parser@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}typer>=0.9.0<0.10.0:devel/py-typer@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}typer>=0.9.0<1.0.0:devel/py-typer@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}rich>=13.7.0<14.0.0:textproc/py-rich@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}aiohttp>=3.9.1<4.0.0:www/py-aiohttp@${PY_FLAVOR}
 
diff --git a/misc/py-instructor/files/patch-pyproject.toml b/misc/py-instructor/files/patch-pyproject.toml
new file mode 100644
index 000000000000..b5a7f6a310c0
--- /dev/null
+++ b/misc/py-instructor/files/patch-pyproject.toml
@@ -0,0 +1,13 @@
+Obtained from:	https://github.com/jxnl/instructor/commit/c6273700c9ef7eea4acb88ac9eebb559d300a6a2
+
+--- pyproject.toml.orig	2024-01-23 17:39:46 UTC
++++ pyproject.toml
+@@ -13,7 +13,7 @@ docstring-parser = "^0.15"
+ openai = "^1.1.0"
+ pydantic = "^2.0.2"
+ docstring-parser = "^0.15"
+-typer = "^0.9.0"
++typer = ">=0.9.0,<1.0.0"
+ rich = "^13.7.0"
+ aiohttp = "^3.9.1"
+