@@ -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"
@@ -48,22 +49,18 @@ init:
48
49
install :
49
50
- set PATH=%CONDA_INSTALL_LOCN%;%CONDA_INSTALL_LOCN%\scripts;%PATH%;
50
51
- conda config --set always_yes true
51
- - conda update --all
52
52
- conda config --set show_channel_urls yes
53
53
- conda config --prepend channels conda-forge
54
- # this is now the downloaded conda...
55
- - activate
56
- - conda info -a
57
-
58
- # For building, use a new environment which only includes the requirements for mpl
59
- # if conda-forge gets a new pyqt, it might be nice to install it as well to have more backends
60
- # https://github.com/conda-forge/conda-forge.github.io/issues/157#issuecomment-223536381
61
- - conda create -q -n test-environment python=%PYTHON_VERSION%
62
- freetype=2.6 tk=8.5
63
- pip setuptools numpy sphinx tornado
54
+
55
+ # For building, use a new environment
56
+ - conda create -q -n test-environment python=%PYTHON_VERSION% tk
64
57
- activate test-environment
65
58
- echo %PYTHON_VERSION% %TARGET_ARCH%
66
- - pip install -r requirements/testing/travis_all.txt -r requirements/testing/travis36.txt
59
+ # Install dependencies from PyPI.
60
+ - python -mpip install --upgrade -r requirements/testing/travis_all.txt %EXTRAREQS% %PINNEDVERS%
61
+ # Install optional dependencies from PyPI.
62
+ # Sphinx is needed to run sphinxext tests
63
+ - python -mpip install --upgrade sphinx
67
64
68
65
# Apply patch to `subprocess` on Python versions > 2 and < 3.6.3
69
66
# https://github.com/matplotlib/matplotlib/issues/9176
@@ -83,7 +80,7 @@ test_script:
83
80
- ' "%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd | findstr freetype.*.dll && exit /b 1 || exit /b 0'
84
81
85
82
# this are optional dependencies so that we don't skip so many tests...
86
- - if x%TEST_ALL% == xyes conda install -q ffmpeg inkscape miktex pillow
83
+ - if x%TEST_ALL% == xyes conda install -q ffmpeg inkscape miktex
87
84
# missing packages on conda-forge for avconv imagemagick
88
85
# This install sometimes failed randomly :-(
89
86
# - choco install imagemagick
0 commit comments