Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c8c743

Browse files
committed
CI: Unify required dependencies installation
- Do not update default Conda packages (saves 5 minutes on 3.6 job) - Do not install Freetype2 from Conda (we do not use it anyway) - Install dependencies via pip, the same way as it's done on Travis. However, `travis36minver.txt` cannot be used, because of some bugs in the pinned versions (something with pandas/pytz/dateutils) - Test sphinext on Travis too
1 parent 6ee361b commit 9c8c743

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

.appveyor.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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"
@@ -49,22 +50,18 @@ install:
4950
- set PATH=%CONDA_INSTALL_LOCN%;%CONDA_INSTALL_LOCN%\scripts;%PATH%;
5051
- set PYTHONUNBUFFERED=1
5152
- conda config --set always_yes true
52-
- conda update --all
5353
- conda config --set show_channel_urls yes
5454
- conda config --prepend channels conda-forge
55-
# this is now the downloaded conda...
56-
- activate
57-
- conda info -a
58-
59-
# For building, use a new environment which only includes the requirements for mpl
60-
# if conda-forge gets a new pyqt, it might be nice to install it as well to have more backends
61-
# https://github.com/conda-forge/conda-forge.github.io/issues/157#issuecomment-223536381
62-
- conda create -q -n test-environment python=%PYTHON_VERSION%
63-
freetype=2.6 tk=8.5
64-
pip setuptools numpy sphinx tornado
55+
56+
# For building, use a new environment
57+
- conda create -q -n test-environment python=%PYTHON_VERSION% tk
6558
- activate test-environment
6659
- echo %PYTHON_VERSION% %TARGET_ARCH%
67-
- pip install -r requirements/testing/travis_all.txt -r requirements/testing/travis36.txt
60+
# Install dependencies from PyPI.
61+
- python -mpip install --upgrade -r requirements/testing/travis_all.txt %EXTRAREQS% %PINNEDVERS%
62+
# Install optional dependencies from PyPI.
63+
# Sphinx is needed to run sphinxext tests
64+
- python -mpip install --upgrade sphinx
6865

6966
# Apply patch to `subprocess` on Python versions > 2 and < 3.6.3
7067
# https://github.com/matplotlib/matplotlib/issues/9176
@@ -84,7 +81,7 @@ test_script:
8481
- '"%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd | findstr freetype.*.dll && exit /b 1 || exit /b 0'
8582

8683
# 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
84+
- if x%TEST_ALL% == xyes conda install -q ffmpeg inkscape miktex
8885
# missing packages on conda-forge for avconv imagemagick
8986
# This install sometimes failed randomly :-(
9087
#- choco install imagemagick

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ install:
133133
python -mpip install --upgrade $PRE -r requirements/testing/travis_all.txt $EXTRAREQS $PINNEDVERS
134134
- |
135135
# Install optional dependencies from PyPI.
136+
# Sphinx is needed to run sphinxext tests
137+
python -mpip install --upgrade sphinx
136138
# GUI toolkits are pip-installable only for some versions of Python so
137139
# don't fail if we can't install them. Make it easier to check whether the
138140
# install was successful by trying to import the toolkit (sometimes, the

0 commit comments

Comments
 (0)