Skip to content

Commit 18df984

Browse files
committed
test build
1 parent 8d3c585 commit 18df984

File tree

3 files changed

+30
-13
lines changed

3 files changed

+30
-13
lines changed

.github/workflows/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
# Python versions to test
6969
# Comment out any version you want to skip during development
7070
PYTHON_MATRIX='[
71-
"3.9", "3.10", "3.11", "3.12"
71+
"3.11"
7272
]'
7373
# Python versions: "3.9", "3.10", "3.11", "3.12"
7474

.github/workflows/release.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -263,18 +263,6 @@ jobs:
263263

264264
- name: Build wheels
265265
uses: pypa/cibuildwheel@v2.16.2
266-
env:
267-
CIBW_BUILD: cp39-* cp310-* cp311-* cp312-*
268-
CIBW_SKIP: "*-musllinux_*"
269-
CIBW_BEFORE_ALL_LINUX: yum install -y cmake ninja-build openssl-devel libnghttp2-devel zlib-devel pkgconfig autoconf automake libtool golang
270-
CIBW_BEFORE_ALL_MACOS: brew install cmake ninja openssl@3 libnghttp2 go
271-
CIBW_BEFORE_ALL_WINDOWS: choco install cmake ninja golang -y
272-
CIBW_ENVIRONMENT_WINDOWS: VCPKG_ROOT=C:/vcpkg
273-
CIBW_BEFORE_BUILD_LINUX: bash scripts/setup_vendors.sh
274-
CIBW_BEFORE_BUILD_MACOS: bash scripts/setup_vendors.sh
275-
CIBW_BEFORE_BUILD_WINDOWS: >
276-
vcpkg install nghttp2:x64-windows zlib:x64-windows &&
277-
bash scripts/setup_vendors.sh
278266

279267
- uses: actions/upload-artifact@v4
280268
with:

pyproject.toml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,32 @@ markers = [
115115
"integration: marks tests that require network access",
116116
"ssl: marks tests that require SSL support",
117117
]
118+
119+
[tool.cibuildwheel]
120+
build = "cp39-* cp310-* cp311-* cp312-*"
121+
skip = "*-musllinux_*"
122+
build-verbosity = 1
123+
124+
[tool.cibuildwheel.linux]
125+
before-all = [
126+
"sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* || true",
127+
"sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* || true",
128+
"yum install -y cmake ninja-build openssl-devel libnghttp2-devel zlib-devel pkgconfig autoconf automake libtool golang",
129+
]
130+
before-build = "bash scripts/setup_vendors.sh"
131+
132+
[tool.cibuildwheel.macos]
133+
before-all = [
134+
"brew install cmake ninja openssl@3 libnghttp2 go",
135+
]
136+
before-build = "bash scripts/setup_vendors.sh"
137+
138+
[tool.cibuildwheel.windows]
139+
before-all = [
140+
"choco install cmake ninja golang -y",
141+
]
142+
before-build = [
143+
"vcpkg install nghttp2:x64-windows zlib:x64-windows",
144+
"bash scripts/setup_vendors.sh",
145+
]
146+
environment = { VCPKG_ROOT = "C:/vcpkg" }

0 commit comments

Comments
 (0)