Skip to content

Commit

Permalink
Install QtPy from conda-forge and don't install MKL
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Aug 2, 2016
1 parent 6c1508a commit 4509426
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
25 changes: 14 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ env:
- PYTHON_VERSION=2.7 ASTROPY_VERSION=1.0
- PYTHON_VERSION=3.4 ASTROPY_VERSION=1.0
global:
- PYTEST_ARGS="--cov glue"
- CONDA_CHANNELS='conda-forge spyder-ide'
- ASTROPY_VERSION=stable
- PYTEST_ARGS="--cov glue -vs"
- MATPLOTLIB_VERSION=1.5.0
- NUMPY_VERSION=1.10
- ASTROPY_VERSION=stable
Expand All @@ -28,7 +30,7 @@ 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="pip qtpy 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"
- 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 plotly"
- secure: NvQVc3XmmjXNVKrmaD31IgltsOImlnt3frAl4wU0pM223iejr7V57hz/V5Isx6sTANWEiRBMG27v2T8e5IiB7DQTxFUleZk3DWXQV1grw/GarEGUawXAgwDWpF0AE/7BRVJYqo2Elgaqf28+Jkun8ewvfPCiEROD2jWEpnZj+IQ=
- secure: "SU9BYH8d9eNigypG3lC83s0NY6Mq9AHGKXyEGeXDtz1npJIC1KHdzPMP1v1K3dzCgl1p6ReMXPjZMCENyfNkad/xvzTzGk0Nu/4BjihrUPV6+ratVeLpv0JLm8ikh8q+sZURkdtzUOlds+Hfn5ku4LdpT87tcKHY9TINAGA34ZM="
Expand Down Expand Up @@ -68,7 +70,7 @@ 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"

Expand All @@ -84,13 +86,16 @@ matrix:
# Test with older package versions:

- os: linux
env: PYTHON_VERSION=2.7 MATPLOTLIB_VERSION=1.3 ASTROPY_VERSION=0.3 NUMPY_VERSION=1.8
env:
- PYTHON_VERSION=2.7 MATPLOTLIB_VERSION=1.3 ASTROPY_VERSION=0.3 NUMPY_VERSION=1.8

- os: linux
env: PYTHON_VERSION=2.7 MATPLOTLIB_VERSION=1.4 ASTROPY_VERSION=0.4 NUMPY_VERSION=1.9 IPYTHON_VERSION=1.1
env:
- PYTHON_VERSION=2.7 MATPLOTLIB_VERSION=1.4 ASTROPY_VERSION=0.4 NUMPY_VERSION=1.9 IPYTHON_VERSION=1.1

- os: linux
env: PYTHON_VERSION=2.7 MATPLOTLIB_VERSION=1.4 ASTROPY_VERSION=0.4 NUMPY_VERSION=1.9 IPYTHON_VERSION=0.13
env:
- PYTHON_VERSION=2.7 MATPLOTLIB_VERSION=1.4 ASTROPY_VERSION=0.4 NUMPY_VERSION=1.9 IPYTHON_VERSION=0.13

# Test with PySide, but due to segmentation faults, mark as an
# allowed failure.
Expand All @@ -115,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 @@ -145,8 +147,8 @@ install:
- LC_ALL=C

# Uninstall PyQt if we are using PySide or PyQt5
- if [ $QT_PKG == pyside ]; then conda remove pyqt sip || true; fi
- if [ $QT_PKG == pyqt5 ]; then conda remove pyqt qt || true; fi
- if [ $QT_PKG == pyside ]; then conda remove --no-pin --force pyqt sip || true; fi
- if [ $QT_PKG == pyqt5 ]; then conda remove --no-pin --force pyqt qt || true; fi

- if [[ $QT_PKG == pyqt5 ]]; then
export QT_QPA_PLATFORM_PLUGIN_PATH=$HOME/miniconda/envs/test/lib/qt5/plugins/platforms;
Expand All @@ -156,6 +158,7 @@ install:
# Uninstall any version of Qt if QT_PKG is False, and remove all qt
# sub-directories
- if [[ $QT_PKG == False ]]; then
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
3 changes: 2 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ environment:
PYTHON_ARCH: "64" # needs to be set for CMD_IN_ENV to succeed. If a mix
# of 32 bit and 64 bit builds are needed, move this
# to the matrix section.
CONDA_DEPENDENCIES: "qtpy scipy cython pyqt matplotlib h5py pygments pyzmq scikit-image pandas sphinx xlrd pillow pytest mock coverage ipython ipykernel qtconsole traitlets=4.1.0"
CONDA_CHANNELS: "conda-forge"
CONDA_DEPENDENCIES: "scipy cython pyqt matplotlib h5py pygments pyzmq scikit-image pandas sphinx xlrd pillow pytest mock coverage ipython ipykernel qtconsole traitlets=4.1.0 qtpy"
PIP_DEPENDENCIES: "plotly"

matrix:
Expand Down

0 comments on commit 4509426

Please sign in to comment.