forked from anti-social/elasticmagic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
36 lines (32 loc) · 1.21 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
import os
from setuptools import setup, find_packages
def get_version():
with open(os.path.join('elasticmagic', 'version.py'), 'rt') as version_file:
return version_file.readline().split('=')[1].strip().strip("'\"")
def parse_requirements(req_file_path):
with open(req_file_path) as req_file:
return req_file.read().splitlines()
setup(
name="elasticmagic",
version=get_version(),
author="Alexander Koval",
author_email="[email protected]",
description=("Python orm for elasticsearch."),
license="Apache License 2.0",
keywords="elasticsearch dsl",
url="https://github.com/anti-social/elasticmagic",
packages=find_packages(exclude=["tests"]),
install_requires=parse_requirements("requirements.txt"),
extras_require={
"geo": parse_requirements("requirements_geo.txt"),
},
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Internet :: WWW/HTTP :: Indexing/Search",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)