forked from pool/python-openai
- Clean up the SPEC file.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-openai?expand=0&rev=2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user