-
Notifications
You must be signed in to change notification settings - Fork 75
/
setup.py
85 lines (74 loc) · 2.35 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
85
import os
import sys
if sys.version_info[:2] < (3, 7):
raise ImportError("""
This version of Nasdaq Data Link no longer supports python versions less than 3.7.0. If you're
reading this message your pip and/or setuptools are outdated. Please run the following to
update them:
pip install setuptools --upgrade
Then try to reinstall nasdaq-data-link:
pip install nasdaq-data-link
""")
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 nasdaqdatalink module here, since deps may not be installed
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'nasdaqdatalink'))
# 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 = [
'nasdaqdatalink',
'nasdaqdatalink.errors',
'nasdaqdatalink.model',
'nasdaqdatalink.operations',
'nasdaqdatalink.utils'
]
setup(
name='Nasdaq Data Link',
description='Package for Nasdaq Data Link API access',
keywords=['nasdaq data link', 'nasdaq', 'datalink', 'API', 'data', 'financial', 'economic'],
long_description=LONG_DESCRIPTION,
version=VERSION,
author='Nasdaq Data Link',
author_email='[email protected]',
maintainer='Nasdaq Data Link Development Team',
maintainer_email='[email protected]',
url='https://github.com/Nasdaq/data-link-python',
license='MIT',
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10"
],
install_requires=INSTALL_REQUIRES,
tests_require=TEST_REQUIRES,
python_requires='>= 3.7',
test_suite="nose.collector",
packages=PACKAGES
)