From 2ba39de2d63454ddbe1aebdef4da3a497d82a3b5 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 20 Jun 2023 05:21:33 +0000 Subject: automatic import of python-vnpy-da --- .gitignore | 1 + python-vnpy-da.spec | 268 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 270 insertions(+) create mode 100644 python-vnpy-da.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..df55073 100644 --- a/.gitignore +++ b/.gitignore @@ -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框架的直达期货交易接口 +

+ +

+ +

+ + + + +

+ +## 说明 + +基于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框架的直达期货交易接口 +

+ +

+ +

+ + + + +

+ +## 说明 + +基于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框架的直达期货交易接口 +

+ +

+ +

+ + + + +

+ +## 说明 + +基于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 - 1.12.2-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..e5208fe --- /dev/null +++ b/sources @@ -0,0 +1 @@ +b87a7171c887dd9ac604af3bce203ee8 vnpy_da-1.12.2.tar.gz -- cgit v1.2.3