forked from dropbox/PyHive
-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
executable file
·81 lines (74 loc) · 2.47 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/usr/bin/env python
from setuptools import setup
from setuptools.command.test import test as TestCommand
import pyhive
import sys
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
with open('README.rst') as readme:
long_description = readme.read()
setup(
name="acryl-PyHive",
version=pyhive.__version__,
description="Python interface to Hive",
long_description=long_description,
url='https://github.com/acryldata/PyHive',
author="Acryl Data",
author_email="[email protected]",
license="Apache License, Version 2.0",
packages=['pyhive', 'TCLIService'],
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Topic :: Database :: Front-Ends",
],
install_requires=[
'future',
'python-dateutil',
],
extras_require={
'presto': ['requests>=1.0.0'],
'trino': ['requests>=1.0.0'],
# We use sasl3 as a drop-in replacement for sasl, since it resolves a couple
# build issues that sasl has, especially on MacOS systems.
'hive': ['sasl3>=0.2.11', 'thrift>=0.10.0', 'thrift_sasl>=0.1.0'],
'hive-pure-sasl': ['pure-sasl>=0.6.2', 'thrift>=0.10.0', 'thrift_sasl>=0.1.0'],
'sqlalchemy': ['sqlalchemy>=1.3.0,<1.4.0'],
'kerberos': ['requests_kerberos>=0.12.0'],
},
tests_require=[
'mock>=1.0.0',
'pytest',
'pytest-cov',
'requests>=1.0.0',
'requests_kerberos>=0.12.0',
'sasl3>=0.2.11',
'pure-sasl>=0.6.2',
'kerberos>=1.3.0',
'sqlalchemy>=1.3.0',
'thrift>=0.10.0',
],
cmdclass={'test': PyTest},
package_data={
'': ['*.rst'],
},
entry_points={
'sqlalchemy.dialects': [
'hive = pyhive.sqlalchemy_hive:HiveDialect',
"hive.http = pyhive.sqlalchemy_hive:HiveHTTPDialect",
"hive.https = pyhive.sqlalchemy_hive:HiveHTTPSDialect",
'presto = pyhive.sqlalchemy_presto:PrestoDialect',
'trino = pyhive.sqlalchemy_trino:TrinoDialect',
'sparksql = pyhive.sqlalchemy_sparksql:SparkSqlDialect'
],
}
)