diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-12-23 04:30:44 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-12-23 04:30:44 +0000 |
commit | 7cc47061e00a3c602975917ea8df50ee9f9ec1ba (patch) | |
tree | f7186cbd301be1ca0a3399e2b5f4de21fcf97699 | |
parent | ffb77e8722ae4159ec4d2fef8e8fa3d7f426d552 (diff) |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-openai.spec | 58 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 60 insertions, 0 deletions
@@ -0,0 +1 @@ +/openai-1.6.1.tar.gz diff --git a/python-openai.spec b/python-openai.spec new file mode 100644 index 0000000..a694512 --- /dev/null +++ b/python-openai.spec @@ -0,0 +1,58 @@ +%global pypi_name openai +%global pypi_version 1.6.1 + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: 1%{?dist} +Summary: The official Python library for the OpenAI API + +License: Apache-2.0 +URL: https://github.com/openai/openai-python +Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{pypi_name}-%{pypi_version}.tar.gz + +BuildArch: noarch + +BuildRequires: python3-devel + +%description +The OpenAI Python library provides convenient access to the +OpenAI REST API from any Python 3.7+ application. The library +includes type definitions for all request params and response +fields, and offers both synchronous and asynchronous clients +powered by httpx. + +%package -n python3-%{pypi_name} +Summary: The official Python library for the OpenAI API + +%description -n python3-%{pypi_name} +The OpenAI Python library provides convenient access to the +OpenAI REST API from any Python 3.7+ application. The library +includes type definitions for all request params and response +fields, and offers both synchronous and asynchronous clients +powered by httpx. + +%prep +%autosetup -n %{pypi_name}-python-%{pypi_version} + +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%generate_buildrequires +%pyproject_buildrequires -t + +%build +%pyproject_wheel + +%install +%pyproject_install + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md +%{_bindir}/openai +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{pypi_version}.dist-info + +%changelog +* Fri Dec 22 2023 Tom Rix <trix@redhat.com> - 0.7.0-1 +- Initial package. @@ -0,0 +1 @@ +9405ecbf8dceb412aba753a159b6e437 openai-1.6.1.tar.gz |