From 98e0c4662763f9949b5c339f07cb81d2cb9525d3 Mon Sep 17 00:00:00 2001 From: nanoric Date: Fri, 29 Mar 2019 04:49:47 -0400 Subject: [PATCH] [Add] added install_requires --- setup.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7b5b83bc..ee61b4b3 100644 --- a/setup.py +++ b/setup.py @@ -18,10 +18,10 @@ other financial markets. import ast import platform import re +import sys from setuptools import Extension, find_packages, setup - with open("vnpy/__init__.py", "rb") as f: version_line = re.search( r"__version__\s+=\s+(.*)", f.read().decode("utf-8") @@ -98,6 +98,24 @@ else: pkgs = find_packages() +install_requires = [ + "PyQt5<5.12", + "qdarkstyle", + "requests", + "websocket-client", + "peewee", + "numpy", + "pandas", + "matplotlib", + "seaborn", + "futu-api", + "tigeropen", + "ta-lib", + "ibapi" +] +if sys.version_info.minor < 7: + install_requires.append("dataclasses") + setup( name="vnpy", version=version, @@ -117,6 +135,7 @@ setup( "*.so", "*.pyd" ]}, + install_requires=install_requires, classifiers=[ "Development Status :: 5 - Production/Stable", "Operating System :: Microsoft :: Windows :: Windows 7",