Skip to content

Commit 6ca706c

Browse files
committed
Remove Python 3.7 from AppVeyor CI and add Python 3.12
1 parent 82dc56b commit 6ca706c

File tree

1 file changed

+23
-27
lines changed

1 file changed

+23
-27
lines changed

appveyor.yml

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,6 @@ environment:
77
JANSSON_VERSION: "2.13"
88

99
matrix:
10-
11-
# Pre-installed Python versions, which Appveyor may upgrade to
12-
# a later point release.
13-
# See: http://www.appveyor.com/docs/installed-software#python
14-
- PYTHON: "C:\\Python37"
15-
PYTHON_VERSION: "3.7.x"
16-
PYTHON_ARCH: "32"
17-
OPENSSL_LIB: "https://ci.appveyor.com/api/buildjobs/fakubeldw67e9pmg/artifacts/YARA.OpenSSL.x86.1.1.1.nupkg"
18-
VS: "Visual Studio 14 2015"
19-
20-
- PYTHON: "C:\\Python37-x64"
21-
PYTHON_VERSION: "3.7.x"
22-
PYTHON_ARCH: "64"
23-
OPENSSL_LIB: "https://ci.appveyor.com/api/buildjobs/q63539qt9yqaqspo/artifacts/YARA.OpenSSL.x64.1.1.1.nupkg"
24-
VS: "Visual Studio 14 2015 Win64"
25-
2610
- PYTHON: "C:\\Python38"
2711
PYTHON_VERSION: "3.8.x"
2812
PYTHON_ARCH: "32"
@@ -71,16 +55,29 @@ environment:
7155
OPENSSL_LIB: "https://ci.appveyor.com/api/buildjobs/q63539qt9yqaqspo/artifacts/YARA.OpenSSL.x64.1.1.1.nupkg"
7256
VS: "Visual Studio 14 2015 Win64"
7357

58+
- PYTHON: "C:\\Python312"
59+
PYTHON_VERSION: "3.12"
60+
PYTHON_ARCH: "32"
61+
OPENSSL_LIB: "https://ci.appveyor.com/api/buildjobs/fakubeldw67e9pmg/artifacts/YARA.OpenSSL.x86.1.1.1.nupkg"
62+
VS: "Visual Studio 14 2015"
63+
64+
- PYTHON: "C:\\Python312-x64"
65+
PYTHON_VERSION: "3.12"
66+
PYTHON_ARCH: "64"
67+
OPENSSL_LIB: "https://ci.appveyor.com/api/buildjobs/q63539qt9yqaqspo/artifacts/YARA.OpenSSL.x64.1.1.1.nupkg"
68+
VS: "Visual Studio 14 2015 Win64"
69+
7470
install:
7571
# If there is a newer build queued for the same PR, cancel this one.
7672
# The AppVeyor 'rollout builds' option is supposed to serve the same
7773
# purpose but it is problematic because it tends to cancel builds pushed
7874
# directly to master instead of just PR builds (or the converse).
7975
# credits: JuliaLang developers.
80-
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
81-
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
82-
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
83-
throw "There are newer queued builds for this pull request, failing early." }
76+
- ps:
77+
if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
78+
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
79+
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
80+
throw "There are newer queued builds for this pull request, failing early." }
8481

8582
- ps: "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12"
8683

@@ -97,7 +94,7 @@ install:
9794

9895
# Check that we have the expected version and architecture for Python
9996
- "python --version"
100-
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
97+
- 'python -c "import struct; print(struct.calcsize(''P'') * 8)"'
10198

10299
# Upgrade to the latest version of pip to avoid it displaying warnings
103100
# about it being out of date.
@@ -131,11 +128,10 @@ install:
131128
# projects/yara-python
132129
- cd ../../yara-python
133130

134-
135131
clone_script:
136-
- cmd: git clone -q --recursive --branch=%APPVEYOR_REPO_BRANCH% https://github.com/%APPVEYOR_REPO_NAME%.git %APPVEYOR_BUILD_FOLDER%
137-
- cmd: git fetch
138-
- cmd: git checkout -qf %APPVEYOR_REPO_BRANCH%
132+
- cmd: git clone -q --recursive --branch=%APPVEYOR_REPO_BRANCH% https://github.com/%APPVEYOR_REPO_NAME%.git %APPVEYOR_BUILD_FOLDER%
133+
- cmd: git fetch
134+
- cmd: git checkout -qf %APPVEYOR_REPO_BRANCH%
139135

140136
build_script:
141137
# Build the compiled extension
@@ -163,10 +159,10 @@ deploy:
163159
provider: GitHub
164160
auth_token:
165161
secure: d3qqX7bmrBiKJI38yFPc5vHrGGfS3LxLC7FaG6ewI2ghPPE22Pk6QtyrEFFb73PL
166-
artifact: /.*\.exe/
162+
artifact: /.*\.exe/
167163
draft: true
168164
on:
169-
APPVEYOR_REPO_TAG: true # deploy on tag push only
165+
APPVEYOR_REPO_TAG: true # deploy on tag push only
170166

171167
#on_success:
172168
# - TODO: upload the content of dist/*.whl to a public wheelhouse

0 commit comments

Comments
 (0)