* Make pyarrow dependency optional for tests (#2733, contributed by @danigm) * Update APIs: - Add Simulate ingest API - Add Get data stream lifecycle stats API - Add Update inference API - Add Create or update, Get and Delete IP geolocation database configuration APIs - Add Bulk update API keys - Add Get and Update Security index settings APIs - Add OpenID Connect prepare authentication, OpenID Connect authenticate and OpenID Connect logout APIs - Add Delegate PKI authentication API - Add Repository analysis API - Add Render Search Application Query API - Add Find field structure and Find messages structure APIs - Add Get Watcher index settings and Update Watcher index settings APIs - Add experimental Check in and Claim connector sync job APIs - Add experimental Set connector sync job errors and Set connector sync job stats APIs - Add experimental Update connector features APIs - Add experimental Post Event to an Analytics Collection API - Add timeout and master_timeout to Snapshot lifecycle management (SLM) APIs - Add allow_partial_search_results to SQL search API - Add throttle_period_in_millis to Create or update watch API - Fix query parameters for CAT APIs - Drop 0001-Make-pyarrow-dependency-optional-for-tests.patch, merged upstream OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=52
79 lines
2.7 KiB
RPMSpec
79 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package python-elasticsearch
|
|
#
|
|
# 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-elasticsearch
|
|
# DO NOT UPDATE until the compatible version of
|
|
# python-elasticsearch-dsl is available
|
|
Version: 8.17.1
|
|
Release: 0
|
|
Summary: Python client for Elasticsearch
|
|
License: Apache-2.0
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/elastic/elasticsearch-py
|
|
Source: https://github.com/elastic/elasticsearch-py/archive/refs/tags/v%{version}.tar.gz
|
|
BuildRequires: %{python_module certifi}
|
|
BuildRequires: %{python_module elastic-transport}
|
|
BuildRequires: %{python_module hatchling}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module urllib3 >= 1.21.1}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-elastic-transport
|
|
BuildArch: noarch
|
|
# SECTION test
|
|
BuildRequires: %{python_module PyYAML >= 5.4}
|
|
BuildRequires: %{python_module aiohttp >= 3 with %python-aiohttp < 4}
|
|
BuildRequires: %{python_module orjson}
|
|
BuildRequires: %{python_module pytest-asyncio}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module python-dateutil}
|
|
BuildRequires: %{python_module requests >= 2.4 with %python-requests < 3}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
Official low-level client for Elasticsearch. Its goal is to provide common
|
|
ground for all Elasticsearch-related code in Python; because of this it tries
|
|
to be opinion-free and very extendable.
|
|
|
|
%prep
|
|
%autosetup -p1 -n elasticsearch-py-%{version}
|
|
sed -i '/addopts/d' setup.cfg
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
# Skip some flaky tests that fails in OBS
|
|
donttest="test_sniff_uses_sniff_timeout or test_sniff_on_node_failure_triggers"
|
|
%pytest -k "not ($donttest)"
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc CODE_OF_CONDUCT.md CHANGELOG.md README.md
|
|
%{python_sitelib}/elasticsearch
|
|
%{python_sitelib}/elasticsearch-%{version}*-info
|
|
|
|
%changelog
|