Merge branch 'dev' of https://github.com/vnpy/vnpy into dev
This commit is contained in:
commit
0aec6c90be
@ -4,10 +4,6 @@ cache: pip
|
||||
python:
|
||||
- 2.7
|
||||
- 3.6
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- dev
|
||||
install:
|
||||
- pip install -r requirements.txt
|
||||
- pip install flake8 # pytest # add another testing frameworks later
|
||||
@ -15,7 +11,7 @@ before_script:
|
||||
# stop the build if there are Python syntax errors or undefined names
|
||||
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
|
||||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
||||
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||
- flake8 . --count --exit-zero --ignore=E265,W2 --max-complexity=10 --max-line-length=127 --statistics
|
||||
script:
|
||||
- true # pytest --capture=sys # add other tests here
|
||||
notifications:
|
||||
|
7
setup.py
7
setup.py
@ -43,7 +43,7 @@ setup(
|
||||
license='MIT',
|
||||
url='http://www.vnpy.org',
|
||||
description='A framework for developing Quantitative Trading programmes',
|
||||
long_description = __doc__,
|
||||
long_description=__doc__,
|
||||
keywords='quant quantitative investment trading algotrading',
|
||||
classifiers=['Development Status :: 4 - Beta',
|
||||
'Operating System :: Microsoft :: Windows :: Windows 7',
|
||||
@ -60,7 +60,4 @@ setup(
|
||||
'*.h', '*.cpp', '*.bash', '*.txt',
|
||||
'*.dll', '*.lib', '*.so', '*.pyd',
|
||||
'*.dat', '*.ini', '*.pfx', '*.scc', '*.crt', '*.key']},
|
||||
extras_require={
|
||||
'tq': ["tornado>=4.5.1", "sortedcontainers>=1.5.7"],
|
||||
}
|
||||
)
|
||||
extras_require={'tq': ["tornado>=4.5.1", "sortedcontainers>=1.5.7"]})
|
||||
|
@ -108,7 +108,7 @@ class CtpGateway(VtGateway):
|
||||
def connect(self):
|
||||
"""连接"""
|
||||
try:
|
||||
f = file(self.filePath)
|
||||
f = open(self.filePath)
|
||||
except IOError:
|
||||
log = VtLogData()
|
||||
log.gatewayName = self.gatewayName
|
||||
@ -118,6 +118,7 @@ class CtpGateway(VtGateway):
|
||||
|
||||
# 解析json文件
|
||||
setting = json.load(f)
|
||||
f.close()
|
||||
try:
|
||||
userID = str(setting['userID'])
|
||||
password = str(setting['password'])
|
||||
|
Loading…
Reference in New Issue
Block a user