mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-27 19:30:28 +08:00
Merge pull request #1701 from quantopian/py35-support
BLD: Update CI files for py35
This commit is contained in:
+15
-11
@@ -4,6 +4,7 @@ fast_finish: true
|
||||
python:
|
||||
- 2.7
|
||||
- 3.4
|
||||
- 3.5
|
||||
env:
|
||||
global:
|
||||
# 1. Generated a token for travis at https://anaconda.org/quantopian/settings/access with scope api:write.
|
||||
@@ -33,11 +34,23 @@ install:
|
||||
- conda install conda=4.1.11 conda-build=1.21.11 anaconda-client=1.5.1 --yes
|
||||
|
||||
- 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=3.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]}
|
||||
- CONDA_PY=$TRAVIS_PYTHON_VERSION
|
||||
|
||||
- if [[ "$TRAVIS_SECURE_ENV_VARS" = "true" && "$TRAVIS_BRANCH" = "master" && "$TRAVIS_PULL_REQUEST" = "false" ]]; then DO_UPLOAD="true"; else DO_UPLOAD="false"; fi
|
||||
- |
|
||||
for recipe in $(ls -d conda/*/ | xargs -I {} basename {}); do
|
||||
if [[ "$recipe" = "zipline" ]]; then continue; fi
|
||||
|
||||
conda build conda/$recipe --python=$CONDA_PY --numpy=$CONDA_NPY --skip-existing -c quantopian -c https://conda.anaconda.org/quantopian/label/ci
|
||||
RECIPE_OUTPUT=$(conda build conda/$recipe --python=$CONDA_PY --numpy=$CONDA_NPY --output)
|
||||
if [[ -f "$RECIPE_OUTPUT" && "$DO_UPLOAD" = "true" ]]; then anaconda -t $ANACONDA_TOKEN upload "$RECIPE_OUTPUT" -u quantopian --label ci; fi
|
||||
done
|
||||
|
||||
- conda create -n testenv --use-local --yes -c quantopian pip python=$TRAVIS_PYTHON_VERSION numpy=$NUMPY_VERSION scipy=$SCIPY_VERSION libgfortran=3.0 ta-lib=$TALIB_VERSION
|
||||
- source activate testenv
|
||||
|
||||
- CACHE_DIR="$HOME/.cache/.pip/pip_np""$CONDA_NPY"
|
||||
- pip install --upgrade pip coverage coveralls --cache-dir=$CACHE_DIR
|
||||
- pip install -r etc/requirements.txt --cache-dir=$CACHE_DIR
|
||||
@@ -52,15 +65,6 @@ script:
|
||||
- nosetests --with-coverage
|
||||
# deactive env to get access to anaconda command
|
||||
- source deactivate
|
||||
- if [[ "$TRAVIS_SECURE_ENV_VARS" = "true" && "$TRAVIS_BRANCH" = "master" && "$TRAVIS_PULL_REQUEST" = "false" ]]; then DO_UPLOAD="true"; else DO_UPLOAD="false"; fi
|
||||
- |
|
||||
for recipe in $(ls -d conda/*/ | xargs -I {} basename {}); do
|
||||
if [[ "$recipe" = "zipline" ]]; then continue; fi
|
||||
|
||||
conda build conda/$recipe --python=$CONDA_PY --numpy=$CONDA_NPY --skip-existing -c quantopian -c https://conda.anaconda.org/quantopian/label/ci
|
||||
RECIPE_OUTPUT=$(conda build conda/$recipe --python=$CONDA_PY --numpy=$CONDA_NPY --output)
|
||||
if [[ -f "$RECIPE_OUTPUT" && "$DO_UPLOAD" = "true" ]]; then anaconda -t $ANACONDA_TOKEN upload "$RECIPE_OUTPUT" -u quantopian --label ci; fi
|
||||
done
|
||||
|
||||
# unshallow the clone so the conda build can clone it.
|
||||
- git fetch --unshallow
|
||||
|
||||
@@ -31,6 +31,12 @@ environment:
|
||||
NUMPY_VERSION: "1.11.1"
|
||||
SCIPY_VERSION: "0.17.1"
|
||||
|
||||
- PYTHON_VERSION: "3.5"
|
||||
PYTHON_ARCH: "64"
|
||||
PANDAS_VERSION: "0.18.1"
|
||||
NUMPY_VERSION: "1.11.1"
|
||||
SCIPY_VERSION: "0.17.1"
|
||||
|
||||
# We always use a 64-bit machine, but can build x86 distributions
|
||||
# with the PYTHON_ARCH variable (which is used by CMD_IN_ENV).
|
||||
platform:
|
||||
|
||||
@@ -32,7 +32,7 @@ requirements:
|
||||
- setuptools >18.0
|
||||
- numpy x.x
|
||||
- setuptools_scm >1.5.4
|
||||
- cython ==0.22.1
|
||||
- cython ==0.25.2
|
||||
|
||||
run:
|
||||
- python
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
# Extra modules, goodies for algorithms.
|
||||
|
||||
matplotlib==1.3.0
|
||||
matplotlib==1.5.3
|
||||
scipy==0.12.0
|
||||
scikit-learn==0.13.1
|
||||
statsmodels==0.5.0
|
||||
|
||||
@@ -29,7 +29,7 @@ six==1.10.0
|
||||
# For fetching remote data
|
||||
requests==2.9.1
|
||||
|
||||
Cython==0.22.1
|
||||
Cython==0.25.2
|
||||
|
||||
# faster OrderedDict
|
||||
cyordereddict==0.2.2
|
||||
|
||||
@@ -44,11 +44,11 @@ mistune==0.7
|
||||
backports.ssl-match-hostname==3.4.0.2;python_version<'3.0'
|
||||
certifi==2015.4.28
|
||||
|
||||
# tornado and pyparsing are required by matplotlib
|
||||
# matplotlib dependencies:
|
||||
tornado==4.2.1
|
||||
pyparsing==2.0.3
|
||||
|
||||
matplotlib==1.4.3
|
||||
cycler==0.10.0
|
||||
matplotlib==1.5.3
|
||||
|
||||
Markdown==2.6.2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user