Skip to content

Commit

Permalink
BLD: Update CI files for py35
Browse files Browse the repository at this point in the history
BLD: Move setuptools_scm recipe earlier

in build process. We order alphabetically.

BLD: Update to newest Cython version

BLD: Update version of matplotlib

BLD: Pin matplotlib dependency
  • Loading branch information
buinvest committed May 16, 2017
1 parent ca26208 commit ecd86aa
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 17 deletions.
26 changes: 15 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 6 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion conda/bcolz/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion etc/goodies.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion etc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions etc/requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ecd86aa

Please sign in to comment.