15
0
forked from pool/python-openai
2023-01-26 10:13:50 +00:00
committed by Git OBS Bridge
parent 55482fa6b8
commit 30baa0b693
2 changed files with 15 additions and 10 deletions

View File

@@ -16,31 +16,30 @@
#
%{?!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
License: MIT
Group: Development/Languages/Python
URL: https://github.com/openai/openai-python
Source: openai-python-%{version}.tar.gz
BuildRequires: %{python_module aiohttp}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry}
BuildRequires: %{python_module pytest >= 3.5}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module tqdm}
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
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
%python_subpackages
@@ -56,7 +55,7 @@ You can find usage examples for the OpenAI Python library in
https://github.com/openai/openai-cookbook/.
%prep
%setup -q -n openai-python-%{version}
%autosetup -p1 -n openai-python-%{version}
%build
%pyproject_wheel
@@ -76,6 +75,7 @@ You can find usage examples for the OpenAI Python library in
%files %{python_files}
%python_alternative %{_bindir}/openai
%{python_sitelib}/*
%{python_sitelib}/openai
%{python_sitelib}/openai-%{version}*-info
%changelog