This repository has been archived by the owner on Apr 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 340
/
setup.py
84 lines (73 loc) · 2.14 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
82
83
84
import os
import sys
if sys.version_info[:2] < (3, 6):
raise ImportError("""
This version of quandl no longer supports python versions less than 3.6.0. If you're
reading this message your pip and/or setuptools are outdated. Please run the following to
update them:
pip install pip setuptools --upgrade
Then try to reinstall quandl:
pip install quandl
""")
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'
]
TEST_REQUIRES = [
'flake8',
'nose',
'httpretty',
'mock',
'factory_boy',
'jsondate',
'parameterized'
]
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',
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8"
],
install_requires=INSTALL_REQUIRES,
tests_require=TEST_REQUIRES,
python_requires='>= 3.6',
test_suite="nose.collector",
packages=PACKAGES
)