From nobody Fri Aug 09 20:11:46 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 4WgZnG1vXFz5Spkh; Fri, 09 Aug 2024 20:11:46 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WgZnG1Rhqz4VBB; Fri, 9 Aug 2024 20:11:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723234306; 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=tzHkEimHXTCthUJwfGA7zZQdOio2wW5WBEx8Oagnu2M=; b=cYMgfohEUUZSWKkGC5Rsm0ErlMBuoDeeFvfHwJ9wLhO2ITEkVccde8W0LxesF9Jddee4lm TwepU45A9NoKH4Y6WMbAbtW2kw19ZFfMUzpB5xgwE/HTRbVtqbvYSteKzVh6JiOyOM5K0Q SC7J6YjcltVLE0TbFrzdjuwJHEyN/f/ljjcTMQwnFrcZ5lV8wzCSlJasd2KuYmYwhVoh6d iqw/nN2tlT3PbfR/ZjhvFiaHZ3t6qAgivD0KorITqlpiYfIqi2ua0N8Nh0d4YyzieLSqO+ OnR+p4fqiVYFPiGy4haKRCjsKLwzOIzl+D0SXjdcwFVcXFO0LX+lswMgEYFOhg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723234306; a=rsa-sha256; cv=none; b=DS4Bdarcgw9F50Nmc2XUE790m/g+916IBXSlojVtNwi9C+R4ybqcW+t5oixqR53fCuj3Pf GWgHbXdzY5S6DOxolqOGMiYDTxyP35lkqlwT1awrD2ldeuuqvrIXxGkym+5dSosePuZtfg /nj/+v4iX2afN8ROSwY8khYSDklu5tUbKevORWlCFvt4RwkZs9Hz6EFaSwgzL3KiZz2vcD 448SuhHTNzN6u21xaVftjd7/+dQW+QYBASFNhgsYPjDxi7cbCsIV8q7FBwxYTcTF3d07wz tU4LQDEY8JbSyTE4XpOQ/yQxJpo0PUX+T9ZH6XnQlCwzVIjW4X7jAR1U6LtpsA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723234306; 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=tzHkEimHXTCthUJwfGA7zZQdOio2wW5WBEx8Oagnu2M=; b=jL3p1IkLujc3JsG9lHLeV3Zg747MN3ESui5TQCvxUPip/X9xqKQR5phQc54eH7ztKC3MCd JvyBXMoHnaqjxXD6xh/ZraUSO1b3AIB/5OktsXndw1WO6ca0eoL8BBRD2Cu55nFenTueYL mjxkQUS5j6+Llz81qt9q96OmGvde66R8wDfeBowmNzL0ppGi1wNjYUxZGBHTMxoUhfuchp GVCBW1tvtmZoIi03XoSi/K/+ISN6g89R40pqpTRg5Sw/Y8lqBdR4yindLr6Va99sfl6Uar ti2yow7ksO9Wj3DhuPcdIe/ZF0+/2FHBGPSWkrqp1IOfjfQDAHayoTUvpMeOAQ== 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 4WgZnG0m7SzWcc; Fri, 9 Aug 2024 20:11:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 479KBkHB066372; Fri, 9 Aug 2024 20:11:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 479KBkJQ066369; Fri, 9 Aug 2024 20:11:46 GMT (envelope-from git) Date: Fri, 9 Aug 2024 20:11:46 GMT Message-Id: <202408092011.479KBkJQ066369@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: cdddefd5823b - main - misc/py-ollama: New port: Official Python client for Ollama 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cdddefd5823b91e24a08577a7e3f1622765c72bd Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=cdddefd5823b91e24a08577a7e3f1622765c72bd commit cdddefd5823b91e24a08577a7e3f1622765c72bd Author: Yuri Victorovich AuthorDate: 2024-08-09 18:55:38 +0000 Commit: Yuri Victorovich CommitDate: 2024-08-09 20:11:43 +0000 misc/py-ollama: New port: Official Python client for Ollama --- misc/Makefile | 1 + misc/py-ollama/Makefile | 35 +++++++++++++++++++++++++++++++++++ misc/py-ollama/distinfo | 3 +++ misc/py-ollama/pkg-descr | 2 ++ 4 files changed, 41 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index 22b7c0d472bc..7fb74f1ef16b 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -463,6 +463,7 @@ SUBDIR += py-natten SUBDIR += py-npTDMS SUBDIR += py-numcodecs + SUBDIR += py-ollama SUBDIR += py-onnx SUBDIR += py-onnx-tf SUBDIR += py-openai diff --git a/misc/py-ollama/Makefile b/misc/py-ollama/Makefile new file mode 100644 index 000000000000..01511c08556d --- /dev/null +++ b/misc/py-ollama/Makefile @@ -0,0 +1,35 @@ +PORTNAME= ollama +DISTVERSIONPREFIX= v +DISTVERSION= 0.3.1 +CATEGORIES= misc # machine-learning +#MASTER_SITES= PYPI # no tests +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Official Python client for Ollama +WWW= https://ollama.com/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httpx>=0.27.0<1:www/py-httpx@${PY_FLAVOR} +TEST_DEPENDS= ${PY_PILLOW} \ + ${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=0.23.2:devel/py-pytest-asyncio@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-cov>=4.1:devel/py-pytest-cov@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-httpserver>=0:devel/py-pytest-httpserver@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 concurrent autoplist pytest # tests fail because api_key needs to be set + +USE_GITHUB= yes +GH_PROJECT= ollama-python + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +NO_ARCH= yes + +post-patch: # workaround for https://github.com/ollama/ollama-python/issues/249 + @${REINPLACE_CMD} -e 's|version = "0.0.0"|version = "${PORTVERSION}"|' ${WRKSRC}/pyproject.toml + +.include diff --git a/misc/py-ollama/distinfo b/misc/py-ollama/distinfo new file mode 100644 index 000000000000..bc02a3ccda1b --- /dev/null +++ b/misc/py-ollama/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1723226455 +SHA256 (ollama-ollama-python-v0.3.1_GH0.tar.gz) = 7422a9b7aded3ee7227d2ede38ccee98538be37f7947adc8f3083cd23dfeb3c9 +SIZE (ollama-ollama-python-v0.3.1_GH0.tar.gz) = 31971 diff --git a/misc/py-ollama/pkg-descr b/misc/py-ollama/pkg-descr new file mode 100644 index 000000000000..742400d1cb6b --- /dev/null +++ b/misc/py-ollama/pkg-descr @@ -0,0 +1,2 @@ +The Ollama Python library provides the easiest way to integrate Python +projects with Ollama.