1 Star 1 Fork 1

WindyQin / PyHive

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
setup.py 1.75 KB
一键复制 编辑 原始数据 按行查看 历史
Jing Wang 提交于 2017-09-21 20:13 . Drop SQLAlchemy 0.7 support
#!/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="PyHive",
version=pyhive.__version__,
description="Python interface to Hive",
long_description=long_description,
url='https://github.com/dropbox/PyHive',
author="Jing Wang",
author_email="jing@dropbox.com",
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',
],
extras_require={
'presto': ['requests>=1.0.0'],
'hive': ['sasl>=0.2.1', 'thrift>=0.10.0', 'thrift_sasl>=0.1.0'],
'sqlalchemy': ['sqlalchemy>=0.8.7'],
},
tests_require=[
'mock>=1.0.0',
'pytest',
'pytest-cov',
'requests>=1.0.0',
'sasl>=0.2.1',
'sqlalchemy>=0.8.7',
'thrift>=0.10.0',
],
cmdclass={'test': PyTest},
package_data={
'': ['*.rst'],
},
entry_points={
'sqlalchemy.dialects': [
'hive = pyhive.sqlalchemy_hive:HiveDialect',
'presto = pyhive.sqlalchemy_presto:PrestoDialect',
],
}
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/null_334/PyHive.git
git@gitee.com:null_334/PyHive.git
null_334
PyHive
PyHive
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891