python-elasticsearch/python-elasticsearch.spec
Steve Kowalik b31fa2dc1d Accepting request 781011 from home:mcalabkova:branches:devel:languages:python
- Update to 7.5.1
  * All API is now auto generated
  * deprecated the .xpack namespace
  * Update client to support ES 7.5 APIs
  * Fix sniffing with http.publish_host
  * Fix request_timeout for indices APIs
  * Allow access to x-pack features without xpack namespace
  * Fix verify_certs=False

OBS-URL: https://build.opensuse.org/request/show/781011
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-elasticsearch?expand=0&rev=19
2020-03-03 03:58:29 +00:00

72 lines
2.1 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.5.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/%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-urllib3 >= 1.21.1
BuildArch: noarch
%if %{with test}
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_exec setup.py test
%endif
%files %{python_files}
%license LICENSE
%doc AUTHORS Changelog.rst README
%{python_sitelib}/*
%changelog