forked from quandl/quandl-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
68 lines (60 loc) · 1.54 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
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('LONG_DESCRIPTION.rst') as f:
long_description = f.read()
# Don't import quandl module here, since deps may not be installed
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'quandl'))
# can only import VERSION successfully after the above line
# ignore flake8 warning that requires imports to be at the top
from version import VERSION # NOQA
install_requires = [
'pandas >= 0.14',
'numpy >= 1.8',
'requests >= 2.7.0',
'inflection >= 0.3.1',
'python-dateutil',
'six',
'more-itertools'
]
installs_for_two = [
'pyOpenSSL',
'ndg-httpsclient',
'pyasn1'
]
if sys.version_info[0] < 3:
install_requires += installs_for_two
packages = [
'quandl',
'quandl.errors',
'quandl.model',
'quandl.operations',
'quandl.utils'
]
setup(
name='Quandl',
description='Package for quandl API access',
keywords=['quandl', 'API', 'data', 'financial', 'economic'],
long_description=long_description,
version=VERSION,
author='Quandl',
author_email='[email protected]',
maintainer='Quandl Development Team',
maintainer_email='[email protected]',
url='https://github.com/quandl/quandl-python',
license='MIT',
install_requires=install_requires,
tests_require=[
'flake8',
'nose',
'httpretty',
'mock',
'factory_boy',
'jsondate'
],
test_suite="nose.collector",
packages=packages
)