Skip to content

Commit dea33c2

Browse files
committed
fix: correct Python version format for cibuildwheel
- Add cp_version to matrix for proper version format (310 instead of 3.10) - Use cp_version in CIBW_BUILD environment variable
1 parent e40d656 commit dea33c2

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/build-wheels.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,37 +18,49 @@ jobs:
1818
# Linux builds
1919
- os: ubuntu-latest
2020
python-version: '3.10'
21+
cp_version: '310'
2122
- os: ubuntu-latest
2223
python-version: '3.11'
24+
cp_version: '311'
2325
- os: ubuntu-latest
2426
python-version: '3.12'
27+
cp_version: '312'
2528

2629
# Windows builds
2730
- os: windows-latest
2831
python-version: '3.10'
32+
cp_version: '310'
2933
- os: windows-latest
3034
python-version: '3.11'
35+
cp_version: '311'
3136
- os: windows-latest
3237
python-version: '3.12'
38+
cp_version: '312'
3339

3440
# macOS builds
3541
- os: macos-latest
3642
python-version: '3.10'
43+
cp_version: '310'
3744
arch: x86_64
3845
- os: macos-latest
3946
python-version: '3.11'
47+
cp_version: '311'
4048
arch: x86_64
4149
- os: macos-latest
4250
python-version: '3.12'
51+
cp_version: '312'
4352
arch: x86_64
4453
- os: macos-latest
4554
python-version: '3.10'
55+
cp_version: '310'
4656
arch: arm64
4757
- os: macos-latest
4858
python-version: '3.11'
59+
cp_version: '311'
4960
arch: arm64
5061
- os: macos-latest
5162
python-version: '3.12'
63+
cp_version: '312'
5264
arch: arm64
5365

5466
steps:
@@ -65,7 +77,7 @@ jobs:
6577

6678
- name: Build wheels
6779
env:
68-
CIBW_BUILD: cp${{ matrix.python-version }}-*
80+
CIBW_BUILD: cp${{ matrix.cp_version }}-*
6981
CIBW_ARCHS: all
7082
CIBW_BEFORE_BUILD: pip install poetry && poetry install --all-extras
7183
CIBW_ENVIRONMENT: INCLUDE_DEPS=1

0 commit comments

Comments
 (0)