2017-05-17 06:18:51 +00:00
|
|
|
# encoding: UTF-8
|
|
|
|
|
2017-06-02 13:44:28 +00:00
|
|
|
'''
|
|
|
|
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.
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
2017-05-18 09:28:28 +00:00
|
|
|
import os
|
2017-05-17 06:18:51 +00:00
|
|
|
from setuptools import setup
|
2017-05-18 09:28:28 +00:00
|
|
|
|
2017-05-17 06:18:51 +00:00
|
|
|
import vnpy
|
|
|
|
|
|
|
|
|
2017-05-18 09:28:28 +00:00
|
|
|
def getSubpackages(name):
|
|
|
|
"""获取该模块下所有的子模块名称"""
|
|
|
|
splist = []
|
|
|
|
|
|
|
|
for dirpath, _dirnames, _filenames in os.walk(name):
|
|
|
|
if os.path.isfile(os.path.join(dirpath, '__init__.py')):
|
|
|
|
splist.append(".".join(dirpath.split(os.sep)))
|
|
|
|
|
|
|
|
return splist
|
|
|
|
|
2017-05-17 06:18:51 +00:00
|
|
|
|
|
|
|
setup(
|
|
|
|
name='vnpy',
|
|
|
|
version=vnpy.__version__,
|
|
|
|
author=vnpy.__author__,
|
|
|
|
author_email='vn.py@foxmail.com',
|
|
|
|
license='MIT',
|
|
|
|
url='http://www.vnpy.org',
|
2017-06-02 13:44:28 +00:00
|
|
|
description='A framework for developing quantitative trading programmes',
|
|
|
|
long_description = __doc__,
|
|
|
|
keywords='quant quantitative investment trading algotrading',
|
2017-05-17 06:18:51 +00:00
|
|
|
classifiers=['Development Status :: 4 - Beta',
|
2017-06-02 13:44:28 +00:00
|
|
|
'Environment :: Quantiative Trading',
|
|
|
|
'Operating System :: Windows 7',
|
|
|
|
'Operating System :: Windows 8',
|
|
|
|
'Operating System :: Windows 10',
|
|
|
|
'Operating System :: Windows Server 2008',
|
2017-05-18 09:28:28 +00:00
|
|
|
'Programming Language :: Python :: 2.7',
|
|
|
|
'License :: OSI Approved :: MIT License'],
|
|
|
|
packages=getSubpackages('vnpy'),
|
2017-06-02 07:56:21 +00:00
|
|
|
package_data={'': ['*.json', '*.md', '*.ico',
|
2017-06-04 15:07:15 +00:00
|
|
|
'*.h', '*.cpp', '*.bash', '*.txt',
|
2017-05-18 09:28:28 +00:00
|
|
|
'*.dll', '*.lib', '*.so', '*.pyd',
|
|
|
|
'*.dat', '*.ini', '*.pfx', '*.scc', '*.crt', '*.key']},
|
2017-05-17 06:18:51 +00:00
|
|
|
)
|