-
-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AppVeyor: Upgrade to Visual Studio 2022 and use python-launcher (#688)
* AppVeyor: Upgrade to Visual Studio 2022 and use python-launcher https://docs.python.org/3.11/using/windows.html#python-launcher-for-windows
- Loading branch information
Showing
1 changed file
with
12 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,37 @@ | ||
# https://ci.appveyor.com/project/PyWavelets/pywt | ||
image: Visual Studio 2019 | ||
image: Visual Studio 2022 | ||
|
||
# Ensure we don't default to MSBuild | ||
build: off | ||
|
||
environment: | ||
matrix: | ||
- arch: x64 | ||
PYTHON_ROOT: "C:\\Python39-x64" | ||
PY_PYTHON: 3.9 | ||
- arch: x86 | ||
PYTHON_ROOT: "C:\\Python310" | ||
PY_PYTHON: 3.10-32 | ||
- arch: x64 | ||
PYTHON_ROOT: "C:\\Python311-x64" | ||
PY_PYTHON: 3.11 | ||
|
||
# From https://mesonbuild.com/Continuous-Integration.html#appveyor-for-windows | ||
install: | ||
# Add necessary paths to PATH variable | ||
- cmd: set PATH=%cd%;%PYTHON_ROOT%;%PYTHON_ROOT%\Scripts;%PATH% | ||
- "python.exe -m pip install --upgrade pip build" | ||
- "python.exe -m pip install numpy --cache-dir c:\\tmp\\pip-cache" | ||
- "python.exe -m pip install --only-binary :all: Cython pytest matplotlib --cache-dir c:\\tmp\\pip-cache" | ||
- "py -VV" # Also, `py --list` | ||
- "py -m pip install --upgrade pip build" | ||
- "py -m pip install numpy --cache-dir c:\\tmp\\pip-cache" | ||
- "py -m pip install --only-binary :all: Cython pytest matplotlib --cache-dir c:\\tmp\\pip-cache" | ||
|
||
test_script: | ||
- cmd: call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %arch% | ||
- "python.exe -m pip install . -v --config-settings=setup-args=--vsenv" | ||
- cmd: call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" %arch% | ||
- "py -m pip install . -v --config-settings=setup-args=--vsenv" | ||
- "cd demo" | ||
- "python.exe -m pytest --pyargs pywt" | ||
- "py -m pytest --pyargs pywt" | ||
- "cd .." | ||
|
||
artifacts: | ||
# Archive the generated wheel package in the ci.appveyor.com build report. | ||
- path: dist\* | ||
|
||
cache: | ||
# Cache can be manuall cleared like this: | ||
# Cache can be manually cleared like this: | ||
# https://github.com/appveyor/ci/issues/207 | ||
- "c:\\tmp\\pip-cache" |