forked from FinHackCN/finhack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·34 lines (26 loc) · 876 Bytes
/
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
from setuptools import setup, find_packages
import os
root_dir = 'finhack'
version='0.0.3.dev2'
for subdir, dirs, files in os.walk(root_dir):
if not '__init__.py' in files:
init_file_path = os.path.join(subdir, '__init__.py')
open(init_file_path, 'a').close()
print(f'Created __init__.py in {subdir}')
with open('./finhack/__init__.py', 'w') as file:
file.write(f"__version__ = '{version}'\n")
with open('./finhack/requirements.txt') as f:
requirements = f.read().splitlines()
setup(
name='finhack',
version=version,
author='woldy',
description='A scalable quantitative financial analysis framework.',
packages=find_packages(),
package_data={
'finhack': ['*.*', '**/*.*']
},
include_package_data=True,
scripts=['finhack/core/command/finhack'],
install_requires=requirements,
)