-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
50 lines (34 loc) · 1.04 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
#!/usr/bin/env python
"""
DJ-Search-URL
===============
This simple Django utility allows you to utilize the
`12factor <http://www.12factor.net/backing-services>`_ inspired
``SEARCH_URL`` environment variable to configure your Haystack application.
Usage
-----
Configure your Search index in ``settings.py`` from ``SEARCH_URL``::
HAYSTACK_CONNECTIONS = {"default": dj_search_url.conf()}
Parse an arbitrary Database URL::
HAYSTACK_CONNECTIONS = {"default": dj_search_url.conf("elasticsearch://..")}
Installation
------------
Installation is simple too::
$ pip install dj-search-url
"""
from setuptools import setup
setup(
name="dj-search-url",
version="0.1",
description="Use Search URLs in your Django Haystack Application.",
long_description=__doc__,
url="https://github.com/dstufft/dj-search-url",
author="Donald Stufft",
author_email="[email protected]",
extras_require={
"tests": ["pytest"],
},
py_modules=["dj_search_url"],
include_package_data=True,
zip_safe=False,
)