This repository has been archived by the owner on Mar 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
54 lines (46 loc) · 1.55 KB
/
setup.py
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
# -*- coding: utf-8 -*-
"""
haystack-redis
~~~~~~~~~~~~~~~~~~~~~~
A Whoosh storage engine using redis for persistance. 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.0',
url='https://github.com/jokull/haystack-redis',
license='BSD',
author=u'Jökull Sólberg Auðunsson',
author_email='[email protected]',
description='Use redis as a persistance layer for Whoosh and Haystack',
long_description=__doc__,
py_modules=['haystack_redis'],
zip_safe=False,
include_package_data=True,
platforms='any',
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'
]
)