Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-Whoosh for openSUSE:Factory checked in at 2021-06-23 17:38:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Whoosh (Old) and /work/SRC/openSUSE:Factory/.python-Whoosh.new.2625 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Whoosh" Wed Jun 23 17:38:07 2021 rev:6 rq:901102 version:2.7.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Whoosh/python-Whoosh.changes 2019-07-30 13:00:48.698443119 +0200 +++ /work/SRC/openSUSE:Factory/.python-Whoosh.new.2625/python-Whoosh.changes 2021-06-23 17:38:09.968466035 +0200 @@ -1,0 +2,7 @@ +Mon Jun 21 07:55:58 UTC 2021 - Matej Cepl <[email protected]> + +- Add NullMatcherClass-hashable.patch which adds __hash__ + method to NullMatcherClass, so that it works with Sphinx4 + (gh#whoosh-community/whoosh#570). + +------------------------------------------------------------------- New: ---- NullMatcherClass-hashable.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Whoosh.spec ++++++ --- /var/tmp/diff_new_pack.UbnZAN/_old 2021-06-23 17:38:10.580466877 +0200 +++ /var/tmp/diff_new_pack.UbnZAN/_new 2021-06-23 17:38:10.584466883 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-Whoosh # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,8 +25,13 @@ Group: Development/Languages/Python URL: https://github.com/whoosh-community/whoosh/ Source: https://files.pythonhosted.org/packages/source/W/Whoosh/Whoosh-%{version}.tar.gz +# upstream in completely unrelated https://github.com/whoosh-community/whoosh/commit/b43e5a432109 Patch0: pytest4.patch +# upstream in https://github.com/whoosh-community/whoosh/commit/f5a777572fb9 Patch1: py2encoding.patch +# PATCH-FIX-UPSTREAM NullMatcherClass-hashable.patch gh#whoosh-community/whoosh#570 [email protected] +# NullMatcherClass needs __hash__ method as well for Sphinx4 compatiblity. +Patch2: NullMatcherClass-hashable.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -61,8 +66,7 @@ This package contains the documentation. %prep -%setup -q -n Whoosh-%{version} -%autopatch -p1 +%autosetup -p1 -n Whoosh-%{version} %build %python_build ++++++ NullMatcherClass-hashable.patch ++++++ --- src/whoosh/matching/mcore.py | 3 +++ 1 file changed, 3 insertions(+) --- a/src/whoosh/matching/mcore.py +++ b/src/whoosh/matching/mcore.py @@ -379,6 +379,9 @@ class NullMatcherClass(Matcher): def __repr__(self): return "<NullMatcher>" + def __hash__(self): + return hash((self.is_active(), tuple(self.all_ids()))) + def supports_block_quality(self): return True
