1
0
forked from pool/python-Whoosh

35 Commits

Author SHA256 Message Date
f085ba13c9 Accepting request 1299365 from devel:languages:python
- Silence reporting unavoidable duplicates.

- Switch to fork under development and update to 2.7.5
  * test_bigfacet.py: print() is a function in Python 3
  * remove duplicate_plugin WhitespacePlugin
  * [RFC] Give SegmentWriter a cachable Searcher
  * Add support for wildcard regex tokenization
  * Fixed several errors and added support for the Sweep AI and
    Codecov bots
  * Update Python version in setup.py classifiers & fix indent
  * Improved documentation deployment and added additional locations
    where it can be found as backup
- Drop merged patches:
  * pytest4.patch
  * py2encoding.patch
  * docs-Update-intersphinx_mapping.patch

OBS-URL: https://build.opensuse.org/request/show/1299365
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Whoosh?expand=0&rev=13
2025-08-15 19:51:05 +00:00
a044fbdd4a - Silence reporting unavoidable duplicates.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=35
2025-08-14 10:19:44 +00:00
7237e5c222 - Switch to fork under development and update to 2.7.5
* test_bigfacet.py: print() is a function in Python 3
  * remove duplicate_plugin WhitespacePlugin
  * [RFC] Give SegmentWriter a cachable Searcher
  * Add support for wildcard regex tokenization
  * Fixed several errors and added support for the Sweep AI and
    Codecov bots
  * Update Python version in setup.py classifiers & fix indent
  * Improved documentation deployment and added additional locations
    where it can be found as backup
- Drop merged patches:
  * pytest4.patch
  * py2encoding.patch
  * docs-Update-intersphinx_mapping.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=34
2025-08-14 09:17:48 +00:00
33531f0d23 Accepting request 1285284 from devel:languages:python
- Switch to pyproject macros.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/request/show/1285284
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Whoosh?expand=0&rev=12
2025-06-13 16:43:25 +00:00
f501087027 - Switch to pyproject macros.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=32
2025-06-13 02:57:12 +00:00
fc0e224496 Accepting request 1198902 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1198902
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Whoosh?expand=0&rev=11
2024-09-13 12:25:52 +00:00
f71b4268d6 Accepting request 1109333 from devel:languages:python
- Update in SLE-15 (bsc#1197830)

OBS-URL: https://build.opensuse.org/request/show/1109333
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Whoosh?expand=0&rev=10
2023-09-07 19:12:45 +00:00
cec580c257 - Update in SLE-15 (bsc#1197830)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=28
2023-09-06 20:08:59 +00:00
356b0e6e86 Accepting request 1084256 from devel:languages:python
- fix line endings

OBS-URL: https://build.opensuse.org/request/show/1084256
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Whoosh?expand=0&rev=9
2023-05-04 15:09:35 +00:00
7f258fc2d4 - fix line endings
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=26
2023-05-03 10:42:14 +00:00
25501f8515 Accepting request 1083919 from devel:languages:python
- add sle15_python_module_pythons (jsc#PED-68)

OBS-URL: https://build.opensuse.org/request/show/1083919
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Whoosh?expand=0&rev=8
2023-05-02 14:18:20 +00:00
5ab63e30fc - add sle15_python_module_pythons (jsc#PED-68)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=24
2023-05-02 05:49:21 +00:00
a8746a06de Accepting request 1083127 from devel:languages:python
- Move documentation into the main package for SLE15

OBS-URL: https://build.opensuse.org/request/show/1083127
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Whoosh?expand=0&rev=7
2023-04-28 14:22:23 +00:00
ff833bc275 - Move documentation into the main package for SLE15
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=22
2023-04-26 21:21:24 +00:00
ac67e5de63 - Switch documentation to be within the main package for SLE15
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=21
2023-04-26 21:19:03 +00:00
ef39234607 Accepting request 901102 from devel:languages:python
- Add NullMatcherClass-hashable.patch which adds __hash__
  method to NullMatcherClass, so that it works with Sphinx4
  (gh#whoosh-community/whoosh#570).

OBS-URL: https://build.opensuse.org/request/show/901102
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Whoosh?expand=0&rev=6
2021-06-23 15:38:07 +00:00
b247e44ac0 - Add NullMatcherClass-hashable.patch which adds __hash__
method to NullMatcherClass, so that it works with Sphinx4
  (gh#whoosh-community/whoosh#570).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=19
2021-06-21 07:57:06 +00:00
e5a8aca15c Accepting request 716224 from devel:languages:python
- Add patch to fix build with pytest4+ (both in git of upstream):
  * pytest4.patch
  * py2encoding.patch
- Use fdupes
- Update URL
- Make sure py2 tests are run too

OBS-URL: https://build.opensuse.org/request/show/716224
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Whoosh?expand=0&rev=5
2019-07-30 11:00:47 +00:00
Tomáš Chvátal
ed524c01a4 - Add patch to fix build with pytest4+ (both in git of upstream):
* pytest4.patch
  * py2encoding.patch
- Use fdupes
- Update URL
- Make sure py2 tests are run too

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=17
2019-07-18 08:33:45 +00:00
c098de16d4 Accepting request 654064 from devel:languages:python
Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/654064
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Whoosh?expand=0&rev=4
2018-12-13 18:44:55 +00:00
73f977b701 Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=15
2018-12-04 17:25:52 +00:00
0b8fd20a5a Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=14
2018-12-04 14:14:21 +00:00
8bc8adc09e Accepting request 509128 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/509128
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Whoosh?expand=0&rev=3
2017-07-11 06:27:23 +00:00
684b47ba0a Accepting request 509125 from home:jengelh:branches:devel:languages:python
- Ensure neutrality of description.

OBS-URL: https://build.opensuse.org/request/show/509125
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=12
2017-07-10 10:35:02 +00:00
15cbe0209e Accepting request 506215 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/506215
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Whoosh?expand=0&rev=2
2017-06-26 13:56:54 +00:00
3c224248fb Accepting request 506212 from home:tbechtold:branches:devel:languages:python
- convert to singlespec
- split -doc package
- use files.pythonhosted.org as Source url
- update to 2.7.4:
  * Changed version number to 2.7.0.
  * Added tag 2.7.0 for changeset 8abeb09483b9
  * Results.extend() didn't update the cached length.
  * Fixed VarBytesListColumn and FixedBytesListColumn.
  * Handle an empty queue exception in mpwriter.
  * Merging pull request with local commit.
  * Added test for storing tuples.
  * Remove caching decorator from VarBytesColumn reader.
  * Added test for has_deletions() after an optimization.
  * Try to avoid an UnboundLocalError in the DFA when MultiTerm.matcher() has
    an empty string.
  * Don't try to write a vector if the list of items is empty.
  * Implemented use of score_fn argument to NestedParent.
  * Don't cache query -> bitset, since this somehow prevents the Searcher from
    being collected.
  * Changed README docs link to point to readthedocs.org.
  * Change uses of dump[s]() to always use protocol 2 instead of -1
    ("use latest protocol") so indices created with Python 3.x are backwards
    compatible.
  * Fix the analyzer in test_vector_unicode() to not lowercase, since this
    makes the test fail on some Python versions.
  * Actually use the split_fn passed by the user. Not sure what happened here.
  * Handle pickled Schema objects that don't have a _subfields attribute.
  * Added fix and tests for calling expand_prefix() with unicode.
  * Fix short code for Swedish in language aliases.
  * Fix missing a consecutive token during highlighting

OBS-URL: https://build.opensuse.org/request/show/506212
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=10
2017-06-26 10:03:55 +00:00
Stephan Kulow
fd4c13108e Accepting request 304166 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/304166
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Whoosh?expand=0&rev=1
2015-04-27 20:08:50 +00:00
Denisart Benjamin
765eb8f77a Accepting request 303610 from home:dec16180:ldig:branches:devel:languages:python
license update: BSD-2-Clause
correct license ist BSD-2-Clause

OBS-URL: https://build.opensuse.org/request/show/303610
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=8
2015-04-24 14:31:52 +00:00
Michal Čihař
328b430787 Accepting request 298565 from home:Nijel:branches:devel:languages:python
- Update to 2.7.0:
  * Removed on-disk word graph implementation of spell checking in favor of much
    simpler and faster FSA implementation over the term file.
  * Many bug fixes.
  * Removed backwards compatibility with indexes created by versions prior to
    2.5. You may need to re-index if you are using an old index that hasn't been
    updated.
  * This is the last 2.x release before a major overhaul that will break backwards
    compatibility.

OBS-URL: https://build.opensuse.org/request/show/298565
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=7
2015-04-22 11:45:46 +00:00
Jan Matejek
8181b7843a Accepting request 241993 from home:Nijel:branches:devel:languages:python
- Upgrate to 2.5.7 (no changelog provided)

OBS-URL: https://build.opensuse.org/request/show/241993
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=6
2014-07-25 13:31:49 +00:00
Sascha Peilicke
662aeb4ab9 - Require python-setuptools instead of distribute (upstreams merged)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=5
2013-10-24 11:17:16 +00:00
Denisart Benjamin
55a91233a7 Accepting request 202506 from home:Nijel:branches:devel:languages:python
Update to version 2.5.4

- build documentation during build
- now uses py.test instead of nose for testing
- Update to version 2.5.4
  + New index format
  + Better API for index creation

OBS-URL: https://build.opensuse.org/request/show/202506
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=4
2013-10-07 14:52:33 +00:00
Sascha Peilicke
bfdc1a6384 Python3 moved to devel:languages:python3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=3
2013-06-17 12:54:45 +00:00
Sascha Peilicke
df00907904 - Disable testsuite on Factory, fails currently
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=2
2013-01-30 12:22:16 +00:00
Sascha Peilicke
459bd8c6ab - Update to version 2.4.1:
+ Fixes issues #242, #257, #261, #262, #263
- Renamed to python-Whoosh, obsoletes python-whoosh
- Install HTML documentation and LICENSE.txt
- Set SPDX-style license
- Run testsuite

- update to 2.4.0
- python3 package added
- a lot of spec improvements 

- updated to 2.3.2
- make package noarch if possible

- Update to version 2.4.1:
  + Fixes issues #242, #257, #261, #262, #263
- Renamed to python3-Whoosh, obsoletes python3-whoosh
- Install HTML documentation and LICENSE.txt
- Set SPDX-style license
- Run testsuite

- python3 package added

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=1
2013-01-30 11:42:07 +00:00
8 changed files with 52 additions and 118 deletions

Binary file not shown.

View File

@@ -1,25 +0,0 @@
From 46b1be3b6fff90d854f234e83aba849201e15d0e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christoph=20Gr=C3=BCninger?= <foss@grueninger.de>
Date: Wed, 4 Sep 2024 17:29:05 +0200
Subject: [PATCH] docs: Update intersphinx_mapping
---
docs/source/conf.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/source/conf.py b/docs/source/conf.py
index e106a33..9d76ec5 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -192,7 +192,7 @@ latex_documents = [
# Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {'http://docs.python.org/': None}
+intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
# Autodoc config
autoclass_content = "both"
--
2.46.0

View File

@@ -1,57 +0,0 @@
From f5a777572fb9c91fa10be3c1ffd5f65cc9323653 Mon Sep 17 00:00:00 2001
From: fortable1999 <fortable1999@gmail.com>
Date: Wed, 12 Dec 2018 11:18:50 +0900
Subject: [PATCH] Fixed test case for ListCorrector; Fixed FSA __eq__ function
---
src/whoosh/automata/fsa.py | 7 +------
tests/test_reading.py | 1 +
tests/test_spelling.py | 7 ++++++-
5 files changed, 12 insertions(+), 8 deletions(-)
create mode 100644 .gitignore
diff --git a/src/whoosh/automata/fsa.py b/src/whoosh/automata/fsa.py
index 280ddb50..54d23f2f 100644
--- a/src/whoosh/automata/fsa.py
+++ b/src/whoosh/automata/fsa.py
@@ -44,12 +44,7 @@ def __eq__(self, other):
return False
st = self.transitions
ot = other.transitions
- if list(st) != list(ot):
- return False
- for key in st:
- if st[key] != ot[key]:
- return False
- return True
+ return st == ot
def all_states(self):
stateset = set(self.transitions)
diff --git a/tests/test_reading.py b/tests/test_reading.py
index e2c2b71d..9fefc41c 100644
--- a/tests/test_reading.py
+++ b/tests/test_reading.py
@@ -1,3 +1,4 @@
+# coding=utf-8
from __future__ import with_statement
import random, threading, time
diff --git a/tests/test_spelling.py b/tests/test_spelling.py
index ce5284f1..440c2d02 100644
--- a/tests/test_spelling.py
+++ b/tests/test_spelling.py
@@ -20,7 +20,12 @@ def test_list_corrector():
corr = spelling.ListCorrector(_wordlist)
typo = "reoction"
sugs = list(corr.suggest(typo, maxdist=2))
- target = [w for w in _wordlist if levenshtein(typo, w) <= 2]
+ target = []
+ for lev_dist in range(1, 3):
+ # sugs will return suggest first ordered by levenshtein distance
+ # then second order by dictionary order
+ target += [w for w in _wordlist
+ if levenshtein(typo, w) <= lev_dist and w not in target]
assert sugs == target

View File

@@ -1,13 +0,0 @@
Index: Whoosh-2.7.4/setup.cfg
===================================================================
--- Whoosh-2.7.4.orig/setup.cfg
+++ Whoosh-2.7.4/setup.cfg
@@ -15,7 +15,7 @@ formats = zip,gztar
push = sdist bdist_wheel upload
pushdocs = build_sphinx upload_sphinx
-[pytest]
+[tool:pytest]
addopts = -rs --tb=native
norecursedirs = .hg .tox _build tmp* env* benchmark stress
minversion = 2.0

View File

@@ -1,3 +1,32 @@
-------------------------------------------------------------------
Thu Aug 14 10:19:14 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Silence reporting unavoidable duplicates.
-------------------------------------------------------------------
Wed Aug 13 16:28:13 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Switch to fork under development and update to 2.7.5
* test_bigfacet.py: print() is a function in Python 3
* remove duplicate_plugin WhitespacePlugin
* [RFC] Give SegmentWriter a cachable Searcher
* Add support for wildcard regex tokenization
* Fixed several errors and added support for the Sweep AI and
Codecov bots
* Update Python version in setup.py classifiers & fix indent
* Improved documentation deployment and added additional locations
where it can be found as backup
- Drop merged patches:
* pytest4.patch
* py2encoding.patch
* docs-Update-intersphinx_mapping.patch
-------------------------------------------------------------------
Fri Jun 13 02:44:41 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
-------------------------------------------------------------------
Wed Sep 4 15:42:36 UTC 2024 - Christoph G <foss@grueninger.de>

1
python-Whoosh.rpmlintrc Normal file
View File

@@ -0,0 +1 @@
addFilter("files-duplicate\s*/usr/share/doc/packages/python-Whoosh-doc/html")

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Whoosh
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,27 +18,26 @@
%{?sle15_python_module_pythons}
Name: python-Whoosh
Version: 2.7.4
Version: 2.7.5
Release: 0
Summary: Pure-Python full text indexing, search, and spell checking library
License: BSD-2-Clause
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
URL: https://github.com/Sygil-Dev/whoosh-reloaded
Source0: https://github.com/Sygil-Dev/whoosh-reloaded/archive/refs/tags/v%{version}.tar.gz
Source99: python-Whoosh.rpmlintrc
# PATCH-FIX-UPSTREAM NullMatcherClass-hashable.patch gh#whoosh-community/whoosh#570 mcepl@suse.com
# NullMatcherClass needs __hash__ method as well for Sphinx4 compatiblity.
Patch2: NullMatcherClass-hashable.patch
# PATCH-FIX-UPSTREAM docs-Update-intersphinx_mapping.patch gh#whoosh-community/whoosh#582
# fix intersphinx_mapping
Patch3: docs-Update-intersphinx_mapping.patch
Patch0: NullMatcherClass-hashable.patch
BuildRequires: %{python_module cached-property}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-Sphinx
BuildRequires: python3-sphinx-jsonschema
BuildRequires: python3-sphinx_rtd_theme
Requires: python-cached-property
BuildArch: noarch
# SECTION the testing dependencies
BuildRequires: %{python_module pytest}
@@ -71,28 +70,28 @@ This package contains the documentation.
%endif
%prep
%autosetup -p1 -n Whoosh-%{version}
%autosetup -p1 -n whoosh-reloaded-%{version}
# Fix CRLF->LF
sed -i -e 's/\r$//' docs/source/api/filedb/{filestore,filetables,structfile}.rst
%build
%python_build
%pyproject_wheel
sphinx-build -b html -d docs/build/doctrees docs/source docs/build/html
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF8
# test_list_corrector - depends on dict sorting thats in py3+ only
%pytest -k 'not test_list_corrector'
%pytest
%files %{python_files}
%license LICENSE.txt
%doc README.txt
%{python_sitelib}/*
%doc README.md
%{python_sitelib}/whoosh
%{python_sitelib}/[Ww]hoosh_[Rr]eloaded-%{version}.dist-info
%if 0%{?suse_version} > 1500
%files -n python-Whoosh-doc

3
v2.7.5.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e84ffc271c9daf9a22bc9ab576b9c4f7ad5cfdc0e096872b0ae32edc4b5c424d
size 1072856