Skip to content

Commit d71fb9f

Browse files
committed
Set Windows wheel Python versions
1 parent 8a3a034 commit d71fb9f

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

.github/workflows/wheel_tests_and_release.yml

+4-14
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
fail-fast: false
6464
matrix:
6565
os: [macos-latest]
66-
cibw_python: [ "cp38-*", "cp39-*", "cp310-*", "cp311-*"]
66+
cibw_python: ["cp310-*", "cp311-*", "cp312-*"]
6767
cibw_arch: [ "x86_64", "arm64"] #, "universal2"]
6868

6969
steps:
@@ -76,16 +76,6 @@ jobs:
7676
with:
7777
python-version: '3.10'
7878

79-
# See:
80-
# https://cibuildwheel.readthedocs.io/en/stable/faq/#macos-building-cpython-38-wheels-on-arm64
81-
# https://github.com/pypa/cibuildwheel/issues/1414
82-
- name: Install experimental MacOSX Py38
83-
if: startsWith(matrix.cibw_python, 'cp38') && (matrix.cibw_arch == 'arm64')
84-
run: |
85-
curl -o /tmp/Python38.pkg https://www.python.org/ftp/python/3.8.10/python-3.8.10-macos11.pkg
86-
sudo installer -pkg /tmp/Python38.pkg -target /
87-
sh "/Applications/Python 3.8/Install Certificates.command"
88-
8979
- name: Install cibuildwheel
9080
run: |
9181
python -m pip install cibuildwheel
@@ -116,12 +106,13 @@ jobs:
116106
path: ./dist/*.whl
117107

118108
build_windows_wheels:
119-
name: Build ${{ matrix.cibw_arch }} wheels on ${{ matrix.os }}
109+
name: Build python ${{ matrix.cibw_python }} ${{ matrix.cibw_arch }} wheels on ${{ matrix.os }}
120110
runs-on: ${{ matrix.os }}
121111
strategy:
122112
fail-fast: false
123113
matrix:
124114
os: [windows-latest]
115+
cibw_python: ["cp310-*", "cp311-*", "cp312-*"]
125116
cibw_arch: ["AMD64"]
126117

127118
steps:
@@ -142,8 +133,7 @@ jobs:
142133
run: |
143134
python -m cibuildwheel --output-dir dist
144135
env:
145-
# Skip pypy
146-
CIBW_BUILD: "cp3?-*"
136+
CIBW_BUILD: ${{ matrix.cibw_python }}
147137
CIBW_ARCHS_WINDOWS: ${{ matrix.cibw_arch }}
148138
# -Wl,-S equivalent to gcc's -Wl,--strip-debug
149139
LDFLAGS: "-Wl,-S"

0 commit comments

Comments
 (0)