[Add] added install_requires

This commit is contained in:
nanoric 2019-03-29 04:49:47 -04:00
parent f1b92086b1
commit 98e0c46627

View File

@ -18,10 +18,10 @@ other financial markets.
import ast import ast
import platform import platform
import re import re
import sys
from setuptools import Extension, find_packages, setup from setuptools import Extension, find_packages, setup
with open("vnpy/__init__.py", "rb") as f: with open("vnpy/__init__.py", "rb") as f:
version_line = re.search( version_line = re.search(
r"__version__\s+=\s+(.*)", f.read().decode("utf-8") r"__version__\s+=\s+(.*)", f.read().decode("utf-8")
@ -98,6 +98,24 @@ else:
pkgs = find_packages() 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( setup(
name="vnpy", name="vnpy",
version=version, version=version,
@ -117,6 +135,7 @@ setup(
"*.so", "*.so",
"*.pyd" "*.pyd"
]}, ]},
install_requires=install_requires,
classifiers=[ classifiers=[
"Development Status :: 5 - Production/Stable", "Development Status :: 5 - Production/Stable",
"Operating System :: Microsoft :: Windows :: Windows 7", "Operating System :: Microsoft :: Windows :: Windows 7",