17
0

7 Commits

Author SHA256 Message Date
672fe4bb2e Accepting request 1291145 from devel:languages:python
- Add upstream event_loop.patch to fix tests with pytest-asyncio 1.0

OBS-URL: https://build.opensuse.org/request/show/1291145
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=22
2025-07-08 13:29:02 +00:00
d3c1dcc233 Accepting request 1291016 from home:mcalabkova:branches:devel:languages:python
- Add upstream event_loop.patch to fix tests with pytest-asyncio 1.0

OBS-URL: https://build.opensuse.org/request/show/1291016
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=54
2025-07-08 04:45:42 +00:00
4dc0ec4299 Accepting request 1243050 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1243050
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=21
2025-02-04 17:11:09 +00:00
7429a3ad6a Accepting request 1242996 from home:glaubitz:branches:devel:languages:python
- Update to 8.17.1
  * 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/request/show/1242996
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=52
2025-02-04 10:24:58 +00:00
b0b36341c5 Accepting request 1235853 from devel:languages:python
- 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/request/show/1235853
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=20
2025-01-09 14:05:30 +00:00
fb4f19d4a3 - 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
7983dd79b2 - Skip some flaky tests that fails in OBS build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=49
2025-01-08 08:56:10 +00:00
3 changed files with 42 additions and 0 deletions

35
event_loop.patch Normal file
View File

@@ -0,0 +1,35 @@
From 3c9680a5cf0b67a56356bf73173a7d5eabb2e552 Mon Sep 17 00:00:00 2001
From: Quentin Pradet <quentin.pradet@elastic.co>
Date: Wed, 28 May 2025 20:02:48 +0400
Subject: [PATCH] Stop using event_loop fixture (#2969)
It was removed in pytest-asyncio 1.0.
---
docs/reference/async.md | 3 +--
test_elasticsearch/test_async/test_transport.py | 6 ++++--
2 files changed, 5 insertions(+), 4 deletions(-)
Index: elasticsearch-py-8.17.1/test_elasticsearch/test_async/test_transport.py
===================================================================
--- elasticsearch-py-8.17.1.orig/test_elasticsearch/test_async/test_transport.py
+++ elasticsearch-py-8.17.1/test_elasticsearch/test_async/test_transport.py
@@ -527,7 +527,8 @@ class TestTransport:
assert request_failed_in_error
assert len(client.transport.node_pool) == 3
- async def test_sniff_after_n_seconds(self, event_loop):
+ async def test_sniff_after_n_seconds(self):
+ event_loop = asyncio.get_running_loop()
client = AsyncElasticsearch( # noqa: F821
[NodeConfig("http", "localhost", 9200, _extras={"data": CLUSTER_NODES})],
node_class=DummyNode,
@@ -581,7 +582,8 @@ class TestTransport:
== "Sniffing should not be enabled when connecting to Elastic Cloud"
)
- async def test_sniff_on_start_close_unlocks_async_calls(self, event_loop):
+ async def test_sniff_on_start_close_unlocks_async_calls(self):
+ event_loop = asyncio.get_running_loop()
client = AsyncElasticsearch( # noqa: F821
[
NodeConfig(

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jul 7 10:11:06 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Add upstream event_loop.patch to fix tests with pytest-asyncio 1.0
-------------------------------------------------------------------
Tue Feb 4 09:04:37 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -27,6 +27,8 @@ 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
# PATCH-FIX-UPSTREAM https://github.com/elastic/elasticsearch-py/commit/3c9680a5cf0b67a56356bf73173a7d5eabb2e552 Stop using event_loop fixture
Patch: event_loop.patch
BuildRequires: %{python_module certifi}
BuildRequires: %{python_module elastic-transport}
BuildRequires: %{python_module hatchling}