Skip to content

Commit 1d7f507

Browse files
authored
chore: Update python versions in cibuildwheel.yml (#38)
* chore: Update python versions in cibuildwheel.yml * fix * mod * mod * mod * mod * mod * mod
1 parent 4d92cd3 commit 1d7f507

File tree

2 files changed

+77
-14
lines changed

2 files changed

+77
-14
lines changed

.github/workflows/cibuildwheel.yml

+76-11
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ jobs:
4343
python: 310
4444
platform_id: win_amd64
4545
arch: AMD64
46+
- os: windows-latest
47+
python: 311
48+
platform_id: win_amd64
49+
arch: AMD64
50+
- os: windows-latest
51+
python: 312
52+
platform_id: win_amd64
53+
arch: AMD64
4654

4755
# Linux 64 bit manylinux2014
4856
- os: ubuntu-latest
@@ -70,6 +78,16 @@ jobs:
7078
platform_id: manylinux_x86_64
7179
manylinux_image: manylinux2014
7280
arch: x86_64
81+
- os: ubuntu-latest
82+
python: 311
83+
platform_id: manylinux_x86_64
84+
manylinux_image: manylinux2014
85+
arch: x86_64
86+
- os: ubuntu-latest
87+
python: 312
88+
platform_id: manylinux_x86_64
89+
manylinux_image: manylinux2014
90+
arch: x86_64
7391

7492
# Linux 64 bit aarch64
7593
- os: ubuntu-latest
@@ -97,53 +115,100 @@ jobs:
97115
platform_id: manylinux_aarch64
98116
manylinux_image: manylinux2014
99117
arch: aarch64
118+
- os: ubuntu-latest
119+
python: 311
120+
platform_id: manylinux_aarch64
121+
manylinux_image: manylinux2014
122+
arch: aarch64
123+
- os: ubuntu-latest
124+
python: 312
125+
platform_id: manylinux_aarch64
126+
manylinux_image: manylinux2014
127+
arch: aarch64
100128

101129
# MacOS x86_64
102-
- os: macos-latest
130+
- os: macos-13
103131
python: 36
104132
platform_id: macosx_x86_64
105133
macosx_deployment_target: 10.14
106134
arch: x86_64
107-
- os: macos-latest
135+
- os: macos-13
108136
python: 37
109137
platform_id: macosx_x86_64
110138
macosx_deployment_target: 10.14
111139
arch: x86_64
112-
- os: macos-latest
140+
- os: macos-13
113141
python: 38
114142
platform_id: macosx_x86_64
115143
macosx_deployment_target: 10.14
116144
arch: x86_64
117-
- os: macos-latest
145+
- os: macos-13
118146
python: 39
119147
platform_id: macosx_x86_64
120148
macosx_deployment_target: 10.14
121149
arch: x86_64
122-
- os: macos-latest
150+
- os: macos-13
123151
python: 310
124152
platform_id: macosx_x86_64
125153
macosx_deployment_target: 10.14
126154
arch: x86_64
155+
- os: macos-13
156+
python: 311
157+
platform_id: macosx_x86_64
158+
macosx_deployment_target: 10.14
159+
arch: x86_64
160+
- os: macos-13
161+
python: 312
162+
platform_id: macosx_x86_64
163+
macosx_deployment_target: 10.14
164+
arch: x86_64
165+
166+
# MacOS arm64
167+
- os: macos-14
168+
python: 38
169+
platform_id: macosx_arm64
170+
macosx_deployment_target: 11.7
171+
arch: arm64
172+
- os: macos-14
173+
python: 39
174+
platform_id: macosx_arm64
175+
macosx_deployment_target: 11.7
176+
arch: arm64
177+
- os: macos-14
178+
python: 310
179+
platform_id: macosx_arm64
180+
macosx_deployment_target: 11.7
181+
arch: arm64
182+
- os: macos-14
183+
python: 311
184+
platform_id: macosx_arm64
185+
macosx_deployment_target: 11.7
186+
arch: arm64
187+
- os: macos-14
188+
python: 312
189+
platform_id: macosx_arm64
190+
macosx_deployment_target: 11.7
191+
arch: arm64
192+
127193

128194
steps:
129195
- uses: actions/checkout@v2
130196
with:
131197
submodules: recursive
132-
- uses: actions/setup-python@v2
198+
- uses: actions/setup-python@v5
133199
name: Install Python
134200
with:
135-
python-version: 3.9
201+
python-version: '3.10'
136202
- name: Set up QEMU
137203
if: runner.os == 'Linux'
138204
uses: docker/setup-qemu-action@v1
139205
with:
140206
platforms: all
141207
- name: Build wheels
142-
uses: pypa/cibuildwheel@v2.4.0
208+
uses: pypa/cibuildwheel@v2.17.0
143209
env:
144210
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.manylinux_image }}
145211
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
146-
CIBW_TEST_SKIP: "*-macosx_universal2"
147212
CIBW_BEFORE_BUILD: pip install pybind11
148213
CIBW_TEST_COMMAND: pytest {project}/tests -vv
149214
CIBW_TEST_REQUIRES: pytest numpy
@@ -161,10 +226,10 @@ jobs:
161226
- uses: actions/checkout@v2
162227
with:
163228
submodules: recursive
164-
- uses: actions/setup-python@v2
229+
- uses: actions/setup-python@v5
165230
name: Install Python
166231
with:
167-
python-version: 3.9
232+
python-version: '3.10'
168233
- name: Build sdist
169234
run: python setup.py sdist
170235
- uses: actions/upload-artifact@v2

requirements.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
numpy>=1.16,<2.0
2-
pybind11; platform_machine != "x86_64" and platform_machine != "amd64" and platform_machine != "AMD64" and sys_platform == 'darwin' # for m1 mac
3-
cmake; platform_machine != "x86_64" and platform_machine != "amd64" and platform_machine != "AMD64" and sys_platform == 'darwin' # for m1 mac
1+
numpy>=1.16,<2.0

0 commit comments

Comments
 (0)