forked from ctpbee/ctpbee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
63 lines (53 loc) · 1.96 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
import io
import re
import sys
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 = ['flask>=1.1.1', "blinker", "requests", "simplejson", "lxml",
'colour_printing>=0.3.16', "ctpbee_api", "pymongo"]
if sys.version_info.major == 3 and sys.version_info.minor == 6:
install_requires.append("dataclasses")
runtime_library_dir = []
try:
import pypandoc
long_description = pypandoc.convert_file('README.md', 'rst')
except Exception:
long_description = ""
pkgs = ['ctpbee', 'ctpbee.context', 'ctpbee.exceptions', 'ctpbee.data_handle', 'ctpbee.interface',
'ctpbee.interface.ctp', "ctpbee.interface.looper", 'ctpbee.jsond', "ctpbee.looper",
"ctpbee.indicator", "ctpbee.research"]
setup(
name='ctpbee',
version=version,
description="Easy ctp trade and market support",
author='somewheve',
long_description=long_description,
author_email='[email protected]',
url='https://github.com/ctpbee/ctpbee',
license="MIT",
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/*', 'holiday.json', "*.html"]},
ext_modules=[],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
entry_points={
'console_scripts': ['ctpbee = ctpbee.cmdline:execute']
}
)