forked from 51bitquant/howtrader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
96 lines (85 loc) · 2.93 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
86
87
88
89
90
91
92
93
94
95
96
"""
Forked from VNPY - By Traders, For Traders.
The howtrader project is an open-source quantitative trading framework
that is developed by traders, for traders.
The project is mainly written in Python and uses C++ for low-layer
and performance sensitive infrastructure.
Using the howtrader project, institutional investors and professional
traders, such as hedge funds, prop trading firms and investment banks,
can easily develop complex trading strategies with the Event Engine
Strategy Module, and automatically route their orders to the most
desired destinations, including equity, commodity, forex and many
other financial markets.
"""
import ast
import re
import sys
from setuptools import find_packages, setup
def get_install_requires():
install_requires = [
"simplejson",
"flask",
"PySide6",
"pyqtgraph",
"qdarkstyle",
"requests",
"aiohttp",
"pytz",
"peewee",
"pymongo",
"numpy",
"pandas",
"matplotlib",
"seaborn",
"deap",
"tzlocal",
"plotly",
"importlib-metadata"
]
if sys.version_info.minor < 7:
install_requires.append("dataclasses")
return install_requires
def get_version_string():
global version
with open("howtrader/__init__.py", "rb") as f:
version_line = re.search(
r"__version__\s+=\s+(.*)", f.read().decode("utf-8")
).group(1)
return str(ast.literal_eval(version_line))
setup(
name="howtrader",
version=get_version_string(),
author="vn.py team,51bitquant",
author_email="[email protected]",
license="MIT",
url="https://www.vnpy.com",
description="A framework for developing quant trading systems.",
long_description=__doc__,
keywords='quant quantitative investment trading algotrading',
include_package_data=True,
packages=find_packages(exclude=["tests", "ci", "tests.*"]),
package_data={"": [
"*.ico",
"*.ini",
"*.dll",
"*.so",
"*.pyd",
]},
install_requires=get_install_requires(),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Operating System :: Microsoft :: Windows :: Windows 7",
"Operating System :: Microsoft :: Windows :: Windows 8",
"Operating System :: Microsoft :: Windows :: Windows 10",
"Operating System :: Microsoft :: Windows :: Windows Server 2008",
"Operating System :: Microsoft :: Windows :: Windows Server 2012",
"Operating System :: Microsoft :: Windows :: Windows Server 2012",
"Operating System :: POSIX :: Linux"
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Topic :: Office/Business :: Financial :: Investment :: 51bitquant",
"Programming Language :: Python :: Implementation :: CPython",
"License :: OSI Approved :: MIT License",
"Natural Language :: English"
],
)