From a0287c63726f0b84cc0fe148cba4fbc449e1c659082b02422c0072a0adf54219 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 17 Oct 2022 21:17:30 +0000 Subject: [PATCH] - Update to 8.4.3: - Client is compatible with Elasticsearch 8.4.3 - Added the error_trace, filter_path, human and pretty parameters to the get_source API. - Added the ext parameter to the search API. - Added the ext parameter to the async_search.submit API. - Added the ext parameter to the fleet.search API. - Added the knn parameter to the search API. - Added the knn parameter to the async_search.submit API. - Added the cache_size parameter to the ml.start_trained_model_deployment API. - Added the security.update_api_key API. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=29 --- elasticsearch-py-8.3.3.tar.gz | 3 --- elasticsearch-py-8.4.3.tar.gz | 3 +++ python-elasticsearch-no-mock.patch | 39 ------------------------------ python-elasticsearch.changes | 16 ++++++++++++ python-elasticsearch.spec | 4 +-- 5 files changed, 20 insertions(+), 45 deletions(-) delete mode 100644 elasticsearch-py-8.3.3.tar.gz create mode 100644 elasticsearch-py-8.4.3.tar.gz delete mode 100644 python-elasticsearch-no-mock.patch diff --git a/elasticsearch-py-8.3.3.tar.gz b/elasticsearch-py-8.3.3.tar.gz deleted file mode 100644 index 0352b78..0000000 --- a/elasticsearch-py-8.3.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4b04930ff043894738e835ef6f6cc172f2e4929d3338263f6e650ef0fed76a93 -size 514532 diff --git a/elasticsearch-py-8.4.3.tar.gz b/elasticsearch-py-8.4.3.tar.gz new file mode 100644 index 0000000..07578cd --- /dev/null +++ b/elasticsearch-py-8.4.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a2528308183c9f88b460f742084e20f793b8cc7a0271d36250efcaaedbf8c224 +size 516311 diff --git a/python-elasticsearch-no-mock.patch b/python-elasticsearch-no-mock.patch deleted file mode 100644 index 169282e..0000000 --- a/python-elasticsearch-no-mock.patch +++ /dev/null @@ -1,39 +0,0 @@ -Index: elasticsearch-py-8.3.3/test_elasticsearch/test_helpers.py -=================================================================== ---- elasticsearch-py-8.3.3.orig/test_elasticsearch/test_helpers.py -+++ elasticsearch-py-8.3.3/test_elasticsearch/test_helpers.py -@@ -19,7 +19,7 @@ - import threading - import time - --import mock -+from unittest import mock - import pytest - - from elasticsearch import Elasticsearch, helpers -Index: elasticsearch-py-8.3.3/test_elasticsearch/test_server/test_helpers.py -=================================================================== ---- elasticsearch-py-8.3.3.orig/test_elasticsearch/test_server/test_helpers.py -+++ elasticsearch-py-8.3.3/test_elasticsearch/test_server/test_helpers.py -@@ -21,7 +21,7 @@ from datetime import datetime, timedelta - import pytest - from dateutil import tz - from elastic_transport import ApiResponseMeta, ObjectApiResponse --from mock import call, patch -+from unittest.mock import call, patch - - from elasticsearch import ApiError, helpers - from elasticsearch.helpers import ScanError -Index: elasticsearch-py-8.3.3/test_elasticsearch/test_async/test_server/test_helpers.py -=================================================================== ---- elasticsearch-py-8.3.3.orig/test_elasticsearch/test_async/test_server/test_helpers.py -+++ elasticsearch-py-8.3.3/test_elasticsearch/test_async/test_server/test_helpers.py -@@ -20,7 +20,7 @@ from datetime import datetime, timedelta - - import pytest - from elastic_transport import ApiResponseMeta, ObjectApiResponse --from mock import MagicMock, call, patch -+from unittest.mock import MagicMock, call, patch - - from elasticsearch import helpers - from elasticsearch.exceptions import ApiError diff --git a/python-elasticsearch.changes b/python-elasticsearch.changes index 37050ea..d3f07b3 100644 --- a/python-elasticsearch.changes +++ b/python-elasticsearch.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Mon Oct 17 21:13:04 UTC 2022 - Matej Cepl + +- Update to 8.4.3: + - Client is compatible with Elasticsearch 8.4.3 + - Added the error_trace, filter_path, human and pretty + parameters to the get_source API. + - Added the ext parameter to the search API. + - Added the ext parameter to the async_search.submit API. + - Added the ext parameter to the fleet.search API. + - Added the knn parameter to the search API. + - Added the knn parameter to the async_search.submit API. + - Added the cache_size parameter to the + ml.start_trained_model_deployment API. + - Added the security.update_api_key API. + ------------------------------------------------------------------- Thu Aug 18 16:35:28 UTC 2022 - Ben Greiner diff --git a/python-elasticsearch.spec b/python-elasticsearch.spec index dad6566..5af9810 100644 --- a/python-elasticsearch.spec +++ b/python-elasticsearch.spec @@ -19,15 +19,13 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-elasticsearch -Version: 8.3.3 +Version: 8.4.3 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#/elasticsearch-py-%{version}.tar.gz -# https://github.com/elastic/elasticsearch-py/issues/1983 -Patch0: python-elasticsearch-no-mock.patch BuildRequires: %{python_module elastic-transport >= 8 with %python-elastic-transport < 9} BuildRequires: %{python_module setuptools} BuildRequires: fdupes