1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
# -*- coding: utf-8 -*-
"""
haystack-redis
~~~~~~~~~~~~~~~~~~~~~~
A Whoosh storage engine using redis for persistence. A Haystack
``SearchBackend`` subclass is also provided. Normally the ``STORAGE`` key could
just be set but Haystack 2.0.0alpha is only aware of ``file`` and ``ram``
backends.
This is especially useful for small sites hosted on Heroku, which does not allow
writing to local disk. The ``REDISTOGO_URL`` environment variable is read,
falling back to the localhost default port.
Usage
-----
Configure your Haystack connections in ``settings.py``::
import tempfile
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack_redis.RedisEngine',
'PATH': tempfile.gettempdir(),
},
}
"""
from setuptools import setup
setup(
name='haystack-redis',
version='0.0.1',
url='https://github.com/steinbro/haystack-redis',
license='BSD',
author=u'Jökull Sólberg Auðunsson',
author_email='jokull@solberg.is',
maintainer='Daniel W. Steinbrook',
maintainer_email='steinbro@post.harvard.edu',
description='Use redis as a persistence layer for Whoosh and Haystack',
long_description=__doc__,
py_modules=['haystack_redis'],
zip_safe=False,
include_package_data=True,
platforms='any',
install_requires=['django-haystack', 'redis', 'whoosh'],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
|