forked from pool/python-openai
Accepting request 1061125 from system:homeautomation:home-assistant
openai binding package OBS-URL: https://build.opensuse.org/request/show/1061125 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openai?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
openai-python-0.26.2.tar.gz
Normal file
3
openai-python-0.26.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a591bd126ac8da0dc479895db7383cc4d47c1fea6e29f74638af6ba9fb91ffca
|
||||
size 51811
|
||||
5
python-openai.changes
Normal file
5
python-openai.changes
Normal file
@@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 26 07:29:00 UTC 2023 - Adrian Schröter <adrian@suse.de>
|
||||
|
||||
- initial package of version 0.26.2
|
||||
|
||||
81
python-openai.spec
Normal file
81
python-openai.spec
Normal file
@@ -0,0 +1,81 @@
|
||||
#
|
||||
# spec file for package python-openai
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
%define skip_python36 1
|
||||
Name: python-openai
|
||||
Version: 0.26.2
|
||||
Release: 0
|
||||
License: MIT
|
||||
Summary: OpenAI bindings for python
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/openai/openai-python
|
||||
Source: openai-python-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module poetry}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module pytest >= 3.5}
|
||||
BuildRequires: %{python_module aiohttp}
|
||||
BuildRequires: %{python_module tqdm}
|
||||
BuildRequires: %{python_module pytest-mock}
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Requires: python-aiohttp
|
||||
Requires: python-requests >= 2.20
|
||||
Requires: python-tqdm
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
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.
|
||||
|
||||
You can find usage examples for the OpenAI Python library in
|
||||
https://beta.openai.com/docs/api-reference?lang=python
|
||||
https://github.com/openai/openai-cookbook/.
|
||||
|
||||
%prep
|
||||
%setup -q -n openai-python-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%python_clone -a %{buildroot}%{_bindir}/openai
|
||||
|
||||
# test suite only works with network and registered API key
|
||||
|
||||
%post
|
||||
%python_install_alternative openai
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative openai
|
||||
|
||||
%files %{python_files}
|
||||
%python_alternative %{_bindir}/openai
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user