-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.py
More file actions
32 lines (28 loc) · 848 Bytes
/
setup.py
File metadata and controls
32 lines (28 loc) · 848 Bytes
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
# coding=utf-8
import sys, os
from setuptools import find_packages
from setuptools import setup
assert sys.version_info[0] == 3 and sys.version_info[1] >= 5, "hive2elastic requires Python 3.5 or newer"
# Get version from the VERSION file
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'VERSION'), encoding='utf-8') as f:
version = f.read()
setup(
name='hive2elastic',
version=version,
description='hive to elastic exporter',
long_description=open('README.md').read(),
packages=find_packages(),
install_requires=[
'configargparse',
'elasticsearch',
'sqlalchemy',
'psycopg2-binary',
'markdown2',
'timeout_decorator'
],
entry_points={
'console_scripts': [
'hive2elastic_post=post.indexer:main'
]
})