From d52b9008766053438e99b881b837b9d97f73d5c7 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Thu, 28 Mar 2019 22:35:45 +0800 Subject: [PATCH] [Add]MANIFEST.in file for source distribution --- MANIFEST.in | 1 + setup.py | 7 +++++-- vnpy/trader/engine.py | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000..8c435f1f --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +recursive-include vnpy *.ico *.ini *.dll *.so *.pyd diff --git a/setup.py b/setup.py index 0f7d41c9..7b5b83bc 100644 --- a/setup.py +++ b/setup.py @@ -111,8 +111,11 @@ setup( include_package_data=True, packages=pkgs, package_data={"": [ - "*.json", "*.md", "*.ico", "*.ini", - "*.dll", "*.so", "*.pyd" + "*.ico", + "*.ini", + "*.dll", + "*.so", + "*.pyd" ]}, classifiers=[ "Development Status :: 5 - Production/Stable", diff --git a/vnpy/trader/engine.py b/vnpy/trader/engine.py index b03e4b4a..251d2853 100644 --- a/vnpy/trader/engine.py +++ b/vnpy/trader/engine.py @@ -296,6 +296,7 @@ class OmsEngine(BaseEngine): """Add query function to main engine.""" self.main_engine.get_tick = self.get_tick self.main_engine.get_order = self.get_order + self.main_engine.get_trade = self.get_trade self.main_engine.get_position = self.get_position self.main_engine.get_account = self.get_account self.main_engine.get_contract = self.get_contract