Accepting request 1029684 from devel:languages:python

ok

OBS-URL: https://build.opensuse.org/request/show/1029684
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=32
This commit is contained in:
Matej Cepl 2022-10-18 08:56:43 +00:00 committed by Git OBS Bridge
parent ab26cb3ea0
commit 3bc84cdba5
5 changed files with 46 additions and 21 deletions

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4b04930ff043894738e835ef6f6cc172f2e4929d3338263f6e650ef0fed76a93
size 514532

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a2528308183c9f88b460f742084e20f793b8cc7a0271d36250efcaaedbf8c224
size 516311

View File

@ -0,0 +1,39 @@
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

View File

@ -1,20 +1,3 @@
-------------------------------------------------------------------
Mon Oct 17 21:13:04 UTC 2022 - Matej Cepl <mcepl@suse.com>
- 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.
- Remove upstreamed python-elasticsearch-no-mock.patch.
-------------------------------------------------------------------
Thu Aug 18 16:35:28 UTC 2022 - Ben Greiner <code@bnavigator.de>

View File

@ -16,15 +16,18 @@
#
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-elasticsearch
Version: 8.4.3
Version: 8.3.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