Accepting request 827223 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/827223 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-elasticsearch?expand=0&rev=10
This commit is contained in:
commit
6d4f78e463
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Aug 16 12:33:29 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
- Replace nose with pytest
|
||||||
|
- Remove %bcond_without test
|
||||||
|
- Tidy spec
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 6 07:52:26 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
Mon Apr 6 07:52:26 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%bcond_without test
|
|
||||||
Name: python-elasticsearch
|
Name: python-elasticsearch
|
||||||
Version: 7.6.0
|
Version: 7.6.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -26,22 +25,19 @@ License: Apache-2.0
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/elastic/elasticsearch-py
|
URL: https://github.com/elastic/elasticsearch-py
|
||||||
Source: https://github.com/elastic/elasticsearch-py/archive/%{version}.tar.gz
|
Source: https://github.com/elastic/elasticsearch-py/archive/%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module certifi}
|
||||||
|
BuildRequires: %{python_module coverage}
|
||||||
|
BuildRequires: %{python_module mock}
|
||||||
|
BuildRequires: %{python_module pyaml}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module requests >= 2.0.0}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module urllib3 >= 1.21.1}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-certifi
|
Requires: python-certifi
|
||||||
Requires: python-urllib3 >= 1.21.1
|
Requires: python-urllib3 >= 1.21.1
|
||||||
BuildArch: noarch
|
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
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -52,6 +48,7 @@ to be opinion-free and very extendable.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n elasticsearch-py-%{version}
|
%setup -q -n elasticsearch-py-%{version}
|
||||||
rm README.rst
|
rm README.rst
|
||||||
|
sed -i 's/from nose.plugins.skip import SkipTest/from unittest import SkipTest/' test_elasticsearch/test_helpers.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@ -60,10 +57,8 @@ rm README.rst
|
|||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%if %{with test}
|
|
||||||
%check
|
%check
|
||||||
%python_expand nosetests-%{$python_bin_suffix}
|
%pytest -rs
|
||||||
%endif
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user