Files
python-ollama/python-ollama.spec
Christian Goll 473cf957d1 - update to 0.4.7:
* client: remove sha256 as it's already available in the digest
  * client: improve error messaging on connection failure
  * chore: bump httpx from 0.27.2 to 0.28.1
  * chore: ensure imports are sorted
  * examples: fix create examples
  * examples: update create example
  * fix: don't run lints on all Python versions
  * fix: formatting & CI
  * chore: add tests for checking sha in blob request
- update to 0.4.6:
  * add create api changes to support ollama v0.5.5

OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/python-ollama?expand=0&rev=9
2025-04-14 13:20:15 +00:00

63 lines
1.8 KiB
RPMSpec

#
# spec file for package python-ollama
#
# Copyright (c) 2025 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/
#
%{?sle15_python_module_pythons}
Name: python-ollama
Version: 0.4.7
Release: 0
License: MIT
Summary: Ollama python bindings
Group: Development/Languages/Python
URL: https://github.com/ollama/ollama-python
Source: https://files.pythonhosted.org/packages/source/o/ollama/ollama-%{version}.tar.gz
BuildRequires: %{python_module httpx >= 0.27.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-httpx >= 0.27.0
BuildArch: noarch
%python_subpackages
%description
Official ollama python bindings
%prep
%setup -q -n ollama-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# Tests require python-pydantic, which is not in Factory yet
#%%check
#%%pytest
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/ollama
%{python_sitelib}/ollama-%{version}.dist-info
%changelog