diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 05:21:33 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 05:21:33 +0000 |
commit | 2ba39de2d63454ddbe1aebdef4da3a497d82a3b5 (patch) | |
tree | 42c39006839cc4763d6b89c99321696ae4eb122e | |
parent | 28d67403190b97b6a8cbc926a393e856ded25c70 (diff) |
automatic import of python-vnpy-daopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-vnpy-da.spec | 268 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 270 insertions, 0 deletions
@@ -0,0 +1 @@ +/vnpy_da-1.12.2.tar.gz diff --git a/python-vnpy-da.spec b/python-vnpy-da.spec new file mode 100644 index 0000000..200d26a --- /dev/null +++ b/python-vnpy-da.spec @@ -0,0 +1,268 @@ +%global _empty_manifest_terminate_build 0 +Name: python-vnpy-da +Version: 1.12.2 +Release: 1 +Summary: DA International gateway for VeighNa quant trading framework. +License: MIT +URL: https://www.vnpy.com +Source0: https://mirrors.aliyun.com/pypi/web/packages/92/f6/29d80cfeecc3790959ab9f6f9e3f2cba320f3836efe1f0a903edb876634f/vnpy_da-1.12.2.tar.gz + +Requires: python3-importlib-metadata +Requires: python3-wmi + +%description +# VeighNa框架的直达期货交易接口 +<p align="center"> + <img src ="https://vnpy.oss-cn-shanghai.aliyuncs.com/vnpy-logo.png"/> +</p> + +<p align="center"> + <img src ="https://img.shields.io/badge/version-1.12.2-blueviolet.svg"/> + <img src ="https://img.shields.io/badge/platform-windows-yellow.svg"/> + <img src ="https://img.shields.io/badge/python-3.7|3.8|3.9|3.10-blue.svg" /> + <img src ="https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange"/> +</p> + +## 说明 + +基于DAApi的1.12版本封装开发的直达期货交易接口。 + +## 安装 + +安装环境推荐基于3.3.0版本以上的【[**VeighNa Studio**](https://www.vnpy.com)】。 + +直接使用pip命令: + +``` +pip install vnpy_da +``` + + +或者下载源代码后,解压后在cmd中运行: + +``` +pip install . +``` + +## 使用 + +以脚本方式启动(script/run.py): + +``` +from vnpy.event import EventEngine +from vnpy.trader.engine import MainEngine +from vnpy.trader.ui import MainWindow, create_qapp + +from vnpy_da import DaGateway + + +def main(): + """主入口函数""" + qapp = create_qapp() + + event_engine = EventEngine() + main_engine = MainEngine(event_engine) + main_engine.add_gateway(DaGateway) + + main_window = MainWindow(main_engine, event_engine) + main_window.showMaximized() + + qapp.exec() + + +if __name__ == "__main__": + main() +``` + + + + +%package -n python3-vnpy-da +Summary: DA International gateway for VeighNa quant trading framework. +Provides: python-vnpy-da +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-vnpy-da +# VeighNa框架的直达期货交易接口 +<p align="center"> + <img src ="https://vnpy.oss-cn-shanghai.aliyuncs.com/vnpy-logo.png"/> +</p> + +<p align="center"> + <img src ="https://img.shields.io/badge/version-1.12.2-blueviolet.svg"/> + <img src ="https://img.shields.io/badge/platform-windows-yellow.svg"/> + <img src ="https://img.shields.io/badge/python-3.7|3.8|3.9|3.10-blue.svg" /> + <img src ="https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange"/> +</p> + +## 说明 + +基于DAApi的1.12版本封装开发的直达期货交易接口。 + +## 安装 + +安装环境推荐基于3.3.0版本以上的【[**VeighNa Studio**](https://www.vnpy.com)】。 + +直接使用pip命令: + +``` +pip install vnpy_da +``` + + +或者下载源代码后,解压后在cmd中运行: + +``` +pip install . +``` + +## 使用 + +以脚本方式启动(script/run.py): + +``` +from vnpy.event import EventEngine +from vnpy.trader.engine import MainEngine +from vnpy.trader.ui import MainWindow, create_qapp + +from vnpy_da import DaGateway + + +def main(): + """主入口函数""" + qapp = create_qapp() + + event_engine = EventEngine() + main_engine = MainEngine(event_engine) + main_engine.add_gateway(DaGateway) + + main_window = MainWindow(main_engine, event_engine) + main_window.showMaximized() + + qapp.exec() + + +if __name__ == "__main__": + main() +``` + + + + +%package help +Summary: Development documents and examples for vnpy-da +Provides: python3-vnpy-da-doc +%description help +# VeighNa框架的直达期货交易接口 +<p align="center"> + <img src ="https://vnpy.oss-cn-shanghai.aliyuncs.com/vnpy-logo.png"/> +</p> + +<p align="center"> + <img src ="https://img.shields.io/badge/version-1.12.2-blueviolet.svg"/> + <img src ="https://img.shields.io/badge/platform-windows-yellow.svg"/> + <img src ="https://img.shields.io/badge/python-3.7|3.8|3.9|3.10-blue.svg" /> + <img src ="https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange"/> +</p> + +## 说明 + +基于DAApi的1.12版本封装开发的直达期货交易接口。 + +## 安装 + +安装环境推荐基于3.3.0版本以上的【[**VeighNa Studio**](https://www.vnpy.com)】。 + +直接使用pip命令: + +``` +pip install vnpy_da +``` + + +或者下载源代码后,解压后在cmd中运行: + +``` +pip install . +``` + +## 使用 + +以脚本方式启动(script/run.py): + +``` +from vnpy.event import EventEngine +from vnpy.trader.engine import MainEngine +from vnpy.trader.ui import MainWindow, create_qapp + +from vnpy_da import DaGateway + + +def main(): + """主入口函数""" + qapp = create_qapp() + + event_engine = EventEngine() + main_engine = MainEngine(event_engine) + main_engine.add_gateway(DaGateway) + + main_window = MainWindow(main_engine, event_engine) + main_window.showMaximized() + + qapp.exec() + + +if __name__ == "__main__": + main() +``` + + + + +%prep +%autosetup -n vnpy_da-1.12.2 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-vnpy-da -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.12.2-1 +- Package Spec generated @@ -0,0 +1 @@ +b87a7171c887dd9ac604af3bce203ee8 vnpy_da-1.12.2.tar.gz |