git: e402551f485b - 2025Q2 - misc/py-instructor: update to 1.7.9

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Sat, 17 May 2025 12:05:29 UTC
The branch 2025Q2 has been updated by tagattie:

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

commit e402551f485b20f1fb5cd41ce01065622be5f1f7
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2025-04-16 12:09:24 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2025-05-17 12:05:23 +0000

    misc/py-instructor: update to 1.7.9
    
    While here, update WWW.
    
    Changelog:
    - https://github.com/instructor-ai/instructor/releases/tag/1.0.0
    - https://github.com/instructor-ai/instructor/releases/tag/1.0.1
    - https://github.com/instructor-ai/instructor/releases/tag/1.0.2
    - https://github.com/instructor-ai/instructor/releases/tag/1.0.3
    - https://github.com/instructor-ai/instructor/releases/tag/1.1.0
    - https://github.com/instructor-ai/instructor/releases/tag/1.2.0
    - https://github.com/instructor-ai/instructor/releases/tag/1.2.1
    - https://github.com/instructor-ai/instructor/releases/tag/1.2.2
    - https://github.com/instructor-ai/instructor/releases/tag/1.2.3
    - https://github.com/instructor-ai/instructor/releases/tag/1.2.4
    - https://github.com/instructor-ai/instructor/releases/tag/1.2.5
    - https://github.com/instructor-ai/instructor/releases/tag/1.2.6
    - https://github.com/instructor-ai/instructor/releases/tag/1.3.0
    - https://github.com/instructor-ai/instructor/releases/tag/1.3.1
    - https://github.com/instructor-ai/instructor/releases/tag/1.3.2
    - https://github.com/instructor-ai/instructor/releases/tag/1.3.3
    - https://github.com/instructor-ai/instructor/releases/tag/1.3.4
    - https://github.com/instructor-ai/instructor/releases/tag/1.3.5
    - https://github.com/instructor-ai/instructor/releases/tag/1.3.7
    - https://github.com/instructor-ai/instructor/releases/tag/1.4.0
    - https://github.com/instructor-ai/instructor/releases/tag/1.4.1
    - https://github.com/instructor-ai/instructor/releases/tag/1.4.2
    - https://github.com/instructor-ai/instructor/releases/tag/1.4.3
    - https://github.com/instructor-ai/instructor/releases/tag/1.5.0
    - https://github.com/instructor-ai/instructor/releases/tag/1.5.1
    - https://github.com/instructor-ai/instructor/releases/tag/1.5.2
    - https://github.com/instructor-ai/instructor/releases/tag/1.6.0
    - https://github.com/instructor-ai/instructor/releases/tag/1.6.1
    - https://github.com/instructor-ai/instructor/releases/tag/1.6.2
    - https://github.com/instructor-ai/instructor/releases/tag/1.6.3
    - https://github.com/instructor-ai/instructor/releases/tag/1.6.4
    - https://github.com/instructor-ai/instructor/releases/tag/1.7.0
    - https://github.com/instructor-ai/instructor/releases/tag/1.7.1
    - https://github.com/instructor-ai/instructor/releases/tag/1.7.2
    - https://github.com/instructor-ai/instructor/releases/tag/1.7.3
    - https://github.com/instructor-ai/instructor/releases/tag/1.7.4
    - https://github.com/instructor-ai/instructor/releases/tag/1.7.5
    - https://github.com/instructor-ai/instructor/releases/tag/1.7.6
    - https://github.com/instructor-ai/instructor/releases/tag/1.7.7
    - https://github.com/instructor-ai/instructor/releases/tag/1.7.8
    - https://github.com/instructor-ai/instructor/releases/tag/1.7.9
    
    (cherry picked from commit 9e1984d8412588d6c56fd078dbb99e96011a39d5)
---
 misc/py-instructor/Makefile                   | 19 +++++++++++--------
 misc/py-instructor/distinfo                   |  6 +++---
 misc/py-instructor/files/patch-pyproject.toml | 13 -------------
 3 files changed, 14 insertions(+), 24 deletions(-)

diff --git a/misc/py-instructor/Makefile b/misc/py-instructor/Makefile
index 4bd05618510c..589c6aa10009 100644
--- a/misc/py-instructor/Makefile
+++ b/misc/py-instructor/Makefile
@@ -1,25 +1,28 @@
 PORTNAME=	instructor
-DISTVERSION=	0.6.8
-PORTREVISION=	2
+DISTVERSION=	1.7.9
 CATEGORIES=	misc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	tagattie@FreeBSD.org
 COMMENT=	Structured outputs for llms
-WWW=		https://github.com/jxnl/instructor
+WWW=		https://python.useinstructor.com/
 
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR}
-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} \
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}openai>=1.52.0<2.0.0:misc/py-openai@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pydantic2>=2.8.0<3.0.0:devel/py-pydantic2@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}docstring_parser>=0.16<1.0:textproc/py-docstring_parser@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}typer>=0.9.0<1.0.0:devel/py-typer@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}rich>=13.7.0:textproc/py-rich@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}aiohttp>=3.9.1<4.0.0:www/py-aiohttp@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}tenacity8>=8.2.3<9.0.0:devel/py-tenacity8@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}tenacity>=9.0.0<10.0.0:devel/py-tenacity@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pydantic-core>=2.18.0<3.0.0:devel/py-pydantic-core@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}jiter>=0.6.1:textproc/py-jiter@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}Jinja2>=3.1.4<4.0.0:devel/py-Jinja2@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=2.32.3<3.0.0:www/py-requests@${PY_FLAVOR}
 
 USES=		python
 USE_PYTHON=	autoplist pep517
diff --git a/misc/py-instructor/distinfo b/misc/py-instructor/distinfo
index 5b8f75ba2f21..4817d4ae95ac 100644
--- a/misc/py-instructor/distinfo
+++ b/misc/py-instructor/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1717403453
-SHA256 (instructor-0.6.8.tar.gz) = e261d73deb3535d62ee775c437b82aeb6e9c2b2f63bb533b53a9fa6a47dbb95a
-SIZE (instructor-0.6.8.tar.gz) = 34352
+TIMESTAMP = 1744710464
+SHA256 (instructor-1.7.9.tar.gz) = 3b7ff9119b386ebdc3c683a8af3c6461f424b9d80795d5e12676990b8379dd8a
+SIZE (instructor-1.7.9.tar.gz) = 69063860
diff --git a/misc/py-instructor/files/patch-pyproject.toml b/misc/py-instructor/files/patch-pyproject.toml
deleted file mode 100644
index b5a7f6a310c0..000000000000
--- a/misc/py-instructor/files/patch-pyproject.toml
+++ /dev/null
@@ -1,13 +0,0 @@
-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"
-