Skip to content

Commit

Permalink
devel/py-gptscript: Add new port
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nivit committed Apr 5, 2024
1 parent 110a32a commit 43d3dde
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -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
Expand Down
33 changes: 33 additions & 0 deletions 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 <bsd.port.mk>
3 changes: 3 additions & 0 deletions 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
3 changes: 3 additions & 0 deletions 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.

0 comments on commit 43d3dde

Please sign in to comment.