From 43d3dde64f5ae9044d6279028d3fc5b25d82481f Mon Sep 17 00:00:00 2001 From: Nicola Vitale Date: Fri, 5 Apr 2024 11:34:46 +0200 Subject: [PATCH] devel/py-gptscript: Add new port The GPTScript Python module is a library that provides a simple interface to create and run gptscripts within Python applications, and Jupyter notebooks. It allows you to define tools, execute them, and process the responses. https://github.com/gptscript-ai/py-gptscript --- devel/Makefile | 1 + devel/py-gptscript/Makefile | 33 +++++++++++++++++++++++++++++++++ devel/py-gptscript/distinfo | 3 +++ devel/py-gptscript/pkg-descr | 3 +++ 4 files changed, 40 insertions(+) create mode 100644 devel/py-gptscript/Makefile create mode 100644 devel/py-gptscript/distinfo create mode 100644 devel/py-gptscript/pkg-descr diff --git a/devel/Makefile b/devel/Makefile index 6fe17bf06f032..198365e2e022e 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4789,6 +4789,7 @@ SUBDIR += py-google-pasta SUBDIR += py-google-re2 SUBDIR += py-googleapis-common-protos + SUBDIR += py-gptscript SUBDIR += py-gpxpy SUBDIR += py-grab SUBDIR += py-graphene diff --git a/devel/py-gptscript/Makefile b/devel/py-gptscript/Makefile new file mode 100644 index 0000000000000..d7f34cbb30180 --- /dev/null +++ b/devel/py-gptscript/Makefile @@ -0,0 +1,33 @@ +PORTNAME= gptscript +DISTVERSIONPREFIX= v +DISTVERSION= 0.4.1 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= nivit@FreeBSD.org +COMMENT= Python module for running GPTScript +WWW= https://github.com/gptscript-ai/py-gptscript/ + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=40.9.0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0.43.0:devel/py-wheel@${PY_FLAVOR} + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}certifi>=2024.2.2:security/py-certifi@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}charset-normalizer>=3.3.2:textproc/py-charset-normalizer@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}idna>=3.6:dns/py-idna@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>=2.31.0:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tqdm>=4.66.2:misc/py-tqdm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}urllib3>=2.2.1:net/py-urllib3@${PY_FLAVOR} \ + gptscript:lang/gptscript + +USES= python +USE_GITHUB= yes + +GH_ACCOUNT= gptscript-ai +GH_PROJECT= py-gptscript +USE_PYTHON= autoplist pep517 + +.include diff --git a/devel/py-gptscript/distinfo b/devel/py-gptscript/distinfo new file mode 100644 index 0000000000000..55b252d1b0409 --- /dev/null +++ b/devel/py-gptscript/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1712308094 +SHA256 (gptscript-ai-py-gptscript-v0.4.1_GH0.tar.gz) = 01efa3cd5899aa8d4bdcd1ac1c49837b85d2074a1a1c5061a12d93f049056d66 +SIZE (gptscript-ai-py-gptscript-v0.4.1_GH0.tar.gz) = 12759 diff --git a/devel/py-gptscript/pkg-descr b/devel/py-gptscript/pkg-descr new file mode 100644 index 0000000000000..e3f998773d0c6 --- /dev/null +++ b/devel/py-gptscript/pkg-descr @@ -0,0 +1,3 @@ +The GPTScript Python module is a library that provides a simple interface to +create and run gptscripts within Python applications, and Jupyter notebooks. It +allows you to define tools, execute them, and process the responses.