changeset 2038:3217a345d20a

switch to whoosh 2.5
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 19 Mar 2013 21:16:07 +0100
parents 4307c3e76076
children 12961b623cb6 d47f2665684a
files MoinMoin/storage/middleware/protecting.py setup.py
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/storage/middleware/protecting.py	Sun Mar 03 12:58:29 2013 -0700
+++ b/MoinMoin/storage/middleware/protecting.py	Tue Mar 19 21:16:07 2013 +0100
@@ -19,7 +19,7 @@
 from MoinMoin import log
 logging = log.getLogger(__name__)
 
-from whoosh.util import lru_cache
+from whoosh.util.cache import lru_cache
 
 from MoinMoin.constants.rights import (CREATE, READ, PUBREAD, WRITE, DESTROY, ACL_RIGHTS_CONTENTS)
 from MoinMoin.constants.keys import ALL_REVS, LATEST_REVS, NAME_EXACT, ITEMID
--- a/setup.py	Sun Mar 03 12:58:29 2013 -0700
+++ b/setup.py	Tue Mar 19 21:16:07 2013 +0100
@@ -76,7 +76,8 @@
     zip_safe=False,
     dependency_links=[
         # 'https://github.com/mitsuhiko/werkzeug/tarball/master#egg=Werkzeug-0.7dev',
-        'https://bitbucket.org/thomaswaldmann/whoosh/get/2.4x.tar.gz#egg=Whoosh-2.4.99dev',
+        # 'https://bitbucket.org/thomaswaldmann/whoosh/get/2.4x.tar.gz#egg=Whoosh-2.4.99dev',
+        'https://bitbucket.org/thomaswaldmann/whoosh/get/default.tar.gz#egg=Whoosh-2.5.99dev',
         # fixed flask-themes, 0.1.3 does not work for flask 0.8.x, thus we use a faked 0.1.3.1:
         'https://bitbucket.org/thomaswaldmann/flask-themes/get/24dcc703953f.tar.gz#egg=Flask-Themes-0.1.3.1',
         'https://bitbucket.org/thomaswaldmann/emeraldtree/get/tip.tar.gz#egg=emeraldtree-0.9.2',
@@ -100,7 +101,8 @@
                               # likely due to the fixtures changes.
         'pytest-pep8<1.0.3',  # coding style checker
                               # note: pytest-pep8 1.0.3 needs pytest 2.3
-        'whoosh>=2.4.0',  # needed for indexed search
+        # 'whoosh>=2.4.0',  # needed for indexed search
+        'whoosh>=2.5.0',  # needed for indexed search
         'sphinx>=1.1',  # needed to build the docs
         'pdfminer',  # pdf -> text/plain conversion
         'passlib>=1.6.0',  # strong password hashing (1.6 needed for consteq)