Hello community,
here is the log from the commit of package python-elasticsearch for
openSUSE:Factory checked in at 2020-08-25 12:37:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-elasticsearch (Old)
and /work/SRC/openSUSE:Factory/.python-elasticsearch.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-elasticsearch"
Tue Aug 25 12:37:53 2020 rev:10 rq:827223 version:7.6.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-elasticsearch/python-elasticsearch.changes
2020-04-07 10:26:25.358169455 +0200
+++
/work/SRC/openSUSE:Factory/.python-elasticsearch.new.3399/python-elasticsearch.changes
2020-08-25 12:37:54.469404749 +0200
@@ -1,0 +2,7 @@
+Sun Aug 16 12:33:29 UTC 2020 - John Vandenberg <[email protected]>
+
+- Replace nose with pytest
+- Remove %bcond_without test
+- Tidy spec
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-elasticsearch.spec ++++++
--- /var/tmp/diff_new_pack.mvbOde/_old 2020-08-25 12:37:55.265404899 +0200
+++ /var/tmp/diff_new_pack.mvbOde/_new 2020-08-25 12:37:55.269404899 +0200
@@ -17,7 +17,6 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%bcond_without test
Name: python-elasticsearch
Version: 7.6.0
Release: 0
@@ -26,22 +25,19 @@
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 pytest}
BuildRequires: %{python_module requests >= 2.0.0}
+BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module urllib3 >= 1.21.1}
-%endif
+BuildRequires: fdupes
+BuildRequires: python-rpm-macros
+Requires: python-certifi
+Requires: python-urllib3 >= 1.21.1
+BuildArch: noarch
%python_subpackages
%description
@@ -52,6 +48,7 @@
%prep
%setup -q -n elasticsearch-py-%{version}
rm README.rst
+sed -i 's/from nose.plugins.skip import SkipTest/from unittest import
SkipTest/' test_elasticsearch/test_helpers.py
%build
%python_build
@@ -60,10 +57,8 @@
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
-%if %{with test}
%check
-%python_expand nosetests-%{$python_bin_suffix}
-%endif
+%pytest -rs
%files %{python_files}
%license LICENSE