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

Dmitry Shachnev mitya57 at moszumanska.debian.org
Mon Jan 25 12:45:56 UTC 2016


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

mitya57 pushed a commit to branch master
in repository sphinx.

commit d60ce74116c0b031c7c4f93bc10e7cd8af67f296
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
    Last-Update: 2015-05-08
    
    Patch-Name: no_snowballstemmer.diff
---
 Sphinx.egg-info/requires.txt |  1 -
 setup.py                     |  1 -
 sphinx/search/__init__.py    | 14 --------------
 tests/run.py                 |  2 +-
 4 files changed, 1 insertion(+), 17 deletions(-)

diff --git a/Sphinx.egg-info/requires.txt b/Sphinx.egg-info/requires.txt
index 8b45115..936c824 100644
--- a/Sphinx.egg-info/requires.txt
+++ b/Sphinx.egg-info/requires.txt
@@ -2,7 +2,6 @@ six>=1.4
 Jinja2>=2.3
 Pygments>=2.0
 docutils>=0.11
-snowballstemmer>=1.1
 babel>=1.3,!=2.0
 alabaster>=0.7,<0.8
 sphinx_rtd_theme>=0.1,<2.0
diff --git a/setup.py b/setup.py
index b556549..e656779 100644
--- a/setup.py
+++ b/setup.py
@@ -51,7 +51,6 @@ requires = [
     'Jinja2>=2.3',
     'Pygments>=2.0',
     'docutils>=0.11',
-    'snowballstemmer>=1.1',
     'babel>=1.3,!=2.0',
     'alabaster>=0.7,<0.8',
     'sphinx_rtd_theme>=0.1,<2.0',
diff --git a/sphinx/search/__init__.py b/sphinx/search/__init__.py
index 06b8351..648abd8 100644
--- a/sphinx/search/__init__.py
+++ b/sphinx/search/__init__.py
@@ -119,22 +119,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',
 }
 
 
diff --git a/tests/run.py b/tests/run.py
index b4bbf98..b9a198c 100755
--- a/tests/run.py
+++ b/tests/run.py
@@ -23,7 +23,7 @@ sys.path.insert(0, os.path.abspath(os.path.join(testroot, os.path.pardir)))
 # check dependencies before testing
 print('Checking dependencies...')
 for modname in ('nose', 'mock', 'six', 'docutils', 'jinja2', 'pygments',
-                'snowballstemmer', 'babel'):
+                'babel'):
     try:
         __import__(modname)
     except ImportError as err:

-- 
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