Skip to content

Commit 613aaef

Browse files
committed
Upgrade Maturin
1 parent defbdd1 commit 613aaef

File tree

2 files changed

+29
-25
lines changed

2 files changed

+29
-25
lines changed

.github/workflows/CI.yml

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file is autogenerated by maturin v1.10.2
1+
# This file is autogenerated by maturin v1.11.5
22
# To update, run
33
#
44
# maturin generate-ci --pytest github
@@ -37,8 +37,8 @@ jobs:
3737
- runner: ubuntu-22.04
3838
target: ppc64le
3939
steps:
40-
- uses: actions/checkout@v4
41-
- uses: actions/setup-python@v5
40+
- uses: actions/checkout@v6
41+
- uses: actions/setup-python@v6
4242
with:
4343
python-version: 3.x
4444
- name: Build wheels
@@ -49,7 +49,7 @@ jobs:
4949
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
5050
manylinux: auto
5151
- name: Upload wheels
52-
uses: actions/upload-artifact@v4
52+
uses: actions/upload-artifact@v5
5353
with:
5454
name: wheels-linux-${{ matrix.platform.target }}
5555
path: dist
@@ -93,8 +93,8 @@ jobs:
9393
- runner: ubuntu-22.04
9494
target: armv7
9595
steps:
96-
- uses: actions/checkout@v4
97-
- uses: actions/setup-python@v5
96+
- uses: actions/checkout@v6
97+
- uses: actions/setup-python@v6
9898
with:
9999
python-version: 3.x
100100
- name: Build wheels
@@ -105,7 +105,7 @@ jobs:
105105
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
106106
manylinux: musllinux_1_2
107107
- name: Upload wheels
108-
uses: actions/upload-artifact@v4
108+
uses: actions/upload-artifact@v5
109109
with:
110110
name: wheels-musllinux-${{ matrix.platform.target }}
111111
path: dist
@@ -147,27 +147,31 @@ jobs:
147147
platform:
148148
- runner: windows-latest
149149
target: x64
150+
python_arch: x64
150151
- runner: windows-latest
151152
target: x86
153+
python_arch: x86
154+
- runner: windows-11-arm
155+
target: aarch64
156+
python_arch: arm64
152157
steps:
153-
- uses: actions/checkout@v4
154-
- uses: actions/setup-python@v5
158+
- uses: actions/checkout@v6
159+
- uses: actions/setup-python@v6
155160
with:
156-
python-version: 3.x
157-
architecture: ${{ matrix.platform.target }}
161+
python-version: 3.13
162+
architecture: ${{ matrix.platform.python_arch }}
158163
- name: Build wheels
159164
uses: PyO3/maturin-action@v1
160165
with:
161166
target: ${{ matrix.platform.target }}
162167
args: --release --out dist --find-interpreter
163168
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
164169
- name: Upload wheels
165-
uses: actions/upload-artifact@v4
170+
uses: actions/upload-artifact@v5
166171
with:
167172
name: wheels-windows-${{ matrix.platform.target }}
168173
path: dist
169174
- name: pytest
170-
if: ${{ !startsWith(matrix.platform.target, 'aarch64') }}
171175
shell: bash
172176
run: |
173177
set -e
@@ -187,8 +191,8 @@ jobs:
187191
- runner: macos-latest
188192
target: aarch64
189193
steps:
190-
- uses: actions/checkout@v4
191-
- uses: actions/setup-python@v5
194+
- uses: actions/checkout@v6
195+
- uses: actions/setup-python@v6
192196
with:
193197
python-version: 3.x
194198
- name: Build wheels
@@ -198,7 +202,7 @@ jobs:
198202
args: --release --out dist --find-interpreter
199203
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
200204
- name: Upload wheels
201-
uses: actions/upload-artifact@v4
205+
uses: actions/upload-artifact@v5
202206
with:
203207
name: wheels-macos-${{ matrix.platform.target }}
204208
path: dist
@@ -214,14 +218,14 @@ jobs:
214218
sdist:
215219
runs-on: ubuntu-latest
216220
steps:
217-
- uses: actions/checkout@v4
221+
- uses: actions/checkout@v6
218222
- name: Build sdist
219223
uses: PyO3/maturin-action@v1
220224
with:
221225
command: sdist
222226
args: --out dist
223227
- name: Upload sdist
224-
uses: actions/upload-artifact@v4
228+
uses: actions/upload-artifact@v5
225229
with:
226230
name: wheels-sdist
227231
path: dist
@@ -240,14 +244,14 @@ jobs:
240244
# Used to generate artifact attestation
241245
attestations: write
242246
steps:
243-
- uses: actions/download-artifact@v4
247+
- uses: actions/download-artifact@v6
244248
- name: Generate artifact attestation
245-
uses: actions/attest-build-provenance@v2
249+
uses: actions/attest-build-provenance@v3
246250
with:
247251
subject-path: 'wheels-*/*'
252+
- name: Install uv
253+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
254+
uses: astral-sh/setup-uv@v7
248255
- name: Publish to PyPI
249256
if: ${{ startsWith(github.ref, 'refs/tags/') }}
250-
uses: PyO3/maturin-action@v1
251-
with:
252-
command: upload
253-
args: --non-interactive --skip-existing wheels-*/*
257+
run: uv publish 'wheels-*/*'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["maturin>=1.10,<2.0"]
2+
requires = ["maturin>=1.11,<2.0"]
33
build-backend = "maturin"
44

55
[project]

0 commit comments

Comments
 (0)