修改setup.py
This commit is contained in:
parent
7f90fda205
commit
06ab98e95b
24
setup.py
24
setup.py
@ -1,17 +1,29 @@
|
|||||||
# encoding: UTF-8
|
# encoding: UTF-8
|
||||||
|
|
||||||
|
import os
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
import vnpy
|
import vnpy
|
||||||
|
|
||||||
|
|
||||||
long_desc = """
|
long_desc = """
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='vnpy',
|
name='vnpy',
|
||||||
version=vnpy.__version__,
|
version=vnpy.__version__,
|
||||||
description='A utility for crawling historical and Real-time Quotes data of China stocks',
|
description='A framework for dveloping quantitative trading strategy',
|
||||||
long_description = long_desc,
|
long_description = long_desc,
|
||||||
author=vnpy.__author__,
|
author=vnpy.__author__,
|
||||||
author_email='vn.py@foxmail.com',
|
author_email='vn.py@foxmail.com',
|
||||||
@ -19,8 +31,10 @@ setup(
|
|||||||
url='http://www.vnpy.org',
|
url='http://www.vnpy.org',
|
||||||
keywords='Python quantitative trading framework',
|
keywords='Python quantitative trading framework',
|
||||||
classifiers=['Development Status :: 4 - Beta',
|
classifiers=['Development Status :: 4 - Beta',
|
||||||
'Programming Language :: Python :: 2.7'
|
'Programming Language :: Python :: 2.7',
|
||||||
'License :: OSI Approved :: MIT License'],
|
'License :: OSI Approved :: MIT License'],
|
||||||
packages=['vnpy','vnpy.api', 'vnpy.event', 'vnpy.rpc', 'vnpy.trader'],
|
packages=getSubpackages('vnpy'),
|
||||||
package_data={'': ['*.json']},
|
package_data={'': ['*.json', '*.md',
|
||||||
|
'*.dll', '*.lib', '*.so', '*.pyd',
|
||||||
|
'*.dat', '*.ini', '*.pfx', '*.scc', '*.crt', '*.key']},
|
||||||
)
|
)
|
@ -1,4 +1,4 @@
|
|||||||
# encoding: UTF-8
|
# encoding: UTF-8
|
||||||
|
|
||||||
__version__ = 'v1.6.2 dev'
|
__version__ = '1.6.2'
|
||||||
__author__ = u'用Python的交易员'
|
__author__ = u'用Python的交易员'
|
@ -6,6 +6,8 @@ Wind Python API的gateway接入
|
|||||||
|
|
||||||
from copy import copy
|
from copy import copy
|
||||||
|
|
||||||
|
w = None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from WindPy import w
|
from WindPy import w
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
Loading…
Reference in New Issue
Block a user