forked from rhblind/drf-haystack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (55 loc) · 1.76 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
55
56
57
58
59
60
# -*- coding: utf-8 -*-
import re
import os
try:
from setuptools import setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
def get_version(package):
"""
Return package version as listed in `__version__` in `init.py`.
"""
init_py = open(os.path.join(package, "__init__.py")).read()
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
setup(
name="drf-haystack",
version=get_version("drf_haystack"),
description="Makes Haystack play nice with Django REST Framework",
long_description="Implements a ViewSet, FiltersBackends and Serializers in order to play nice with Haystack.",
author="Rolf Håvard Blindheim",
author_email="[email protected]",
url="https://github.com/inonit/drf-haystack",
download_url="https://github.com/inonit/drf-haystack.git",
license="MIT License",
packages=[
"drf_haystack",
],
include_package_data=True,
install_requires=[
"Django>=1.8.0",
"djangorestframework>=3.2.0",
"django-haystack>=2.5.dev1",
"python-dateutil"
],
tests_require=[
"nose",
"coverage",
"unittest2",
"elasticsearch<2.0.0",
],
zip_safe=False,
test_suite="tests.runtests.start",
classifiers=[
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
]
)