1 Star 0 Fork 0

maoj66/ctpbee

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
setup.py 1.96 KB
一键复制 编辑 原始数据 按行查看 历史
via 提交于 2021-03-05 19:25 . add research model
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='somewheve@gmail.com',
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']
}
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/maoj66/ctpbee.git
git@gitee.com:maoj66/ctpbee.git
maoj66
ctpbee
ctpbee
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385