1
1
# With infos from
2
2
# http://tjelvarolsson.com/blog/how-to-continuously-test-your-python-code-on-windows-using-appveyor/
3
3
# https://packaging.python.org/en/latest/appveyor/
4
- # https://github.com/rmcgibbo/python-appveyor-conda-example
5
4
---
6
5
7
6
# Backslashes in quotes need to be escaped: \ -> "\\"
@@ -30,7 +29,6 @@ environment:
30
29
31
30
matrix :
32
31
- PYTHON_VERSION : " 3.11"
33
- CONDA_INSTALL_LOCN : " C:\\ Miniconda3-x64"
34
32
TEST_ALL : " yes"
35
33
36
34
# We always use a 64-bit machine, but can build x86 distributions
@@ -46,24 +44,20 @@ cache:
46
44
- ' %USERPROFILE%\.cache\matplotlib'
47
45
48
46
init :
49
- - echo %PYTHON_VERSION% %CONDA_INSTALL_LOCN%
47
+ - ps :
48
+ Invoke-Webrequest
49
+ -URI https://micro.mamba.pm/api/micromamba/win-64/latest
50
+ -OutFile C:\projects\micromamba.tar.bz2
51
+ - ps : C:\PROGRA~1\7-Zip\7z.exe x C:\projects\micromamba.tar.bz2 -aoa -oC:\projects\
52
+ - ps : C:\PROGRA~1\7-Zip\7z.exe x C:\projects\micromamba.tar -ttar -aoa -oC:\projects\
53
+ - ' set PATH=C:\projects\Library\bin;%PATH%'
54
+ - micromamba shell init --shell cmd.exe
55
+ - micromamba config set always_yes true
56
+ - micromamba config prepend channels conda-forge
50
57
51
58
install :
52
- - set PATH=%CONDA_INSTALL_LOCN%;%CONDA_INSTALL_LOCN%\scripts;%PATH%;
53
- - conda config --set always_yes true
54
- - conda config --set show_channel_urls yes
55
- - conda config --prepend channels conda-forge
56
-
57
- # For building, use a new environment
58
- # Add python version to environment
59
- # `^ ` escapes spaces for indentation
60
- - echo ^ ^ - python=%PYTHON_VERSION% >> environment.yml
61
- - conda env create -f environment.yml
62
- - activate mpl-dev
63
- - conda install -c conda-forge pywin32
64
- - echo %PYTHON_VERSION% %TARGET_ARCH%
65
- # Show the installed packages + versions
66
- - conda list
59
+ - micromamba env create -f environment.yml python=%PYTHON_VERSION% pywin32
60
+ - micromamba activate mpl-dev
67
61
68
62
test_script :
69
63
# Now build the thing..
@@ -74,7 +68,7 @@ test_script:
74
68
- ' "%DUMPBIN%" /DEPENDENTS lib\matplotlib\ft2font*.pyd | findstr freetype.*.dll && exit /b 1 || exit /b 0'
75
69
76
70
# this are optional dependencies so that we don't skip so many tests...
77
- - if x%TEST_ALL% == xyes conda install -q ffmpeg inkscape
71
+ - if x%TEST_ALL% == xyes micromamba install -q ffmpeg inkscape
78
72
# miktex is available on conda, but seems to fail with permission errors.
79
73
# missing packages on conda-forge for imagemagick
80
74
# This install sometimes failed randomly :-(
@@ -95,7 +89,7 @@ artifacts:
95
89
type : Zip
96
90
97
91
on_finish :
98
- - conda install codecov
92
+ - micromamba install codecov
99
93
- codecov -e PYTHON_VERSION PLATFORM -n "$PYTHON_VERSION Windows"
100
94
101
95
on_failure :
0 commit comments