python-elasticsearch/python-elasticsearch.spec

81 lines
2.8 KiB
RPMSpec
Raw Normal View History

#
# 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
- Add patch to do not depend on pyarrow for tests: 0001-Make-pyarrow-dependency-optional-for-tests.patch - Update to 8.17.0: * Allow simsimd again on Python 3.13 (#2722) * Update APIs: - Mark all Inference APIs as stable. - Add allow_partial_search_results to the Open Point in Time API - Add keep_alive to the Get async search status API - Remove the keep_alive, pre_filter_shard_size and scroll parameters from the Submit async search API. They were never supported. - Add master_timeout and timeout to all autoscaling policy APIs - Add master_timeout to the Alias exists and Get alias APIs - Add list_executed_pipelines and require_data_stream to Bulk API - Add include_model_definition to Get trained models API - Add meta to Create data frame analytics API - Add aggs to Create datafeeds API - Add allow_no_indices, expand_wildcards, ignore_throttled and ignore_unavailable to Create anomaly detection jobs API - 8.16.0: * Support Python 3.13 (#2680) * Emit Python warnings for beta and tech preview APIs (#2675). * Vectorstore: use a retriever query for hybrid search (#2666) * Allow retries for statuses other than 429 in streaming bulk (#2071, contributed by @ayayron) * Make BulkIndexError and ScanError serializable (#2669, contributed by @seagrine) * Fix import when trace is missing from opentelemetry package (#2694, contributed by @nicoloboschi) * Update APIs: - Fix nodes parameter in Task management API (contributed by @margaretpearce) - Add Test query rule API - Add Create Cross-Cluster API key and Update Cross-Cluster API key APIs - Add experimental Verify snapshot repository API - Add data_stream_name and settings to Delete auto-follow pattern API - Add max_samples_per_key to Get async EQL status API - Add lifecycle and remove unused data_retention and downsampling parameters from Put data stream lifecycle API OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=50
2025-01-08 08:59:52 +00:00
Version: 8.17.0
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
- Add patch to do not depend on pyarrow for tests: 0001-Make-pyarrow-dependency-optional-for-tests.patch - Update to 8.17.0: * Allow simsimd again on Python 3.13 (#2722) * Update APIs: - Mark all Inference APIs as stable. - Add allow_partial_search_results to the Open Point in Time API - Add keep_alive to the Get async search status API - Remove the keep_alive, pre_filter_shard_size and scroll parameters from the Submit async search API. They were never supported. - Add master_timeout and timeout to all autoscaling policy APIs - Add master_timeout to the Alias exists and Get alias APIs - Add list_executed_pipelines and require_data_stream to Bulk API - Add include_model_definition to Get trained models API - Add meta to Create data frame analytics API - Add aggs to Create datafeeds API - Add allow_no_indices, expand_wildcards, ignore_throttled and ignore_unavailable to Create anomaly detection jobs API - 8.16.0: * Support Python 3.13 (#2680) * Emit Python warnings for beta and tech preview APIs (#2675). * Vectorstore: use a retriever query for hybrid search (#2666) * Allow retries for statuses other than 429 in streaming bulk (#2071, contributed by @ayayron) * Make BulkIndexError and ScanError serializable (#2669, contributed by @seagrine) * Fix import when trace is missing from opentelemetry package (#2694, contributed by @nicoloboschi) * Update APIs: - Fix nodes parameter in Task management API (contributed by @margaretpearce) - Add Test query rule API - Add Create Cross-Cluster API key and Update Cross-Cluster API key APIs - Add experimental Verify snapshot repository API - Add data_stream_name and settings to Delete auto-follow pattern API - Add max_samples_per_key to Get async EQL status API - Add lifecycle and remove unused data_retention and downsampling parameters from Put data stream lifecycle API OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=50
2025-01-08 08:59:52 +00:00
# PATCH-FIX-UPSTREAM 0001-Make-pyarrow-dependency-optional-for-tests.patch gh#elastic/elasticsearch-py#2733
Patch1: 0001-Make-pyarrow-dependency-optional-for-tests.patch
BuildRequires: %{python_module certifi}
BuildRequires: %{python_module elastic-transport}
- Add patch to do not depend on pyarrow for tests: 0001-Make-pyarrow-dependency-optional-for-tests.patch - Update to 8.17.0: * Allow simsimd again on Python 3.13 (#2722) * Update APIs: - Mark all Inference APIs as stable. - Add allow_partial_search_results to the Open Point in Time API - Add keep_alive to the Get async search status API - Remove the keep_alive, pre_filter_shard_size and scroll parameters from the Submit async search API. They were never supported. - Add master_timeout and timeout to all autoscaling policy APIs - Add master_timeout to the Alias exists and Get alias APIs - Add list_executed_pipelines and require_data_stream to Bulk API - Add include_model_definition to Get trained models API - Add meta to Create data frame analytics API - Add aggs to Create datafeeds API - Add allow_no_indices, expand_wildcards, ignore_throttled and ignore_unavailable to Create anomaly detection jobs API - 8.16.0: * Support Python 3.13 (#2680) * Emit Python warnings for beta and tech preview APIs (#2675). * Vectorstore: use a retriever query for hybrid search (#2666) * Allow retries for statuses other than 429 in streaming bulk (#2071, contributed by @ayayron) * Make BulkIndexError and ScanError serializable (#2669, contributed by @seagrine) * Fix import when trace is missing from opentelemetry package (#2694, contributed by @nicoloboschi) * Update APIs: - Fix nodes parameter in Task management API (contributed by @margaretpearce) - Add Test query rule API - Add Create Cross-Cluster API key and Update Cross-Cluster API key APIs - Add experimental Verify snapshot repository API - Add data_stream_name and settings to Delete auto-follow pattern API - Add max_samples_per_key to Get async EQL status API - Add lifecycle and remove unused data_retention and downsampling parameters from Put data stream lifecycle API OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=50
2025-01-08 08:59:52 +00:00
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}
- Add patch to do not depend on pyarrow for tests: 0001-Make-pyarrow-dependency-optional-for-tests.patch - Update to 8.17.0: * Allow simsimd again on Python 3.13 (#2722) * Update APIs: - Mark all Inference APIs as stable. - Add allow_partial_search_results to the Open Point in Time API - Add keep_alive to the Get async search status API - Remove the keep_alive, pre_filter_shard_size and scroll parameters from the Submit async search API. They were never supported. - Add master_timeout and timeout to all autoscaling policy APIs - Add master_timeout to the Alias exists and Get alias APIs - Add list_executed_pipelines and require_data_stream to Bulk API - Add include_model_definition to Get trained models API - Add meta to Create data frame analytics API - Add aggs to Create datafeeds API - Add allow_no_indices, expand_wildcards, ignore_throttled and ignore_unavailable to Create anomaly detection jobs API - 8.16.0: * Support Python 3.13 (#2680) * Emit Python warnings for beta and tech preview APIs (#2675). * Vectorstore: use a retriever query for hybrid search (#2666) * Allow retries for statuses other than 429 in streaming bulk (#2071, contributed by @ayayron) * Make BulkIndexError and ScanError serializable (#2669, contributed by @seagrine) * Fix import when trace is missing from opentelemetry package (#2694, contributed by @nicoloboschi) * Update APIs: - Fix nodes parameter in Task management API (contributed by @margaretpearce) - Add Test query rule API - Add Create Cross-Cluster API key and Update Cross-Cluster API key APIs - Add experimental Verify snapshot repository API - Add data_stream_name and settings to Delete auto-follow pattern API - Add max_samples_per_key to Get async EQL status API - Add lifecycle and remove unused data_retention and downsampling parameters from Put data stream lifecycle API OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=50
2025-01-08 08:59:52 +00:00
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
- Add patch to do not depend on pyarrow for tests: 0001-Make-pyarrow-dependency-optional-for-tests.patch - Update to 8.17.0: * Allow simsimd again on Python 3.13 (#2722) * Update APIs: - Mark all Inference APIs as stable. - Add allow_partial_search_results to the Open Point in Time API - Add keep_alive to the Get async search status API - Remove the keep_alive, pre_filter_shard_size and scroll parameters from the Submit async search API. They were never supported. - Add master_timeout and timeout to all autoscaling policy APIs - Add master_timeout to the Alias exists and Get alias APIs - Add list_executed_pipelines and require_data_stream to Bulk API - Add include_model_definition to Get trained models API - Add meta to Create data frame analytics API - Add aggs to Create datafeeds API - Add allow_no_indices, expand_wildcards, ignore_throttled and ignore_unavailable to Create anomaly detection jobs API - 8.16.0: * Support Python 3.13 (#2680) * Emit Python warnings for beta and tech preview APIs (#2675). * Vectorstore: use a retriever query for hybrid search (#2666) * Allow retries for statuses other than 429 in streaming bulk (#2071, contributed by @ayayron) * Make BulkIndexError and ScanError serializable (#2669, contributed by @seagrine) * Fix import when trace is missing from opentelemetry package (#2694, contributed by @nicoloboschi) * Update APIs: - Fix nodes parameter in Task management API (contributed by @margaretpearce) - Add Test query rule API - Add Create Cross-Cluster API key and Update Cross-Cluster API key APIs - Add experimental Verify snapshot repository API - Add data_stream_name and settings to Delete auto-follow pattern API - Add max_samples_per_key to Get async EQL status API - Add lifecycle and remove unused data_retention and downsampling parameters from Put data stream lifecycle API OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=50
2025-01-08 08:59:52 +00:00
%doc CODE_OF_CONDUCT.md CHANGELOG.md README.md
%{python_sitelib}/elasticsearch
- Add patch to do not depend on pyarrow for tests: 0001-Make-pyarrow-dependency-optional-for-tests.patch - Update to 8.17.0: * Allow simsimd again on Python 3.13 (#2722) * Update APIs: - Mark all Inference APIs as stable. - Add allow_partial_search_results to the Open Point in Time API - Add keep_alive to the Get async search status API - Remove the keep_alive, pre_filter_shard_size and scroll parameters from the Submit async search API. They were never supported. - Add master_timeout and timeout to all autoscaling policy APIs - Add master_timeout to the Alias exists and Get alias APIs - Add list_executed_pipelines and require_data_stream to Bulk API - Add include_model_definition to Get trained models API - Add meta to Create data frame analytics API - Add aggs to Create datafeeds API - Add allow_no_indices, expand_wildcards, ignore_throttled and ignore_unavailable to Create anomaly detection jobs API - 8.16.0: * Support Python 3.13 (#2680) * Emit Python warnings for beta and tech preview APIs (#2675). * Vectorstore: use a retriever query for hybrid search (#2666) * Allow retries for statuses other than 429 in streaming bulk (#2071, contributed by @ayayron) * Make BulkIndexError and ScanError serializable (#2669, contributed by @seagrine) * Fix import when trace is missing from opentelemetry package (#2694, contributed by @nicoloboschi) * Update APIs: - Fix nodes parameter in Task management API (contributed by @margaretpearce) - Add Test query rule API - Add Create Cross-Cluster API key and Update Cross-Cluster API key APIs - Add experimental Verify snapshot repository API - Add data_stream_name and settings to Delete auto-follow pattern API - Add max_samples_per_key to Get async EQL status API - Add lifecycle and remove unused data_retention and downsampling parameters from Put data stream lifecycle API OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=50
2025-01-08 08:59:52 +00:00
%{python_sitelib}/elasticsearch-%{version}*-info
%changelog