pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-openai: Import py-openai-0.27.6



Module Name:	pkgsrc-wip
Committed By:	Min S. Kim <minskim%NetBSD.org@localhost>
Pushed By:	minskim
Date:		Tue May 2 16:08:04 2023 -0700
Changeset:	67f39a78d9d1db8a3f6d5b3d8db788f97bad23a1

Modified Files:
	Makefile
Added Files:
	py-openai/ALTERNATIVES
	py-openai/DESCR
	py-openai/Makefile
	py-openai/PLIST
	py-openai/distinfo

Log Message:
py-openai: Import py-openai-0.27.6

The OpenAI Python library provides convenient access to the OpenAI API
from applications written in the Python language. It includes a
pre-defined set of classes for API resources that initialize
themselves dynamically from API responses which makes it compatible
with a wide range of versions of the OpenAI API.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=67f39a78d9d1db8a3f6d5b3d8db788f97bad23a1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile               |   1 +
 py-openai/ALTERNATIVES |   1 +
 py-openai/DESCR        |   5 +++
 py-openai/Makefile     |  36 +++++++++++++++
 py-openai/PLIST        | 119 +++++++++++++++++++++++++++++++++++++++++++++++++
 py-openai/distinfo     |   5 +++
 6 files changed, 167 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index f60bb5ed3e..2669978322 100644
--- a/Makefile
+++ b/Makefile
@@ -4279,6 +4279,7 @@ SUBDIR+=	py-odeviz
 SUBDIR+=	py-okasha
 SUBDIR+=	py-okpy
 SUBDIR+=	py-ontopy
+SUBDIR+=	py-openai
 SUBDIR+=	py-openastro
 SUBDIR+=	py-openopt
 SUBDIR+=	py-opensimplex
diff --git a/py-openai/ALTERNATIVES b/py-openai/ALTERNATIVES
new file mode 100644
index 0000000000..92102959fd
--- /dev/null
+++ b/py-openai/ALTERNATIVES
@@ -0,0 +1 @@
+bin/openai @PREFIX@/bin/openai-@PYVERSSUFFIX@
diff --git a/py-openai/DESCR b/py-openai/DESCR
new file mode 100644
index 0000000000..22d2fa3256
--- /dev/null
+++ b/py-openai/DESCR
@@ -0,0 +1,5 @@
+The OpenAI Python library provides convenient access to the OpenAI API
+from applications written in the Python language. It includes a
+pre-defined set of classes for API resources that initialize
+themselves dynamically from API responses which makes it compatible
+with a wide range of versions of the OpenAI API.
diff --git a/py-openai/Makefile b/py-openai/Makefile
new file mode 100644
index 0000000000..8fa90bf52b
--- /dev/null
+++ b/py-openai/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD$
+
+DISTNAME=	openai-0.27.6
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=	math python
+MASTER_SITES=	${MASTER_SITE_PYPI:=o/openai/}
+
+MAINTAINER=	minskim%NetBSD.org@localhost
+HOMEPAGE=	https://pypi.org/project/openai/
+COMMENT=	OpenAI Python Library
+LICENSE=	mit
+
+TOOL_DEPENDS+=	${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
+DEPENDS+=	${PYPKGPREFIX}-aiohttp-[0-9]*:../../www/py-aiohttp
+DEPENDS+=	${PYPKGPREFIX}-matplotlib-[0-9]*:../../graphics/py-matplotlib
+DEPENDS+=	${PYPKGPREFIX}-numpy-[0-9]*:../../math/py-numpy
+DEPENDS+=	${PYPKGPREFIX}-openpyxl>=3.0.7:../../textproc/py-openpyxl
+DEPENDS+=	${PYPKGPREFIX}-pandas>=1.2.3:../../math/py-pandas
+#DEPENDS+=	${PYPKGPREFIX}-plotly-[0-9]*:../../graphics/py-plotly
+DEPENDS+=	${PYPKGPREFIX}-requests>=2.20:../../devel/py-requests
+#DEPENDS+=	${PYPKGPREFIX}-scikit-learn>=1.0.2:../../math/py-scikit-learn
+DEPENDS+=	${PYPKGPREFIX}-scipy-[0-9]*:../../math/py-scipy
+DEPENDS+=	${PYPKGPREFIX}-tenacity>=8.0.1:../../devel/py-tenacity
+DEPENDS+=	${PYPKGPREFIX}-tqdm-[0-9]*:../../misc/py-tqdm
+DEPENDS+=	${PYPKGPREFIX}-typing-extensions-[0-9]*:../../devel/py-typing-extensions
+#DEPENDS+=	${PYPKGPREFIX}-wandb-[0-9]*:../../math/py-wandb
+
+USE_LANGUAGES=	# none
+
+PYTHON_VERSIONS_INCOMPATIBLE=	27 37 # py-scipy
+
+post-install:
+	${MV} ${DESTDIR}${PREFIX}/bin/openai ${DESTDIR}${PREFIX}/bin/openai-${PYVERSSUFFIX}
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-openai/PLIST b/py-openai/PLIST
new file mode 100644
index 0000000000..bc8ac4bd6d
--- /dev/null
+++ b/py-openai/PLIST
@@ -0,0 +1,119 @@
+@comment $NetBSD$
+bin/openai-${PYVERSSUFFIX}
+${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/${WHEEL_INFODIR}/zip-safe
+${PYSITELIB}/openai/__init__.py
+${PYSITELIB}/openai/__init__.pyc
+${PYSITELIB}/openai/_openai_scripts.py
+${PYSITELIB}/openai/_openai_scripts.pyc
+${PYSITELIB}/openai/api_requestor.py
+${PYSITELIB}/openai/api_requestor.pyc
+${PYSITELIB}/openai/api_resources/__init__.py
+${PYSITELIB}/openai/api_resources/__init__.pyc
+${PYSITELIB}/openai/api_resources/abstract/__init__.py
+${PYSITELIB}/openai/api_resources/abstract/__init__.pyc
+${PYSITELIB}/openai/api_resources/abstract/api_resource.py
+${PYSITELIB}/openai/api_resources/abstract/api_resource.pyc
+${PYSITELIB}/openai/api_resources/abstract/createable_api_resource.py
+${PYSITELIB}/openai/api_resources/abstract/createable_api_resource.pyc
+${PYSITELIB}/openai/api_resources/abstract/deletable_api_resource.py
+${PYSITELIB}/openai/api_resources/abstract/deletable_api_resource.pyc
+${PYSITELIB}/openai/api_resources/abstract/engine_api_resource.py
+${PYSITELIB}/openai/api_resources/abstract/engine_api_resource.pyc
+${PYSITELIB}/openai/api_resources/abstract/listable_api_resource.py
+${PYSITELIB}/openai/api_resources/abstract/listable_api_resource.pyc
+${PYSITELIB}/openai/api_resources/abstract/nested_resource_class_methods.py
+${PYSITELIB}/openai/api_resources/abstract/nested_resource_class_methods.pyc
+${PYSITELIB}/openai/api_resources/abstract/updateable_api_resource.py
+${PYSITELIB}/openai/api_resources/abstract/updateable_api_resource.pyc
+${PYSITELIB}/openai/api_resources/audio.py
+${PYSITELIB}/openai/api_resources/audio.pyc
+${PYSITELIB}/openai/api_resources/chat_completion.py
+${PYSITELIB}/openai/api_resources/chat_completion.pyc
+${PYSITELIB}/openai/api_resources/completion.py
+${PYSITELIB}/openai/api_resources/completion.pyc
+${PYSITELIB}/openai/api_resources/customer.py
+${PYSITELIB}/openai/api_resources/customer.pyc
+${PYSITELIB}/openai/api_resources/deployment.py
+${PYSITELIB}/openai/api_resources/deployment.pyc
+${PYSITELIB}/openai/api_resources/edit.py
+${PYSITELIB}/openai/api_resources/edit.pyc
+${PYSITELIB}/openai/api_resources/embedding.py
+${PYSITELIB}/openai/api_resources/embedding.pyc
+${PYSITELIB}/openai/api_resources/engine.py
+${PYSITELIB}/openai/api_resources/engine.pyc
+${PYSITELIB}/openai/api_resources/error_object.py
+${PYSITELIB}/openai/api_resources/error_object.pyc
+${PYSITELIB}/openai/api_resources/experimental/__init__.py
+${PYSITELIB}/openai/api_resources/experimental/__init__.pyc
+${PYSITELIB}/openai/api_resources/experimental/completion_config.py
+${PYSITELIB}/openai/api_resources/experimental/completion_config.pyc
+${PYSITELIB}/openai/api_resources/file.py
+${PYSITELIB}/openai/api_resources/file.pyc
+${PYSITELIB}/openai/api_resources/fine_tune.py
+${PYSITELIB}/openai/api_resources/fine_tune.pyc
+${PYSITELIB}/openai/api_resources/image.py
+${PYSITELIB}/openai/api_resources/image.pyc
+${PYSITELIB}/openai/api_resources/model.py
+${PYSITELIB}/openai/api_resources/model.pyc
+${PYSITELIB}/openai/api_resources/moderation.py
+${PYSITELIB}/openai/api_resources/moderation.pyc
+${PYSITELIB}/openai/cli.py
+${PYSITELIB}/openai/cli.pyc
+${PYSITELIB}/openai/datalib/__init__.py
+${PYSITELIB}/openai/datalib/__init__.pyc
+${PYSITELIB}/openai/datalib/common.py
+${PYSITELIB}/openai/datalib/common.pyc
+${PYSITELIB}/openai/datalib/numpy_helper.py
+${PYSITELIB}/openai/datalib/numpy_helper.pyc
+${PYSITELIB}/openai/datalib/pandas_helper.py
+${PYSITELIB}/openai/datalib/pandas_helper.pyc
+${PYSITELIB}/openai/embeddings_utils.py
+${PYSITELIB}/openai/embeddings_utils.pyc
+${PYSITELIB}/openai/error.py
+${PYSITELIB}/openai/error.pyc
+${PYSITELIB}/openai/object_classes.py
+${PYSITELIB}/openai/object_classes.pyc
+${PYSITELIB}/openai/openai_object.py
+${PYSITELIB}/openai/openai_object.pyc
+${PYSITELIB}/openai/openai_response.py
+${PYSITELIB}/openai/openai_response.pyc
+${PYSITELIB}/openai/py.typed
+${PYSITELIB}/openai/tests/__init__.py
+${PYSITELIB}/openai/tests/__init__.pyc
+${PYSITELIB}/openai/tests/asyncio/__init__.py
+${PYSITELIB}/openai/tests/asyncio/__init__.pyc
+${PYSITELIB}/openai/tests/asyncio/test_endpoints.py
+${PYSITELIB}/openai/tests/asyncio/test_endpoints.pyc
+${PYSITELIB}/openai/tests/test_api_requestor.py
+${PYSITELIB}/openai/tests/test_api_requestor.pyc
+${PYSITELIB}/openai/tests/test_endpoints.py
+${PYSITELIB}/openai/tests/test_endpoints.pyc
+${PYSITELIB}/openai/tests/test_exceptions.py
+${PYSITELIB}/openai/tests/test_exceptions.pyc
+${PYSITELIB}/openai/tests/test_file_cli.py
+${PYSITELIB}/openai/tests/test_file_cli.pyc
+${PYSITELIB}/openai/tests/test_long_examples_validator.py
+${PYSITELIB}/openai/tests/test_long_examples_validator.pyc
+${PYSITELIB}/openai/tests/test_url_composition.py
+${PYSITELIB}/openai/tests/test_url_composition.pyc
+${PYSITELIB}/openai/tests/test_util.py
+${PYSITELIB}/openai/tests/test_util.pyc
+${PYSITELIB}/openai/upload_progress.py
+${PYSITELIB}/openai/upload_progress.pyc
+${PYSITELIB}/openai/util.py
+${PYSITELIB}/openai/util.pyc
+${PYSITELIB}/openai/validators.py
+${PYSITELIB}/openai/validators.pyc
+${PYSITELIB}/openai/version.py
+${PYSITELIB}/openai/version.pyc
+${PYSITELIB}/openai/wandb_logger.py
+${PYSITELIB}/openai/wandb_logger.pyc
diff --git a/py-openai/distinfo b/py-openai/distinfo
new file mode 100644
index 0000000000..f57d3e3e2f
--- /dev/null
+++ b/py-openai/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (openai-0.27.6.tar.gz) = 91cde71702c987f41db3b2494276579ff578f430f34aeef9d3554b723db237a2
+SHA512 (openai-0.27.6.tar.gz) = b25c43b440d5f4f64b19c33a3fb5c9ff01a899f4a7f4ec1bc3c747e5e4372b0f17d5d621d1687ce632a13ed003a5244316b41b707eca17f8425c39b15a5f3c91
+Size (openai-0.27.6.tar.gz) = 58556 bytes


Home | Main Index | Thread Index | Old Index