@@ -26,6 +26,7 @@ environment:
2626 - PYTHON_VERSION : " 3.6"
2727 CONDA_INSTALL_LOCN : " C:\\ Miniconda36-x64"
2828 TEST_ALL : " no"
29+ EXTRAREQS : " -r requirements/testing/travis36.txt"
2930 - PYTHON_VERSION : " 3.7"
3031 CONDA_INSTALL_LOCN : " C:\\ Miniconda37-x64"
3132 TEST_ALL : " no"
@@ -48,22 +49,18 @@ init:
4849install :
4950 - set PATH=%CONDA_INSTALL_LOCN%;%CONDA_INSTALL_LOCN%\scripts;%PATH%;
5051 - conda config --set always_yes true
51- - conda update --all
5252 - conda config --set show_channel_urls yes
5353 - 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
6457 - activate test-environment
6558 - 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
6764
6865 # Apply patch to `subprocess` on Python versions > 2 and < 3.6.3
6966 # https://github.com/matplotlib/matplotlib/issues/9176
@@ -83,7 +80,7 @@ test_script:
8380 - ' "%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd | findstr freetype.*.dll && exit /b 1 || exit /b 0'
8481
8582 # 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
8784 # missing packages on conda-forge for avconv imagemagick
8885 # This install sometimes failed randomly :-(
8986 # - choco install imagemagick
0 commit comments