forked from ctpbee/ctpbee
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
49 lines (41 loc) · 1.58 KB
/
setup.py
File metadata and controls
49 lines (41 loc) · 1.58 KB
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
import io
import re
import sys
from pathlib import Path
from setuptools import setup
with io.open('ctpbee/__init__.py', 'rt', encoding='utf8') as f:
context = f.read()
version = re.search(r'__version__ = \'(.*?)\'', context).group(1)
if sys.version_info < (3, 6):
raise RuntimeError('当前ctpbee只支持python36以及更高版本/ ctpbee only support python36 and higher ')
# libraries
install_requires = ["pytz", "blinker", "requests", "simplejson", "lxml", "jinja2", "redis", "click",
'cologer>=2.0', "ctpbee_api>=0.40", "numpy", "pandas"]
if sys.version_info.major == 3 and sys.version_info.minor == 6:
install_requires.append("dataclasses")
pkgs = ['ctpbee', 'ctpbee.context', 'ctpbee.exceptions', 'ctpbee.data_handle', 'ctpbee.interface',
'ctpbee.interface.ctp', "ctpbee.interface.local", "ctpbee.interface.looper", "ctpbee.interface.ctp_mini",
'ctpbee.jsond', "ctpbee.looper",
"ctpbee.indicator"]
setup(
name='ctpbee',
version=version,
description="Easy ctp trade and market support",
author='somewheve',
author_email='somewheve@gmail.com',
url='https://github.com/ctpbee/ctpbee',
license="MIT",
long_description_content_type="text/markdown",
packages=pkgs,
install_requires=install_requires,
platforms=["Windows", "Linux", "Mac OS-X"],
package_dir={'ctpbee': 'ctpbee'},
zip_safe=False,
include_package_data=True,
data_files=[],
package_data={'ctpbee': ['api/ctp/*', "*.html"]},
ext_modules=[],
entry_points={
'console_scripts': ['bee = ctpbee.cmdline:cli']
}
)