[Mod] move psycopg2, pymysql into install requirements

This commit is contained in:
nanoric 2019-04-18 03:01:12 -04:00
parent eb0b7c3a98
commit 4302ae0180
4 changed files with 6 additions and 5 deletions

View File

@ -20,7 +20,6 @@ before_script:
- mysql -u root --password=${VNPY_TEST_MYSQL_PASSWORD} -e 'CREATE DATABASE vnpy;' - mysql -u root --password=${VNPY_TEST_MYSQL_PASSWORD} -e 'CREATE DATABASE vnpy;'
script: script:
- pip install psycopg2 mongoengine pymysql # we should support all database in test environment
- cd tests; source travis_env.sh; - cd tests; source travis_env.sh;
- python test_all.py - python test_all.py
@ -90,6 +89,5 @@ matrix:
- bash ./install_osx.sh - bash ./install_osx.sh
before_script: [] before_script: []
script: script:
- pip3 install psycopg2 mongoengine pymysql # we should support all database in test environment
- cd tests; source travis_env.sh; - cd tests; source travis_env.sh;
- VNPY_TEST_ONLY_SQLITE=1 python3 test_all.py - VNPY_TEST_ONLY_SQLITE=1 python3 test_all.py

View File

@ -46,7 +46,6 @@ for:
only: only:
- configuration: pip - configuration: pip
build_script: build_script:
- pip install psycopg2 mongoengine pymysql # we should support all database in test environment
- call install.bat - call install.bat
- matrix: - matrix:
@ -54,7 +53,6 @@ for:
- configuration: sdist - configuration: sdist
build_script: build_script:
- python setup.py sdist - 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 --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/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 - pip install https://pip.vnpy.com/colletion/ibapi-9.75.1-001-py3-none-any.whl

View File

@ -5,6 +5,9 @@ qdarkstyle
requests requests
websocket-client websocket-client
peewee peewee
pymysql
psycopg2
mongoengine
numpy numpy
pandas pandas
matplotlib matplotlib
@ -14,4 +17,3 @@ tigeropen
rqdatac rqdatac
ta-lib ta-lib
ibapi ibapi
mongoengine

View File

@ -113,6 +113,9 @@ install_requires = [
"requests", "requests",
"websocket-client", "websocket-client",
"peewee", "peewee",
"pymysql",
"psycopg2",
"mongoengine",
"numpy", "numpy",
"pandas", "pandas",
"matplotlib", "matplotlib",