forked from quandl/quandl-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
38 lines (34 loc) · 1.24 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
from Quandl import __version__, __authors__, __maintainer__, __email__, __url__, __license__
from Quandl import __name__ as package_name
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
try:
from pip.req import parse_requirements
requirements = list(parse_requirements('requirements.txt'))
except:
requirements = []
install_requires=[str(req).split(' ')[0].strip() for req in requirements if req.req and not req.url]
print('Install requirements found in requirements.txt: %r' % install_requires)
dependency_links=[req.url for req in requirements if req.url]
print('Dependencies found in requirements.txt: %r' % dependency_links)
setup(
name = package_name,
description = 'Package for Quandl API access',
long_description = open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
version = __version__,
author = ", ".join(__authors__),
maintainer = __maintainer__,
maintainer_email = __email__,
url = __url__,
license = __license__,
install_requires = [
"pandas >= 0.14",
"numpy >= 1.8",
],
# install_requires = install_requires,
dependency_links = dependency_links,
packages = ['Quandl'],
)