-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathsetup.py
88 lines (71 loc) · 2.33 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
import codecs
import io
import os
import re
import sys
import webbrowser
import platform
import configparser
try:
from setuptools import setup
except:
from distutils.core import setup
"""
"""
if sys.version_info.major != 3 or sys.version_info.minor not in [4, 5, 6, 7, 8]:
print('wrong version, should be 3.4/3.5/3.6/3.7/3.8 version')
sys.exit()
with io.open('QARealtimeCollector/__init__.py', 'rt', encoding='utf8') as f:
context = f.read()
VERSION = re.search(r'__version__ = \'(.*?)\'', context).group(1)
AUTHOR = re.search(r'__author__ = \'(.*?)\'', context).group(1)
def read(fname):
return codecs.open(os.path.join(os.path.dirname(__file__), fname)).read()
NAME = "qarealtime_collector"
"""
"""
PACKAGES = ["QARealtimeCollector", "QARealtimeCollector.collectors",
"QARealtimeCollector.clients", "QARealtimeCollector.datahandler"]
"""
"""
DESCRIPTION = "QARealtimeCollector: QUANTAXIS REALTIME MARKETDATA COLLECTORS"
KEYWORDS = ["quantaxis", "quant", "finance", "Backtest", 'Framework']
"""
"""
AUTHOR_EMAIL = "yutiansut@qq.com"
URL = "https://github.com/yutiansut/QUANTAXIS_RealtimeCollector"
LICENSE = "MIT"
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=DESCRIPTION,
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
],
install_requires=['quantaxis', 'quantaxis_pubsub',
'quantaxis-otgbroker', 'quantaxis-randomprice','quantaxis_webserver'],
entry_points={
'console_scripts': [
'QARC_Start = QARealtimeCollector.__init__:start',
'QARC_Resample = QARealtimeCollector.__init__:resample',
'QARC_Random = QARealtimeCollector.__init__:random',
'QARC_Fast = QARealtimeCollector.__init__:faststart',
'QARC_CTP = QARealtimeCollector.__init__:start_ctp',
'QARC_Stock = QARealtimeCollector.__init__:stock_collector',
'QARC_WEBSERVER = QARealtimeCollector.webserver:main'
]
},
# install_requires=requirements,
keywords=KEYWORDS,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=URL,
license=LICENSE,
packages=PACKAGES,
include_package_data=True,
zip_safe=True
)