diff --git a/.travis.yml b/.travis.yml index 696fb7da..7ed6924e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,7 +20,6 @@ before_script: - mysql -u root --password=${VNPY_TEST_MYSQL_PASSWORD} -e 'CREATE DATABASE vnpy;' script: - - pip install psycopg2 mongoengine pymysql # we should support all database in test environment - cd tests; source travis_env.sh; - python test_all.py @@ -90,6 +89,5 @@ matrix: - bash ./install_osx.sh before_script: [] script: - - pip3 install psycopg2 mongoengine pymysql # we should support all database in test environment - cd tests; source travis_env.sh; - VNPY_TEST_ONLY_SQLITE=1 python3 test_all.py diff --git a/appveyor.yml b/appveyor.yml index 0bd0d088..6edca690 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -46,7 +46,6 @@ for: only: - configuration: pip build_script: - - pip install psycopg2 mongoengine pymysql # we should support all database in test environment - call install.bat - matrix: @@ -54,7 +53,6 @@ for: - configuration: sdist build_script: - python setup.py sdist - - pip install psycopg2 mongoengine pymysql # we should support all database in test environment - pip install --pre --extra-index-url https://rquser:ricequant99@py.ricequant.com/simple/ rqdatac - pip install https://pip.vnpy.com/colletion/TA_Lib-0.4.17-cp37-cp37m-win_amd64.whl - pip install https://pip.vnpy.com/colletion/ibapi-9.75.1-001-py3-none-any.whl diff --git a/requirements.txt b/requirements.txt index c6959ed5..0706dba5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,6 +5,9 @@ qdarkstyle requests websocket-client peewee +pymysql +psycopg2 +mongoengine numpy pandas matplotlib @@ -14,4 +17,3 @@ tigeropen rqdatac ta-lib ibapi -mongoengine diff --git a/setup.py b/setup.py index 8a00a931..5d2e6575 100644 --- a/setup.py +++ b/setup.py @@ -113,6 +113,9 @@ install_requires = [ "requests", "websocket-client", "peewee", + "pymysql", + "psycopg2", + "mongoengine", "numpy", "pandas", "matplotlib",