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

Dmitry Shachnev mitya57 at moszumanska.debian.org
Tue Nov 29 10:48:10 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 e4222973426133c0b3265a854bf82d3695e1668b
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 +-
 4 files changed, 1 insertion(+), 17 deletions(-)

diff --git a/Sphinx.egg-info/requires.txt b/Sphinx.egg-info/requires.txt
index 54a7ef2..3522110 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 8611fc0..bab5c42 100644
--- a/setup.py
+++ b/setup.py
@@ -45,7 +45,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 7f8803f..eb0dc19 100644
--- a/sphinx/search/__init__.py
+++ b/sphinx/search/__init__.py
@@ -120,22 +120,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 0ca6ad1..34593b1 100755
--- a/tests/run.py
+++ b/tests/run.py
@@ -24,7 +24,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