[Mod]update setup.py
This commit is contained in:
parent
29b2911c18
commit
a872207c90
51
setup.py
51
setup.py
@ -1,9 +1,27 @@
|
|||||||
|
"""
|
||||||
|
vn.py - By Traders, For Traders.
|
||||||
|
|
||||||
|
The vn.py project is an open-source quantitative trading framework
|
||||||
|
that is developed by traders, for traders.
|
||||||
|
|
||||||
|
The project is mainly written in Python and uses C++ for low-layer
|
||||||
|
and performance sensitive infrastructure.
|
||||||
|
|
||||||
|
Using the vn.py project, institutional investors and professional
|
||||||
|
traders, such as hedge funds, prop trading firms and investment banks,
|
||||||
|
can easily develop complex trading strategies with the Event Engine
|
||||||
|
Strategy Module, and automatically route their orders to the most
|
||||||
|
desired destinations, including equity, commodity, forex and many
|
||||||
|
other financial markets.
|
||||||
|
"""
|
||||||
|
|
||||||
import ast
|
import ast
|
||||||
import platform
|
import platform
|
||||||
import re
|
import re
|
||||||
|
|
||||||
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")
|
||||||
@ -26,7 +44,8 @@ vnctpmd = Extension("vnpy.api.ctp.vnctpmd",
|
|||||||
[
|
[
|
||||||
"vnpy/api/ctp/vnctp/vnctpmd/vnctpmd.cpp",
|
"vnpy/api/ctp/vnctp/vnctpmd/vnctpmd.cpp",
|
||||||
],
|
],
|
||||||
include_dirs=["vnpy/api/ctp/include", "vnpy/api/ctp/vnctp", ],
|
include_dirs=["vnpy/api/ctp/include",
|
||||||
|
"vnpy/api/ctp/vnctp", ],
|
||||||
define_macros=[],
|
define_macros=[],
|
||||||
undef_macros=[],
|
undef_macros=[],
|
||||||
library_dirs=["vnpy/api/ctp/libs", "vnpy/api/ctp"],
|
library_dirs=["vnpy/api/ctp/libs", "vnpy/api/ctp"],
|
||||||
@ -41,7 +60,8 @@ vnctptd = Extension("vnpy.api.ctp.vnctptd",
|
|||||||
[
|
[
|
||||||
"vnpy/api/ctp/vnctp/vnctptd/vnctptd.cpp",
|
"vnpy/api/ctp/vnctp/vnctptd/vnctptd.cpp",
|
||||||
],
|
],
|
||||||
include_dirs=["vnpy/api/ctp/include", "vnpy/api/ctp/vnctp", ],
|
include_dirs=["vnpy/api/ctp/include",
|
||||||
|
"vnpy/api/ctp/vnctp", ],
|
||||||
define_macros=[],
|
define_macros=[],
|
||||||
undef_macros=[],
|
undef_macros=[],
|
||||||
library_dirs=["vnpy/api/ctp/libs", "vnpy/api/ctp"],
|
library_dirs=["vnpy/api/ctp/libs", "vnpy/api/ctp"],
|
||||||
@ -58,7 +78,8 @@ vnoes = Extension("vnpy.api.oes.vnoes",
|
|||||||
"vnpy/api/oes/vnoes/generated_files/classes_2.cpp",
|
"vnpy/api/oes/vnoes/generated_files/classes_2.cpp",
|
||||||
"vnpy/api/oes/vnoes/generated_files/module.cpp",
|
"vnpy/api/oes/vnoes/generated_files/module.cpp",
|
||||||
],
|
],
|
||||||
include_dirs=["vnpy/api/oes/include", "vnpy/api/oes/vnoes", ],
|
include_dirs=["vnpy/api/oes/include",
|
||||||
|
"vnpy/api/oes/vnoes", ],
|
||||||
define_macros=[("BRIGAND_NO_BOOST_SUPPORT", "1")],
|
define_macros=[("BRIGAND_NO_BOOST_SUPPORT", "1")],
|
||||||
undef_macros=[],
|
undef_macros=[],
|
||||||
library_dirs=["vnpy/api/oes/libs"],
|
library_dirs=["vnpy/api/oes/libs"],
|
||||||
@ -80,12 +101,36 @@ pkgs = find_packages()
|
|||||||
setup(
|
setup(
|
||||||
name="vnpy",
|
name="vnpy",
|
||||||
version=version,
|
version=version,
|
||||||
|
author="vn.py team",
|
||||||
|
author_email="vn.py@foxmail.com",
|
||||||
|
license="MIT",
|
||||||
|
url="https://www.vnpy.com",
|
||||||
|
description="A framework for developing quant trading systems.",
|
||||||
|
long_description=__doc__,
|
||||||
|
keywords='quant quantitative investment trading algotrading',
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
packages=pkgs,
|
packages=pkgs,
|
||||||
package_data={"": [
|
package_data={"": [
|
||||||
"*.json", "*.md", "*.ico", "*.ini",
|
"*.json", "*.md", "*.ico", "*.ini",
|
||||||
"*.dll", "*.so", "*.pyd"
|
"*.dll", "*.so", "*.pyd"
|
||||||
]},
|
]},
|
||||||
|
classifiers=[
|
||||||
|
"Development Status :: 5 - Production/Stable",
|
||||||
|
"Operating System :: Microsoft :: Windows :: Windows 7",
|
||||||
|
"Operating System :: Microsoft :: Windows :: Windows 8",
|
||||||
|
"Operating System :: Microsoft :: Windows :: Windows 10",
|
||||||
|
"Operating System :: Microsoft :: Windows :: Windows Server 2008",
|
||||||
|
"Operating System :: Microsoft :: Windows :: Windows Server 2012",
|
||||||
|
"Operating System :: Microsoft :: Windows :: Windows Server 2012",
|
||||||
|
"Operating System :: POSIX :: Linux"
|
||||||
|
"Programming Language :: Python :: 3",
|
||||||
|
"Programming Language :: Python :: 3.7",
|
||||||
|
"Topic :: Office/Business :: Financial :: Investment",
|
||||||
|
"Programming Language :: Python :: Implementation :: CPython",
|
||||||
|
"License :: OSI Approved :: MIT License",
|
||||||
|
"Natural Language :: Chinese (Simplified)",
|
||||||
|
"Natural Language :: Chinese (Simplified)"
|
||||||
|
],
|
||||||
install_requires=[],
|
install_requires=[],
|
||||||
ext_modules=ext_modules
|
ext_modules=ext_modules
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user