mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-11 11:16:15 +08:00
added qsim top level package, added rolling log file, test passes
This commit is contained in:
@@ -13,16 +13,13 @@ import logging
|
||||
import datetime
|
||||
import random
|
||||
|
||||
import simulator.qbt_server as qbt_server
|
||||
import qsim.simulator.backtest.util as qutil
|
||||
|
||||
MINUTE_COUNT=390
|
||||
|
||||
define("user_email", default="qbt@quantopian.com", help="email address for qbt user")
|
||||
define("password", default="foobar", help="password for qbt user")
|
||||
|
||||
def db_main():
|
||||
tornado.options.parse_command_line()
|
||||
connection, db = qbt_server.connect_db()
|
||||
connection, db = qutil.connect_db()
|
||||
|
||||
#create a user for testing
|
||||
salt, encrypted_password = qbt_server.encrypt_password(None, options.password)
|
||||
|
||||
+3
-3
@@ -11,15 +11,15 @@ source /usr/local/bin/virtualenvwrapper.sh
|
||||
#create the scientific python virtualenv and copy to provide qsim base
|
||||
mkvirtualenv --no-site-packages scientific_base
|
||||
workon scientific_base
|
||||
./ordered_pip.sh requirements_sci.txt
|
||||
./scripts/ordered_pip.sh ./scripts/requirements_sci.txt
|
||||
deactivate
|
||||
#re-base qsim
|
||||
#rmvirtualenv qsim
|
||||
cpvirtualenv scientific_base qsim
|
||||
|
||||
workon qsim
|
||||
./scripts/ordered_pip.sh requirements.txt
|
||||
./scripts/ordered_pip.sh requirements_dev.txt
|
||||
./scripts/ordered_pip.sh ./scripts/requirements.txt
|
||||
./scripts/ordered_pip.sh ./scripts/requirements_dev.txt
|
||||
|
||||
#setup the local mongodb
|
||||
python ./scripts/dev_setup.py
|
||||
|
||||
@@ -1,14 +1,31 @@
|
||||
ipython==0.12
|
||||
|
||||
# For debugger
|
||||
fancycompleter==0.2
|
||||
pyrepl==0.8.2
|
||||
Pygments==1.4
|
||||
pdbpp==0.7.2
|
||||
|
||||
ipython==0.12
|
||||
|
||||
# For unit tests
|
||||
# Testing
|
||||
unittest2
|
||||
nose==1.1.2
|
||||
unittest2==0.5.1
|
||||
requests==0.10.1
|
||||
nosexcover
|
||||
pylint
|
||||
coverage==3.5.1
|
||||
mock==0.7.2
|
||||
nosexcover==1.0.7
|
||||
pylint==0.25.1
|
||||
|
||||
# Documentation
|
||||
docutils==0.8.1
|
||||
Sphinx==1.1.2
|
||||
|
||||
# Task running
|
||||
Paver==1.0.5
|
||||
Paved==0.3
|
||||
|
||||
# Testing
|
||||
nose==1.1.2
|
||||
coverage==3.5.1
|
||||
mock==0.7.2
|
||||
nosexcover==1.0.7
|
||||
pylint==0.25.1
|
||||
Reference in New Issue
Block a user