2017-05-17 06:18:51 +00:00
|
|
|
# encoding: UTF-8
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
long_desc = """
|
|
|
|
"""
|
|
|
|
|
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__,
|
2017-05-18 09:28:28 +00:00
|
|
|
description='A framework for dveloping quantitative trading strategy',
|
2017-05-17 06:18:51 +00:00
|
|
|
long_description = long_desc,
|
|
|
|
author=vnpy.__author__,
|
|
|
|
author_email='vn.py@foxmail.com',
|
|
|
|
license='MIT',
|
|
|
|
url='http://www.vnpy.org',
|
|
|
|
keywords='Python quantitative trading framework',
|
|
|
|
classifiers=['Development Status :: 4 - Beta',
|
2017-05-18 09:28:28 +00:00
|
|
|
'Programming Language :: Python :: 2.7',
|
|
|
|
'License :: OSI Approved :: MIT License'],
|
|
|
|
packages=getSubpackages('vnpy'),
|
|
|
|
package_data={'': ['*.json', '*.md',
|
|
|
|
'*.dll', '*.lib', '*.so', '*.pyd',
|
|
|
|
'*.dat', '*.ini', '*.pfx', '*.scc', '*.crt', '*.key']},
|
2017-05-17 06:18:51 +00:00
|
|
|
)
|