summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2023-12-23 04:30:44 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2023-12-23 04:30:44 +0000
commit7cc47061e00a3c602975917ea8df50ee9f9ec1ba (patch)
treef7186cbd301be1ca0a3399e2b5f4de21fcf97699
parentffb77e8722ae4159ec4d2fef8e8fa3d7f426d552 (diff)
automatic import of python-openaiHEADmasterf39f38
-rw-r--r--.gitignore1
-rw-r--r--python-openai.spec58
-rw-r--r--sources1
3 files changed, 60 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..29fdf19 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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.
diff --git a/sources b/sources
new file mode 100644
index 0000000..2191a19
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+9405ecbf8dceb412aba753a159b6e437 openai-1.6.1.tar.gz