python-elasticsearch/python-elasticsearch.spec
Tomáš Chvátal f7ec9f8f8e Accepting request 791736 from home:mcalabkova:branches:devel:languages:python
- Update to 7.6.0
  * Added support for ES 7.6 APIs
  * Added support for `X-Opaque-Id`_ to identify long-running tasks
  * Added support for HTTP compression to ``RequestsHttpConnection``
  * Updated default setting of ``http_compress`` when using ``cloud_id`` to ``True``
  * Updated default setting of ``sniffing`` when using ``cloud_id`` to ``False``
  * Updated default port to ``443`` if ``cloud_id`` and no other port is defined
    on the client or within ``cloud_id``
  * Fix regression of ``client.cluster.state()`` where the default ``metric``
    should be set to ``"_all"`` if an index is given (See `#1143`_)
  * Fix regression of ``client.tasks.get()`` without a ``task_id``
    having similar functionality to ``client.tasks.list()`` This will
    be removed in ``v8.0`` of ``elasticsearch-py`` (See `#1157`_)

OBS-URL: https://build.opensuse.org/request/show/791736
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=21
2020-04-06 11:05:49 +00:00

74 lines
2.2 KiB
RPMSpec

#
# spec file for package python-elasticsearch
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-elasticsearch
Version: 7.6.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
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-certifi
Requires: python-urllib3 >= 1.21.1
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module certifi}
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nosexcover}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module pyaml}
BuildRequires: %{python_module requests >= 2.0.0}
BuildRequires: %{python_module urllib3 >= 1.21.1}
%endif
%python_subpackages
%description
Official low-level client for Elasticsearch. Its goal is to provide common
ground for all Elasticsearch-related code in Python; because of this it tries
to be opinion-free and very extendable.
%prep
%setup -q -n elasticsearch-py-%{version}
rm README.rst
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%python_expand nosetests-%{$python_bin_suffix}
%endif
%files %{python_files}
%license LICENSE
%doc AUTHORS Changelog.rst README
%{python_sitelib}/*
%changelog