-
Notifications
You must be signed in to change notification settings - Fork 76
/
appveyor.yml
84 lines (63 loc) · 2.15 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# This config file is used by appveyor.com to build Windows release binaries
version: 0.7.dev0-b{build}
branches:
only:
- main
- /v\d+(\.\d+)*/
image: Visual Studio 2022
environment:
global:
# See: http://stackoverflow.com/a/13751649/163740
WRAPPER: "cmd /E:ON /V:ON /C .\\scripts\\win_wrapper.cmd"
PYEXE: "%WRAPPER% %PYTHON%\\python.exe"
SETUPPY: "%PYEXE% setup.py --with-extension"
PIP: "%PYEXE% -m pip"
TWINE: "%PYEXE% -m twine"
PYPI_TOKEN:
secure: w9ql7j0y9fatBSCgsUn1MDFsDvc0WXY88K8hNBHZzq6uBPxWMd7ZblMZSJv4Nywr6ViudQCn4qM/Emm7R8UgKGnHeSX+B8V41ywKgbszEh9wKtuMWI5htsfjaD3Yib/dz/ynGDKEf3nkE6rP2j9bfVLMUARHmvztL+G2rUrjj2GQTqs0ddJ16OudDo2aA/ClsW1Zexc5GPgkun5+JFneUeVV59/bwORGfSjgEtoMyIQ8mdFs/My4sImC+jXFfSHD6s08anIuNX5KO6SSg5mwcxZq+1PweceHivJ87VvCI7w=
matrix:
- PYTHON: "C:\\Python38"
PYTHON_VERSION: "3.8"
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python38-x64"
PYTHON_VERSION: "3.8"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python39"
PYTHON_VERSION: "3.9"
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python39-x64"
PYTHON_VERSION: "3.9"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python310"
PYTHON_VERSION: "3.10"
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python310-x64"
PYTHON_VERSION: "3.10"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python311"
PYTHON_VERSION: "3.11"
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python311-x64"
PYTHON_VERSION: "3.11"
PYTHON_ARCH: "64"
- PYTHON: "C:\\Python312"
PYTHON_VERSION: "3.12"
PYTHON_ARCH: "32"
- PYTHON: "C:\\Python312-x64"
PYTHON_VERSION: "3.12"
PYTHON_ARCH: "64"
install:
- "%PIP% install --disable-pip-version-check --user --upgrade pip"
- "%PIP% install setuptools wheel twine pytest"
build_script:
- "%SETUPPY% build"
- "%SETUPPY% develop --user"
test_script:
- "%PYEXE% -m pytest"
after_test:
- "%SETUPPY% bdist_wheel"
on_success:
- "IF %APPVEYOR_REPO_TAG%==true %TWINE% upload dist\\* -u __token__ -p %PYPI_TOKEN%"
artifacts:
- path: dist\*
deploy: off