mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-27 18:04:12 +08:00
BLD: Use TA-Lib version from reqs
so we don't have to maintain the version in multiple places
This commit is contained in:
+4
-2
@@ -26,7 +26,8 @@ before_install:
|
||||
install:
|
||||
- conda install conda-build=1.19.2 anaconda-client=1.3.1 --yes
|
||||
|
||||
- conda create -n testenv --yes -c quantopian pip python=$TRAVIS_PYTHON_VERSION numpy=$NUMPY_VERSION scipy=$SCIPY_VERSION libgfortran=1.0 ta-lib=0.4.9
|
||||
- TALIB_VERSION=$(cat ./etc/requirements_talib.txt | sed "s/TA-Lib==\(.*\)/\1/")
|
||||
- conda create -n testenv --yes -c quantopian pip python=$TRAVIS_PYTHON_VERSION numpy=$NUMPY_VERSION scipy=$SCIPY_VERSION libgfortran=1.0 ta-lib=$TALIB_VERSION
|
||||
- source activate testenv
|
||||
- IFS='.' read -r -a NPY_VERSION_ARR <<< "$NUMPY_VERSION"
|
||||
- CONDA_NPY=${NPY_VERSION_ARR[0]}${NPY_VERSION_ARR[1]}
|
||||
@@ -36,7 +37,8 @@ install:
|
||||
- pip install -r etc/requirements.txt --cache-dir=$CACHE_DIR
|
||||
- pip install -r etc/requirements_dev.txt --cache-dir=$CACHE_DIR
|
||||
- pip install -r etc/requirements_blaze.txt --cache-dir=$CACHE_DIR # this uses git requirements right now
|
||||
- pip install -e .[talib] --cache-dir=$CACHE_DIR
|
||||
- pip install -r etc/requirements_talib.txt --cache-dir=$CACHE_DIR
|
||||
- pip install -e .[all] --cache-dir=$CACHE_DIR
|
||||
before_script:
|
||||
- pip freeze | sort
|
||||
script:
|
||||
|
||||
+6
-2
@@ -110,14 +110,18 @@ install:
|
||||
# test that we can conda install zipline in a new env
|
||||
- conda create -n installenv --yes -q --use-local python=%PYTHON_VERSION% numpy=%NUMPY_VERSION% zipline -c quantopian -c https://conda.anaconda.org/quantopian/label/ci
|
||||
|
||||
- conda create -n testenv --yes -q --use-local pip python=%PYTHON_VERSION% numpy=%NUMPY_VERSION% scipy=%SCIPY_VERSION% ta-lib=0.4.9 bcolz=0.12.1 numexpr=2.4.6 -c quantopian -c https://conda.anaconda.org/quantopian/label/ci
|
||||
- ps: $env:BCOLZ_VERSION=(sls "bcolz==(.*)" .\etc\requirements.txt -ca).matches.groups[1].value
|
||||
- ps: $env:NUMEXPR_VERSION=(sls "numexpr==(.*)" .\etc\requirements.txt -ca).matches.groups[1].value
|
||||
- ps: $env:TALIB_VERSION=(sls "TA-Lib==(.*)" .\etc\requirements_talib.txt -ca).matches.groups[1].value
|
||||
- conda create -n testenv --yes -q --use-local pip python=%PYTHON_VERSION% numpy=%NUMPY_VERSION% scipy=%SCIPY_VERSION% ta-lib=%TALIB_VERSION% bcolz=%BCOLZ_VERSION% numexpr=%NUMEXPR_VERSION% -c quantopian -c https://conda.anaconda.org/quantopian/label/ci
|
||||
- activate testenv
|
||||
- SET CACHE_DIR=%LOCALAPPDATA%\pip\Cache\pip_np%CONDA_NPY%py%CONDA_PY%
|
||||
- pip install -r etc/requirements.txt --cache-dir=%CACHE_DIR%
|
||||
- pip install -r etc/requirements_dev.txt --cache-dir=%CACHE_DIR%
|
||||
# this uses git requirements right now
|
||||
- pip install -r etc/requirements_blaze.txt --cache-dir=%CACHE_DIR%
|
||||
- pip install -e .[talib] --cache-dir=%CACHE_DIR%
|
||||
- pip install -r etc/requirements_talib.txt --cache-dir=%CACHE_DIR%
|
||||
- pip install -e .[all] --cache-dir=%CACHE_DIR%
|
||||
- pip freeze | sort
|
||||
|
||||
test_script:
|
||||
|
||||
Reference in New Issue
Block a user