forked from zhibzeng/quantlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·51 lines (44 loc) · 1.52 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
import os
import pypandoc
from setuptools import find_packages
with open(os.path.join(os.path.dirname(__file__), 'quant/VERSION')) as f:
version = f.read().strip()
def resolve_requirements():
requirements = []
with open('requirements.txt') as f:
for line in f:
line = line.strip()
if line and not line.startswith("#"):
requirements.append(line.strip("\n"))
return requirements
setup_args = dict(
name='quantlib',
version=version,
packages=find_packages(exclude=["*.test", "*.test.*", "test.*", "test", "script", "private", "tests"]),
install_requires=resolve_requirements(),
include_package_data=True,
scripts=["scripts/quantlib"],
url='http://quantlib.readthedocs.io/',
license='GNU',
author='SnowWalkerJ',
author_email='[email protected]',
description='A Quant library that helps data processing and backtesting',
long_decription=pypandoc.convert("README.md", "rst"),
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Operating System :: OS Independent',
'Operating System :: POSIX',
'Operating System :: MacOS',
'Operating System :: Unix',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
else:
setup_args['install_requires'].append('pyinstaller')
setup(**setup_args)