From nobody Fri Jan 12 07:29:52 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TBCq52VVBz56FLq; Fri, 12 Jan 2024 07:29:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TBCq50QR8z4NYq; Fri, 12 Jan 2024 07:29:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705044593; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9CQRBOPrwXu9Pi2zRDsiMsitgl0pqgXWa4xhFUAAakg=; b=ZAu5Tk64lSNgeNkhjUdpCi8QwF/muIqTXqSS8xkYLEu41L/ePugnKh2M8zXrx0Ccc1i6YA BfRKM6GI/VHejj6D9WmD0E5bLkgiejdnJK9GKgAYS8LTNiHw7PAJAATh9pXj6EuRDaL7DG yHekX323WsnlSHwuOvfP3eq0zcjr5Bw8LW+ugBUs7t00c5trq9ytGA+sM8xUW4MsGwMAW8 YygpFFh9+pwohFEDPvCIvgr37NqknSSS8+psKQy2zK6CexkvSayi/NO8/uZYGj+GWckh2i Gi/db92xFTLkobLqQum9mPB+/wzLfbnuv+VvVhAYjYPJD9cvJTmxsicTNuzrAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705044593; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9CQRBOPrwXu9Pi2zRDsiMsitgl0pqgXWa4xhFUAAakg=; b=wKzTqgmZLiiit4AbpeG80PRIU0XoEesko4mQefzwJigMZ1/cavhY+Ao+C4PyTQMsYcMDI4 TvKDauGTn6E4PlwAat99hdYlzVLfrZ4v5EtTtKb445Mqj3mA5M6KlQ4hZ1tlr0u8wsCh2F mtOO4BN6iBxHessUriDFIbwO96ScpEU7XiteBGI0uf0YLxwq/5cbOUzmabafOOtyxy/Uj8 YMLzyNkyVtzjpYW8xlYjS1/kMPMGO7v6nP4hF/X3JJDWGzCV12uLiT9Ma5Nk4W3s6f6HPv k1qhWPthxU5XvnsHzZG5U0sKHoGzMLBrWUaR0DVDOkiKud60f30G6G774/IeUQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705044593; a=rsa-sha256; cv=none; b=Wn8nT9s90O1UQBuA3ZsnXY3mk858WLmltwz8NE0bw0EgaoMdBE42OujEvlImvcAAoScixl OHH8tmZul9ouhYA2vzr2PoOGUc+4P7jRnVY3JlHj/rcPpr6gz30LuMx8RcxFtxzxKW0iBm qK4SnAQXIUwbhlZJ+rfW/uCnBeBJN9D408I+sTo7dyeNCSvrJnY7PsbZhciNKBWv+e1D4o IH/u1JBGkxQWUCzuPHeAAE5IF7Z1txiAazGx/VgSEP2NTwsVogv2njR4dFY+d2vioA92zT 5a1L6UcU4hT+1L1pr313cE1jAx87EWzJpIRI7bksnwsUUtTTGMb5GWN9fQYu3g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TBCq46bw1zsP4; Fri, 12 Jan 2024 07:29:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40C7Tq59034280; Fri, 12 Jan 2024 07:29:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40C7Tqvv034277; Fri, 12 Jan 2024 07:29:52 GMT (envelope-from git) Date: Fri, 12 Jan 2024 07:29:52 GMT Message-Id: <202401120729.40C7Tqvv034277@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Hiroki Tagato Subject: git: ce37f9f1bd34 - main - misc/py-instructor: add port: Structured outputs for llms List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tagattie X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ce37f9f1bd3475002d3e38f46454be198ce4ffa1 Auto-Submitted: auto-generated The branch main has been updated by tagattie: URL: https://cgit.FreeBSD.org/ports/commit/?id=ce37f9f1bd3475002d3e38f46454be198ce4ffa1 commit ce37f9f1bd3475002d3e38f46454be198ce4ffa1 Author: Hiroki Tagato AuthorDate: 2024-01-12 07:28:19 +0000 Commit: Hiroki Tagato CommitDate: 2024-01-12 07:29:41 +0000 misc/py-instructor: add port: Structured outputs for llms Structured extraction in Python, powered by OpenAI's function calling API, designed for simplicity, transparency, and control. Dive into the world of Python-based structured extraction, empowered by OpenAI's cutting-edge function calling API. Instructor stands out for its simplicity, transparency, and user-centric design. Whether you're a seasoned developer or just starting out, you'll find Instructor's approach intuitive and its results insightful. WWW: https://github.com/jxnl/instructor --- misc/Makefile | 1 + misc/py-instructor/Makefile | 27 +++++++++++++++++++++++++++ misc/py-instructor/distinfo | 3 +++ misc/py-instructor/pkg-descr | 8 ++++++++ 4 files changed, 39 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index 25cfe2f8a443..219cd07ac295 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -428,6 +428,7 @@ SUBDIR += py-histoprint SUBDIR += py-huepy SUBDIR += py-icoextract + SUBDIR += py-instructor SUBDIR += py-ipyfastscape SUBDIR += py-kartograph SUBDIR += py-laspy diff --git a/misc/py-instructor/Makefile b/misc/py-instructor/Makefile new file mode 100644 index 000000000000..4ff68f5f62ac --- /dev/null +++ b/misc/py-instructor/Makefile @@ -0,0 +1,27 @@ +PORTNAME= instructor +DISTVERSION= 0.4.6 +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}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/distinfo b/misc/py-instructor/distinfo new file mode 100644 index 000000000000..41ffb8441f1c --- /dev/null +++ b/misc/py-instructor/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1704884273 +SHA256 (instructor-0.4.6.tar.gz) = 5b044ca71b1b750409b654013ed59299b1acd74d5bc932ecba725f50406afa9f +SIZE (instructor-0.4.6.tar.gz) = 23751 diff --git a/misc/py-instructor/pkg-descr b/misc/py-instructor/pkg-descr new file mode 100644 index 000000000000..abf54f630645 --- /dev/null +++ b/misc/py-instructor/pkg-descr @@ -0,0 +1,8 @@ +Structured extraction in Python, powered by OpenAI's function calling +API, designed for simplicity, transparency, and control. + +Dive into the world of Python-based structured extraction, empowered +by OpenAI's cutting-edge function calling API. Instructor stands out +for its simplicity, transparency, and user-centric design. Whether +you're a seasoned developer or just starting out, you'll find +Instructor's approach intuitive and its results insightful.