[Python-modules-commits] [sphinx] 05/07: do not support snowballstemmer-based search for now

Dmitry Shachnev mitya57 at moszumanska.debian.org
Sun Jan 22 09:17:55 UTC 2017


This is an automated email from the git hooks/post-receive script.

mitya57 pushed a commit to branch master
in repository sphinx.

commit 43738c67750de153c3c53b40ce02bd4e4401aa13
Author: Dmitry Shachnev <mitya57 at debian.org>
Date:   Thu Oct 8 13:58:05 2015 -0700

    do not support snowballstemmer-based search for now
    
    Forwarded: not-needed
    Patch-Name: no_snowballstemmer.diff
---
 Sphinx.egg-info/requires.txt |  1 -
 setup.py                     |  1 -
 sphinx/search/__init__.py    | 14 --------------
 tests/run.py                 |  2 +-
 tests/test_search.py         |  1 +
 5 files changed, 2 insertions(+), 17 deletions(-)

diff --git a/Sphinx.egg-info/requires.txt b/Sphinx.egg-info/requires.txt
index dec5766..b7d881a 100644
--- a/Sphinx.egg-info/requires.txt
+++ b/Sphinx.egg-info/requires.txt
@@ -2,7 +2,6 @@ six>=1.5
 Jinja2>=2.3
 Pygments>=2.0
 docutils>=0.11
-snowballstemmer>=1.1
 babel>=1.3,!=2.0
 alabaster>=0.7,<0.8
 imagesize
diff --git a/setup.py b/setup.py
index fa0be67..2f8591a 100644
--- a/setup.py
+++ b/setup.py
@@ -46,7 +46,6 @@ requires = [
     'Jinja2>=2.3',
     'Pygments>=2.0',
     'docutils>=0.11',
-    'snowballstemmer>=1.1',
     'babel>=1.3,!=2.0',
     'alabaster>=0.7,<0.8',
     'imagesize',
diff --git a/sphinx/search/__init__.py b/sphinx/search/__init__.py
index 8f29352..854a071 100644
--- a/sphinx/search/__init__.py
+++ b/sphinx/search/__init__.py
@@ -121,22 +121,8 @@ def parse_stop_word(source):
 
 # maps language name to module.class or directly a class
 languages = {
-    'da': 'sphinx.search.da.SearchDanish',
-    'de': 'sphinx.search.de.SearchGerman',
     'en': SearchEnglish,
-    'es': 'sphinx.search.es.SearchSpanish',
-    'fi': 'sphinx.search.fi.SearchFinnish',
-    'fr': 'sphinx.search.fr.SearchFrench',
-    'hu': 'sphinx.search.hu.SearchHungarian',
-    'it': 'sphinx.search.it.SearchItalian',
     'ja': 'sphinx.search.ja.SearchJapanese',
-    'nl': 'sphinx.search.nl.SearchDutch',
-    'no': 'sphinx.search.no.SearchNorwegian',
-    'pt': 'sphinx.search.pt.SearchPortuguese',
-    'ro': 'sphinx.search.ro.SearchRomanian',
-    'ru': 'sphinx.search.ru.SearchRussian',
-    'sv': 'sphinx.search.sv.SearchSwedish',
-    'tr': 'sphinx.search.tr.SearchTurkish',
     'zh': 'sphinx.search.zh.SearchChinese',
 }
 
diff --git a/tests/run.py b/tests/run.py
index a7afbb8..2a4876a 100755
--- a/tests/run.py
+++ b/tests/run.py
@@ -29,7 +29,7 @@ warnings.filterwarnings('ignore', category=PendingDeprecationWarning, module=r'_
 # check dependencies before testing
 print('Checking dependencies...')
 for modname in ('pytest', 'mock', 'six', 'docutils', 'jinja2', 'pygments',
-                'snowballstemmer', 'babel', 'html5lib'):
+                'babel', 'html5lib'):
     try:
         __import__(modname)
     except ImportError as err:
diff --git a/tests/test_search.py b/tests/test_search.py
index 143a3db..250bbde 100644
--- a/tests/test_search.py
+++ b/tests/test_search.py
@@ -80,6 +80,7 @@ def test_meta_keys_are_handled_for_language_en(app, status, warning):
     assert not is_registered_term(searchindex, 'onlytoogerman')
 
 
+ at pytest.mark.skip('Search languages using snowball are currently disabled')
 @pytest.mark.sphinx(testroot='search', confoverrides={'html_search_language': 'de'})
 def test_meta_keys_are_handled_for_language_de(app, status, warning):
     app.builder.build_all()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/sphinx.git



More information about the Python-modules-commits mailing list