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,27 +1,28 @@ PORTNAME= instructor DISTVERSION= 0.4.8 +PORTREVISION= 1 CATEGORIES= misc python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= tagattie@FreeBSD.org COMMENT= Structured outputs for llms WWW= https://github.com/jxnl/instructor 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} \ - ${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} USES= python USE_PYTHON= autoplist pep517 NO_ARCH= yes .include 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" +