PyHive/setup.py

70 строки
1.8 KiB
Python
Исходник Обычный вид История

2014-02-01 12:48:28 +04:00
#!/usr/bin/env python
from setuptools import setup
2014-03-24 11:25:22 +04:00
from setuptools.command.test import test as TestCommand
2014-02-03 11:48:38 +04:00
import pyhive
2014-03-24 11:25:22 +04:00
import sys
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
2016-05-22 01:58:06 +03:00
# import here, cause outside the eggs aren't loaded
2014-03-24 11:25:22 +04:00
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
2014-02-01 12:48:28 +04:00
2017-08-14 07:47:46 +03:00
2014-02-01 13:02:08 +04:00
with open('README.rst') as readme:
2014-02-01 12:48:28 +04:00
long_description = readme.read()
setup(
name="PyHive",
2014-02-03 11:48:38 +04:00
version=pyhive.__version__,
2014-02-01 12:48:28 +04:00
description="Python interface to Hive",
long_description=long_description,
2014-03-24 11:58:22 +04:00
url='https://github.com/dropbox/PyHive',
2014-02-01 12:48:28 +04:00
author="Jing Wang",
author_email="jing@dropbox.com",
2014-03-24 11:58:22 +04:00
license="Apache License, Version 2.0",
2015-07-27 17:01:21 +03:00
packages=['pyhive', 'TCLIService'],
2014-02-01 12:48:28 +04:00
classifiers=[
2014-03-24 11:58:22 +04:00
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Topic :: Database :: Front-Ends",
2014-02-01 12:48:28 +04:00
],
install_requires=[
'future',
'python-dateutil',
],
2014-02-01 12:48:28 +04:00
extras_require={
'presto': ['requests>=1.0.0'],
'hive': ['sasl>=0.2.1', 'thrift>=0.10.0', 'thrift_sasl>=0.1.0'],
2017-09-22 06:13:30 +03:00
'sqlalchemy': ['sqlalchemy>=0.8.7'],
2014-02-01 12:48:28 +04:00
},
tests_require=[
'mock>=1.0.0',
2014-03-24 11:25:22 +04:00
'pytest',
'pytest-cov',
'requests>=1.0.0',
'sasl>=0.2.1',
'sqlalchemy>=0.12.0',
2017-09-01 20:38:40 +03:00
'thrift>=0.10.0',
2014-02-01 13:08:54 +04:00
],
2014-03-24 11:25:22 +04:00
cmdclass={'test': PyTest},
2014-02-01 13:08:54 +04:00
package_data={
'': ['*.rst'],
},
entry_points={
'sqlalchemy.dialects': [
'hive = pyhive.sqlalchemy_hive:HiveDialect',
'presto = pyhive.sqlalchemy_presto:PrestoDialect',
],
}
2014-02-01 12:48:28 +04:00
)