Skip to content

Commit 53dd4ea

Browse files
committed
CI: add cp314/cp314t wheel builds
1 parent 3f661c2 commit 53dd4ea

1 file changed

Lines changed: 4 additions & 41 deletions

File tree

.github/workflows/wheel_tests_and_release.yml

Lines changed: 4 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
fail-fast: false
3535
matrix:
3636
os: [ubuntu-latest]
37-
cibw_python: ["cp311", "cp312", "cp313", "cp313t"]
37+
cibw_python: ["cp311", "cp312", "cp313", "cp313t", "cp314", "cp314t"]
3838
cibw_arch: ["x86_64"]
3939
steps:
4040
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
@@ -45,17 +45,6 @@ jobs:
4545
with:
4646
python-version: "3.12"
4747

48-
- name: Install build deps; set CIBW environment variables
49-
if: ${{ matrix.cibw_python }} == "cp313t"
50-
run: |
51-
PYPI_URL="https://pypi.anaconda.org/scientific-python-nightly-wheels/simple"
52-
CIBW_DEPS="pip install --pre -i $PYPI_URL cython &&\
53-
pip install numpy pytest meson-python ninja"
54-
NO_BUILD_ISOLATION="pip; args: --no-build-isolation"
55-
echo "CIBW_BEFORE_BUILD=$CIBW_DEPS" >> "$GITHUB_ENV"
56-
echo "CIBW_BEFORE_TEST=$CIBW_DEPS" >> "$GITHUB_ENV"
57-
echo "CIBW_BUILD_FRONTEND=$NO_BUILD_ISOLATION" >> "$GITHUB_ENV"
58-
5948
- name: Build the wheel
6049
uses: pypa/cibuildwheel@ffd835cef18fa11522f608fc0fa973b89f5ddc87 # v3.1.0
6150
with:
@@ -76,7 +65,7 @@ jobs:
7665
fail-fast: false
7766
matrix:
7867
os: [ubuntu-22.04-arm]
79-
cibw_python: ["cp311", "cp312", "cp313"]
68+
cibw_python: ["cp311", "cp312", "cp313", "cp313t", "cp314", "cp314t"]
8069
cibw_arch: ["aarch64"]
8170
steps:
8271
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
@@ -107,16 +96,13 @@ jobs:
10796
matrix:
10897
# macos-13 is the last runner that supports Intel (x86_64) architecture
10998
os: [macos-13, macos-14]
110-
cibw_python: ["cp311", "cp312", "cp313", "cp313t"]
99+
cibw_python: ["cp311", "cp312", "cp313", "cp313t", "cp314", "cp314t"]
111100
cibw_arch: ["x86_64", "arm64"]
112101
exclude:
113102
- os: macos-14
114103
cibw_arch: "x86_64"
115104
- os: macos-13
116105
cibw_arch: "arm64"
117-
- os: macos-13
118-
cibw_arch: "x86_64"
119-
cibw_python: "cp313t"
120106
steps:
121107
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
122108
with:
@@ -127,17 +113,6 @@ jobs:
127113
with:
128114
python-version: "3.12"
129115

130-
- name: Install build deps; set CIBW environment variables
131-
if: ${{ matrix.cibw_python }} == "cp313t"
132-
run: |
133-
PYPI_URL="https://pypi.anaconda.org/scientific-python-nightly-wheels/simple"
134-
CIBW_DEPS="pip install --pre -i $PYPI_URL cython &&\
135-
pip install numpy pytest meson-python ninja"
136-
NO_BUILD_ISOLATION="pip; args: --no-build-isolation"
137-
echo "CIBW_BEFORE_BUILD=$CIBW_DEPS" >> "$GITHUB_ENV"
138-
echo "CIBW_BEFORE_TEST=$CIBW_DEPS" >> "$GITHUB_ENV"
139-
echo "CIBW_BUILD_FRONTEND=$NO_BUILD_ISOLATION" >> "$GITHUB_ENV"
140-
141116
- name: Build wheels for CPython (macOS) (x86_64)
142117
if: matrix.cibw_arch == 'x86_64'
143118
uses: pypa/cibuildwheel@ffd835cef18fa11522f608fc0fa973b89f5ddc87 # v3.1.0
@@ -170,7 +145,7 @@ jobs:
170145
matrix:
171146
os: [windows-latest]
172147
cibw_arch: ["AMD64", "x86"]
173-
cibw_python: ["cp311", "cp312", "cp313", "cp313t"]
148+
cibw_python: ["cp311", "cp312", "cp313", "cp313t", "cp314", "cp314t"]
174149
steps:
175150
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
176151
with:
@@ -193,18 +168,6 @@ jobs:
193168
with:
194169
architecture: x64
195170

196-
- name: Install build deps; set CIBW environment variables
197-
if: ${{ matrix.cibw_python }} == "cp313t"
198-
shell: bash -el {0}
199-
run: |
200-
PYPI_URL="https://pypi.anaconda.org/scientific-python-nightly-wheels/simple"
201-
CIBW_DEPS="pip install --pre -i $PYPI_URL cython numpy &&\
202-
pip install pytest meson-python ninja"
203-
NO_BUILD_ISOLATION="pip; args: --no-build-isolation"
204-
echo "CIBW_BEFORE_BUILD=$CIBW_DEPS" >> "$GITHUB_ENV"
205-
echo "CIBW_BEFORE_TEST=$CIBW_DEPS" >> "$GITHUB_ENV"
206-
echo "CIBW_BUILD_FRONTEND=$NO_BUILD_ISOLATION" >> "$GITHUB_ENV"
207-
208171
- name: Build Windows wheels for CPython
209172
uses: pypa/cibuildwheel@ffd835cef18fa11522f608fc0fa973b89f5ddc87 # v3.1.0
210173
with:

0 commit comments

Comments
 (0)