1
0

Accepting request 1108497 from home:mcepl:branches:devel:languages:python

- Update to 8.9.0:
  Number of changes is so large, that I suggest looking at it at
  https://www.elastic.co/guide/en/elasticsearch/client/python-api/master/release-notes.html.
- Remove upstreamed python-elasticsearch-no-nose.patch.

OBS-URL: https://build.opensuse.org/request/show/1108497
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=37
This commit is contained in:
2023-09-01 17:03:10 +00:00
committed by Git OBS Bridge
parent 3dccbfe4cf
commit d2bdec8013
6 changed files with 18 additions and 136 deletions

View File

@@ -22,20 +22,18 @@ Name: python-elasticsearch
# DO NOT UPDATE until the compatible version of
# python-elasticsearch-dsl is available (i.e., the same major
# version ... currently we are waiting on 8.* release).
Version: 7.6.0
Version: 8.9.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/%{version}.tar.gz
Patch0: python-elasticsearch-no-nose.patch
# https://github.com/elastic/elasticsearch-py/issues/1983
Patch1: python-elasticsearch-no-mock.patch
Source: https://github.com/elastic/elasticsearch-py/archive/refs/tags/v%{version}.tar.gz
BuildRequires: %{python_module certifi}
BuildRequires: %{python_module elastic-transport}
BuildRequires: %{python_module setuptools}
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
@@ -58,13 +56,12 @@ to be opinion-free and very extendable.
%prep
%autosetup -p1 -n elasticsearch-py-%{version}
sed -i '/addopts/d' setup.cfg
rm README.rst
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -72,7 +69,7 @@ rm README.rst
%files %{python_files}
%license LICENSE
%doc AUTHORS Changelog.rst README
%doc CODE_OF_CONDUCT.md CHANGELOG.md README.rst
%{python_sitelib}/elasticsearch
%{python_sitelib}/elasticsearch-%{version}*-info