File python-opensearch-py.spec of Package python-opensearch-py
#
# spec file for package python-opensearch-py
#
# Copyright (c) 2024 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/
#
%{?sle15_python_module_pythons}
Name: python-opensearch-py
Version: 2.8.0
Release: 0
Summary: Python client for OpenSearch
License: Apache-2.0
URL: https://github.com/opensearch-project/opensearch-py
Source: https://files.pythonhosted.org/packages/source/o/opensearch-py/opensearch_py-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
# SECTION test requirements
BuildRequires: %{python_module pytest >= 3.0.0}
BuildRequires: %{python_module pytest-mock < 4.0.0}
BuildRequires: %{python_module certifi >= 2024.07.04}
BuildRequires: %{python_module Events}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module requests >= 2.32.0}
BuildRequires: %{python_module urllib3 >= 1.26.19}
# /SECTION
BuildRequires: fdupes
Requires: python-certifi >= 2024.07.04
Requires: python-Events
Requires: python-python-dateutil
Requires: python-requests >= 2.32.0
Requires: python-urllib3 >= 1.26.19
Suggests: python-aiohttp >= 3.9.4
Suggests: python-pyyaml
Suggests: python-pytz
Suggests: python-botocore
Suggests: python-myst_parser
Suggests: python-sphinx_copybutton
Suggests: python-jinja2
Suggests: python-sphinx
Suggests: python-sphinx_rtd_theme
Suggests: python-requests_kerberos
BuildArch: noarch
%python_subpackages
%description
Python client for OpenSearch
%prep
%autosetup -p1 -n opensearch_py-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# Tests are not part of the source dist
%files %{python_files}
%{python_sitelib}/opensearchpy
%{python_sitelib}/opensearch_py-%{version}.dist-info
%changelog