forked from druid-io/pydruid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (34 loc) · 1.19 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
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
status = pytest.main(self.pytest_args)
sys.exit(status)
install_requires = ["six >= 1.9.0"]
# only require simplejson on python < 2.6
if sys.version_info < (2, 6):
install_requires.append("simplejson >= 3.3.0")
setup(
name='pydruid',
version='0.2.4',
author='Deep Ganguli',
author_email='[email protected]',
packages=['pydruid', 'pydruid.utils'],
url='http://pypi.python.org/pypi/pydruid/',
license='Apache License, Version 2.0',
description='A Python connector for Druid.',
long_description='See https://github.com/druid-io/pydruid for more information.',
install_requires=install_requires,
tests_require=['pytest'],
cmdclass={'test': PyTest},
)