git: 2ce62c36eb03 - main - misc/py-openai: New port: Python client library for the OpenAI API
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 28 Feb 2023 01:29:40 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=2ce62c36eb03c90b5418de1d548a1add4c25ec00 commit 2ce62c36eb03c90b5418de1d548a1add4c25ec00 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2023-02-28 01:29:07 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2023-02-28 01:29:36 +0000 misc/py-openai: New port: Python client library for the OpenAI API --- misc/Makefile | 1 + misc/py-openai/Makefile | 23 +++++++++++++++++++++++ misc/py-openai/distinfo | 3 +++ misc/py-openai/pkg-descr | 2 ++ 4 files changed, 29 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index e1e00528cb12..d3bbfe709910 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -422,6 +422,7 @@ SUBDIR += py-numcodecs SUBDIR += py-onnx SUBDIR += py-onnx-tf + SUBDIR += py-openai SUBDIR += py-openpaperwork-core SUBDIR += py-openpaperwork-gtk SUBDIR += py-openvdb diff --git a/misc/py-openai/Makefile b/misc/py-openai/Makefile new file mode 100644 index 000000000000..712b849f5932 --- /dev/null +++ b/misc/py-openai/Makefile @@ -0,0 +1,23 @@ +PORTNAME= openai +DISTVERSION= 0.26.5 +CATEGORIES= misc # mechine-learning +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Python client library for the OpenAI API +WWW= https://github.com/openai/openai-python + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wandb>0:misc/py-wandb@${PY_FLAVOR} + +USES= python +USE_PYTHON= pep517 autoplist + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/misc/py-openai/distinfo b/misc/py-openai/distinfo new file mode 100644 index 000000000000..6777e46e7e7a --- /dev/null +++ b/misc/py-openai/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1677544433 +SHA256 (openai-0.26.5.tar.gz) = 2882a59c67ae33c2716a04389a6e6680d061f073424953732f917fde219addfd +SIZE (openai-0.26.5.tar.gz) = 55501 diff --git a/misc/py-openai/pkg-descr b/misc/py-openai/pkg-descr new file mode 100644 index 000000000000..735bb97bc2ac --- /dev/null +++ b/misc/py-openai/pkg-descr @@ -0,0 +1,2 @@ +The OpenAI Python library provides convenient access to the OpenAI API from +applications written in the Python language.