forked from quantopian/pyfolio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·81 lines (70 loc) · 2.57 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
#!/usr/bin/env python
import sys
from setuptools import setup
import versioneer
DISTNAME = 'pyfolio'
DESCRIPTION = "pyfolio is a Python library for performance"
"and risk analysis of financial portfolios"
LONG_DESCRIPTION = """pyfolio is a Python library for performance and risk analysis of
financial portfolios developed by `Quantopian Inc`_. It works well with the
`Zipline`_ open source backtesting library.
At the core of pyfolio is a so-called tear sheet that consists of
various individual plots that provide a comprehensive performance
overview of a portfolio.
.. _Quantopian Inc: https://www.quantopian.com
.. _Zipline: http://zipline.io
"""
MAINTAINER = 'Quantopian Inc'
MAINTAINER_EMAIL = 'opensource@quantopian.com'
AUTHOR = 'Quantopian Inc'
AUTHOR_EMAIL = 'opensource@quantopian.com'
URL = "https://github.com/quantopian/pyfolio"
LICENSE = "Apache License, Version 2.0"
classifiers = ['Development Status :: 4 - Beta',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'License :: OSI Approved :: Apache Software License',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Operating System :: OS Independent']
support_ipython_6 = (sys.version_info >= (3, 3))
install_reqs = [
'ipython>=3.2.3' if support_ipython_6 else 'ipython>=3.2.3, <6',
'matplotlib>=1.4.0',
'numpy>=1.11.1',
'pandas>=0.18.1',
'pytz>=2014.10',
'scipy>=0.14.0',
'scikit-learn>=0.16.1',
'seaborn>=0.7.1',
'empyrical>=0.5.0',
]
test_reqs = ['nose>=1.3.7', 'nose-parameterized>=0.5.0', 'runipy>=0.1.3']
extras_reqs = {
'test': test_reqs,
'all': test_reqs
}
if __name__ == "__main__":
setup(
name=DISTNAME,
cmdclass=versioneer.get_cmdclass(),
version=versioneer.get_version(),
maintainer=MAINTAINER,
maintainer_email=MAINTAINER_EMAIL,
description=DESCRIPTION,
license=LICENSE,
url=URL,
long_description=LONG_DESCRIPTION,
packages=['pyfolio', 'pyfolio.tests'],
package_data={'pyfolio': ['data/*.*']},
classifiers=classifiers,
install_requires=install_reqs,
extras_require=extras_reqs,
tests_require=test_reqs,
test_suite='nose.collector',
)