-
Notifications
You must be signed in to change notification settings - Fork 22
/
.appveyor.yml
62 lines (54 loc) · 1.59 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
branches:
except:
- master
- /v\d+\.\d+\.\d+/
environment:
global:
PYTHON: "C:\\Python38-x64"
PYTHON_VERSION: "3.8.x"
PYTHON_ARCH: "64"
CIBW_BUILD_VERBOSITY: 1
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: "pytest %APPVEYOR_BUILD_FOLDER%\\tests"
CIBW_BEFORE_BUILD: >
python -m pip install --upgrade pip &&
python -m pip install --upgrade Cython &&
python -m pip install -r requirements.txt
matrix:
- CIBW_BUILD: "cp38-win_amd64"
- CIBW_BUILD: "cp39-win_amd64"
- CIBW_BUILD: "cp310-win_amd64"
- CIBW_BUILD: "cp311-win_amd64"
- CIBW_BUILD: "cp312-win_amd64"
stack: python 3.8
init:
- cmd: PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
install:
### GSL ###
- cd C:\Tools\vcpkg
- git pull
- .\bootstrap-vcpkg.bat
- .\vcpkg integrate install
- .\vcpkg.exe install gsl:x64-windows-static
- md C:\gsl
- md C:\gsl\include
- md C:\gsl\lib
- xcopy C:\Tools\vcpkg\packages\gsl_x64-windows-static\include C:\gsl\include /f /s /e
- xcopy C:\Tools\vcpkg\packages\gsl_x64-windows-static\lib C:\gsl\lib /f /s /e
### PYTHON ###
- "python -m pip install --upgrade cibuildwheel"
- "python -m pip install --upgrade twine"
build_script:
- cd %APPVEYOR_BUILD_FOLDER%
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
- "python -m pip --version"
- "python -m twine --version"
- "python -m cibuildwheel --output-dir wheelhouse"
- dir wheelhouse
- ps: .\upload_test_wheels.ps1
after_build:
- 7z a wheels.zip %APPVEYOR_BUILD_FOLDER%\wheelhouse\*
artifacts:
- path: wheels.zip
name: Wheels