Compare commits
7 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 672fe4bb2e | |||
| d3c1dcc233 | |||
| 4dc0ec4299 | |||
| 7429a3ad6a | |||
| b0b36341c5 | |||
| fb4f19d4a3 | |||
| 7983dd79b2 |
35
event_loop.patch
Normal file
35
event_loop.patch
Normal 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(
|
||||
@@ -1,41 +1,3 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 8 13:02:08 UTC 2026 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Update to 9.2.1
|
||||
* Instrument ping with OTel
|
||||
* Make positional arguments in DSL generated classes explicit
|
||||
* Add warnings for private APIs
|
||||
* ES|QL query builder: fix missing assignment
|
||||
* Use relative imports to fix elasticsearch9 package imports
|
||||
* Added transform.get_node_stats API
|
||||
* Added requests_per_second argument to delete_by_query_rethrottle,
|
||||
reindex_rethrottle and update_by_query_rethrottle APIs
|
||||
* Added allow_closed, allow_no_indices, expand_wildcards, ignore_throttled
|
||||
and ignore_available arguments to cat.segments API
|
||||
* Added chunking_settings argument to inference.put_watsonxai API
|
||||
* Added id argument to ml.stop_trained_model_deployment API
|
||||
* Removed chunking_settings argument from inference.put_anthropic,
|
||||
inference.put_contextualai, inference.put_deepseek APIs
|
||||
* Removed on_disk_score argument from DenseVectorIndexOptions type
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 20 08:33:01 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Update to 9.2.0
|
||||
* Merge elasticsearch-dsl-py package
|
||||
* Remove deprecated Elasticsearch() options
|
||||
* Remove deprecated url_prefix and use_ssl options
|
||||
* Improve DSL documentation examples with class-based queries and
|
||||
type hints
|
||||
* ES|QL query builder (technical preview)
|
||||
* Update OpenTelemetry conventions
|
||||
* Add option to disable accurate reporting of file and line location in warnings
|
||||
* Support Trio when using the HTTPX async client
|
||||
* Pydantic integration for the DSL module
|
||||
* Add flush_after_seconds option to streaming_bulk()
|
||||
* Add TS, FUSE and INLINE STATS commands to the ES|QL query builder
|
||||
- Drop upstreamed event_loop.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 7 10:11:06 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-elasticsearch
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
# 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
|
||||
@@ -18,42 +18,35 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-elasticsearch
|
||||
Version: 9.2.1
|
||||
# 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
|
||||
# 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 >= 9.2.0}
|
||||
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-anyio
|
||||
Requires: python-elastic-transport >= 9.2.0
|
||||
Requires: python-python-dateutil
|
||||
Requires: python-sniffio
|
||||
Requires: python-typing-extensions
|
||||
Provides: python-elasticsearch-dsl = %{version}
|
||||
Obsoletes: python-elasticsearch-dsl < %{version}
|
||||
Requires: python-elastic-transport
|
||||
BuildArch: noarch
|
||||
# SECTION test
|
||||
BuildRequires: %{python_module PyYAML >= 5.4}
|
||||
BuildRequires: %{python_module aiohttp >= 3}
|
||||
BuildRequires: %{python_module anyio}
|
||||
BuildRequires: %{python_module aiohttp >= 3 with %python-aiohttp < 4}
|
||||
BuildRequires: %{python_module orjson}
|
||||
BuildRequires: %{python_module pydantic}
|
||||
BuildRequires: %{python_module pytest-asyncio}
|
||||
BuildRequires: %{python_module pytest-trio}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module python-dateutil}
|
||||
BuildRequires: %{python_module pytz}
|
||||
BuildRequires: %{python_module requests >= 2.4 with %python-requests < 3}
|
||||
BuildRequires: %{python_module typing-extensions}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
|
||||
BIN
v8.17.1.tar.gz
LFS
Normal file
BIN
v8.17.1.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1672c954451a0162fd206344ce057a93efe409dfd7b5bd8a3368b2411d75c861
|
||||
size 2503341
|
||||
Reference in New Issue
Block a user