Skip to content

Commit

Permalink
Travis: install QtPy with conda
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Jul 4, 2016
1 parent 8a8c56c commit 2ca1bd9
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ env:
- PYTHON_VERSION=2.7 ASTROPY_VERSION=1.0
- PYTHON_VERSION=3.4 ASTROPY_VERSION=1.0
global:
- CONDA_CHANNELS='spyder-ide'
- ASTROPY_VERSION=stable
- PYTEST_ARGS="--cov glue -vs"
- MATPLOTLIB_VERSION=1.5.0
Expand All @@ -29,8 +30,8 @@ env:
- QT_PKG=pyqt
- SETUP_XVFB=True
# Note that we need to specify requests 2.9 because of a bug in the version check in linkchecker
- CONDA_DEPENDENCIES="nomkl pip dill ipython matplotlib scipy cython h5py pygments pyzmq scikit-image pandas sphinx=1.2.3 xlrd pillow pytest mock coverage pyyaml requests=2.9 sphinx_rtd_theme"
- PIP_DEPENDENCIES="pytest-cov coveralls pyavm astrodendro awscli ginga https://github.com/spyder-ide/qtpy/archive/master.zip"
- CONDA_DEPENDENCIES="nomkl pip dill ipython matplotlib scipy cython h5py pygments pyzmq scikit-image pandas sphinx=1.2.3 xlrd pillow pytest mock coverage pyyaml requests=2.9 sphinx_rtd_theme qtpy"
- PIP_DEPENDENCIES="pytest-cov coveralls pyavm astrodendro awscli ginga"
- secure: NvQVc3XmmjXNVKrmaD31IgltsOImlnt3frAl4wU0pM223iejr7V57hz/V5Isx6sTANWEiRBMG27v2T8e5IiB7DQTxFUleZk3DWXQV1grw/GarEGUawXAgwDWpF0AE/7BRVJYqo2Elgaqf28+Jkun8ewvfPCiEROD2jWEpnZj+IQ=
- secure: "SU9BYH8d9eNigypG3lC83s0NY6Mq9AHGKXyEGeXDtz1npJIC1KHdzPMP1v1K3dzCgl1p6ReMXPjZMCENyfNkad/xvzTzGk0Nu/4BjihrUPV6+ratVeLpv0JLm8ikh8q+sZURkdtzUOlds+Hfn5ku4LdpT87tcKHY9TINAGA34ZM="
- AWS_ACCESS_KEY_ID: AKIAI2ERWDHLW3W24X3A
Expand All @@ -53,14 +54,14 @@ matrix:
env:
- PYTHON_VERSION=2.7 NUMPY_VERSION=dev
# We don't test ginga with Numpy dev due to a bug in ginga
- PIP_DEPENDENCIES="pytest-cov coveralls pyavm astrodendro awscli https://github.com/spyder-ide/qtpy/archive/master.zip"
- PIP_DEPENDENCIES="pytest-cov coveralls pyavm astrodendro awscli"

# PyQt5
- os: linux
env:
- PYTHON_VERSION=2.7 NUMPY_VERSION=1.10 ASTROPY_VERSION=1.0 QT_PKG=pyqt5
# We don't test ginga with PyQt5 due to a bug in ginga with QT_API
- PIP_DEPENDENCIES="pytest-cov coveralls pyavm astrodendro awscli https://github.com/spyder-ide/qtpy/archive/master.zip"
- PIP_DEPENDENCIES="pytest-cov coveralls pyavm astrodendro awscli"

# The following configuration tests that glue functions with minimal
# dependencies. The --no-deps is to prevent scipy from getting
Expand All @@ -69,9 +70,9 @@ matrix:
env:
- PYTHON_VERSION=2.7
- PYTEST_ARGS="--cov glue"
- CONDA_DEPENDENCIES="pytz pyparsing cycler python-dateutil freetype libpng sip qt pip setuptools=7.0 pandas mock pbr six funcsigs matplotlib"
- CONDA_DEPENDENCIES="pytz pyparsing cycler python-dateutil freetype libpng sip qt pip setuptools=7.0 pandas mock pbr six funcsigs matplotlib qtpy"
- CONDA_DEPENDENCIES_FLAGS='--no-deps'
- PIP_DEPENDENCIES="pytest-cov coveralls https://github.com/spyder-ide/qtpy/archive/master.zip"
- PIP_DEPENDENCIES="pytest-cov coveralls"

- os: linux
env:
Expand Down Expand Up @@ -119,9 +120,6 @@ matrix:

before_install:

# The PyQt5 package is in the spyder-ide channel
- if [[ $QT_PKG == pyqt5 ]]; then export CONDA_CHANNELS="astropy-ci-extras spyder-ide"; fi

# Prepare dependency list
- if [[ $QT_PKG != False ]]; then export CONDA_DEPENDENCIES="$QT_PKG "$CONDA_DEPENDENCIES; fi

Expand Down Expand Up @@ -160,7 +158,7 @@ install:
# Uninstall any version of Qt if QT_PKG is False, and remove all qt
# sub-directories
- if [[ $QT_PKG == False ]]; then
pip uninstall --yes qtpy;
conda remove --no-pin --force qtpy || true;
conda remove --no-pin --force pyqt || true;
conda remove --no-pin --force pyside || true;
conda remove --no-pin --force pyqt5 || true;
Expand Down

0 comments on commit 2ca1bd9

Please sign in to comment.