@@ -26,6 +26,7 @@ environment:
26
26
- PYTHON_VERSION : " 3.6"
27
27
CONDA_INSTALL_LOCN : " C:\\ Miniconda36-x64"
28
28
TEST_ALL : " no"
29
+ EXTRAREQS : " -r requirements/testing/travis36.txt"
29
30
- PYTHON_VERSION : " 3.7"
30
31
CONDA_INSTALL_LOCN : " C:\\ Miniconda37-x64"
31
32
TEST_ALL : " no"
@@ -49,22 +50,34 @@ install:
49
50
- set PATH=%CONDA_INSTALL_LOCN%;%CONDA_INSTALL_LOCN%\scripts;%PATH%;
50
51
- set PYTHONUNBUFFERED=1
51
52
- conda config --set always_yes true
52
- - conda update --all
53
53
- conda config --set show_channel_urls yes
54
54
- conda config --prepend channels conda-forge
55
- # this is now the downloaded conda...
56
- - activate
57
- - conda info -a
58
55
59
56
# For building, use a new environment which only includes the requirements for mpl
60
57
# if conda-forge gets a new pyqt, it might be nice to install it as well to have more backends
61
58
# https://github.com/conda-forge/conda-forge.github.io/issues/157#issuecomment-223536381
62
59
- conda create -q -n test-environment python=%PYTHON_VERSION%
63
- freetype=2.6 tk=8.5
64
- pip setuptools numpy sphinx tornado
60
+ pip setuptools wheel libpng zlib tk
65
61
- activate test-environment
66
62
- echo %PYTHON_VERSION% %TARGET_ARCH%
67
- - pip install -r requirements/testing/travis_all.txt -r requirements/testing/travis36.txt
63
+ # Install dependencies from PyPI.
64
+ - python -mpip install --upgrade -r requirements/testing/travis_all.txt %EXTRAREQS% %PINNEDVERS%
65
+ # Install optional dependencies from PyPI.
66
+ # Sphinx is needed to run sphinxext tests
67
+ - python -mpip install --upgrade sphinx
68
+ # GUI toolkits are pip-installable only for some versions of Python so
69
+ # don't fail if we can't install them. Make it easier to check whether the
70
+ # install was successful by trying to import the toolkit (sometimes, the
71
+ # install appears to be successful but shared libraries cannot be loaded at
72
+ # runtime, so an actual import is a better check).
73
+ - python -mpip install --upgrade pyqt5 &&
74
+ python -c "import PyQt5.QtCore" &&
75
+ echo PyQt5 is available ||
76
+ echo PyQt5 is not available
77
+ - python -mpip install --upgrade pyside2 &&
78
+ python -c "import PySide2.QtCore" &&
79
+ echo PySide2 is available ||
80
+ echo PySide2 is not available
68
81
69
82
# Apply patch to `subprocess` on Python versions > 2 and < 3.6.3
70
83
# https://github.com/matplotlib/matplotlib/issues/9176
@@ -84,7 +97,7 @@ test_script:
84
97
- ' "%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd | findstr freetype.*.dll && exit /b 1 || exit /b 0'
85
98
86
99
# this are optional dependencies so that we don't skip so many tests...
87
- - if x%TEST_ALL% == xyes conda install -q ffmpeg inkscape miktex pillow
100
+ - if x%TEST_ALL% == xyes conda install -q ffmpeg inkscape miktex
88
101
# missing packages on conda-forge for avconv imagemagick
89
102
# This install sometimes failed randomly :-(
90
103
# - choco install imagemagick
0 commit comments