Skip to content

Commit 97df355

Browse files
committed
Require Whoosh 1.8.3+. It's for your own good.
1 parent 3cb3a3a commit 97df355

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

haystack/backends/whoosh_backend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
from whoosh.writing import AsyncWriter
3939

4040
# Handle minimum requirement.
41-
if not hasattr(whoosh, '__version__') or whoosh.__version__ < (1, 8, 1):
42-
raise MissingDependency("The 'whoosh' backend requires version 1.8.1 or greater.")
41+
if not hasattr(whoosh, '__version__') or whoosh.__version__ < (1, 8, 3):
42+
raise MissingDependency("The 'whoosh' backend requires version 1.8.3 or greater.")
4343

4444

4545
DATETIME_REGEX = re.compile('^(?P<year>\d{4})-(?P<month>\d{2})-(?P<day>\d{2})T(?P<hour>\d{2}):(?P<minute>\d{2}):(?P<second>\d{2})(\.\d{3,6}Z?)?$')

setup.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@
2020
package_data={
2121
'haystack': ['templates/search_configuration/*']
2222
},
23-
classifiers=['Development Status :: 5 - Production/Stable',
24-
'Environment :: Web Environment',
25-
'Framework :: Django',
26-
'Intended Audience :: Developers',
27-
'License :: OSI Approved :: BSD License',
28-
'Operating System :: OS Independent',
29-
'Programming Language :: Python',
30-
'Topic :: Utilities'],
23+
classifiers=[
24+
'Development Status :: 5 - Production/Stable',
25+
'Environment :: Web Environment',
26+
'Framework :: Django',
27+
'Intended Audience :: Developers',
28+
'License :: OSI Approved :: BSD License',
29+
'Operating System :: OS Independent',
30+
'Programming Language :: Python',
31+
'Topic :: Utilities'
32+
],
3133
)

0 commit comments

Comments
 (0)