Skip to content

Commit ac1c4f9

Browse files
authored
add parse_code and line_width (#1)
1 parent af36aac commit ac1c4f9

7 files changed

Lines changed: 470 additions & 335 deletions

File tree

.github/workflows/CI.yml

Lines changed: 42 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file is autogenerated by maturin v1.9.6
1+
# This file is autogenerated by maturin v1.12.6
22
# To update, run
33
#
44
# maturin generate-ci github
@@ -11,7 +11,7 @@ on:
1111
- main
1212
- master
1313
tags:
14-
- "*"
14+
- '*'
1515
pull_request:
1616
workflow_dispatch:
1717

@@ -37,10 +37,10 @@ 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:
43-
python-version: 3.8
43+
python-version: 3.x
4444
- name: Build wheels
4545
uses: PyO3/maturin-action@v1
4646
with:
@@ -52,11 +52,11 @@ jobs:
5252
uses: PyO3/maturin-action@v1
5353
with:
5454
target: ${{ matrix.platform.target }}
55-
args: --release --out dist -i python3.13t
55+
args: --release --out dist -i python3.14t
5656
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
5757
manylinux: auto
5858
- name: Upload wheels
59-
uses: actions/upload-artifact@v4
59+
uses: actions/upload-artifact@v6
6060
with:
6161
name: wheels-linux-${{ matrix.platform.target }}
6262
path: dist
@@ -75,10 +75,10 @@ jobs:
7575
- runner: ubuntu-22.04
7676
target: armv7
7777
steps:
78-
- uses: actions/checkout@v4
79-
- uses: actions/setup-python@v5
78+
- uses: actions/checkout@v6
79+
- uses: actions/setup-python@v6
8080
with:
81-
python-version: 3.8
81+
python-version: 3.x
8282
- name: Build wheels
8383
uses: PyO3/maturin-action@v1
8484
with:
@@ -90,11 +90,11 @@ jobs:
9090
uses: PyO3/maturin-action@v1
9191
with:
9292
target: ${{ matrix.platform.target }}
93-
args: --release --out dist -i python3.13t
93+
args: --release --out dist -i python3.14t
9494
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
9595
manylinux: musllinux_1_2
9696
- name: Upload wheels
97-
uses: actions/upload-artifact@v4
97+
uses: actions/upload-artifact@v6
9898
with:
9999
name: wheels-musllinux-${{ matrix.platform.target }}
100100
path: dist
@@ -106,32 +106,37 @@ jobs:
106106
platform:
107107
- runner: windows-latest
108108
target: x64
109+
python_arch: x64
109110
- runner: windows-latest
110111
target: x86
112+
python_arch: x86
113+
- runner: windows-11-arm
114+
target: aarch64
115+
python_arch: arm64
111116
steps:
112-
- uses: actions/checkout@v4
113-
- uses: actions/setup-python@v5
117+
- uses: actions/checkout@v6
118+
- uses: actions/setup-python@v6
114119
with:
115-
python-version: 3.8
116-
architecture: ${{ matrix.platform.target }}
120+
python-version: 3.13
121+
architecture: ${{ matrix.platform.python_arch }}
117122
- name: Build wheels
118123
uses: PyO3/maturin-action@v1
119124
with:
120125
target: ${{ matrix.platform.target }}
121126
args: --release --out dist
122127
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
123-
- uses: actions/setup-python@v5
128+
- uses: actions/setup-python@v6
124129
with:
125-
python-version: 3.13t
126-
architecture: ${{ matrix.platform.target }}
130+
python-version: 3.14t
131+
architecture: ${{ matrix.platform.python_arch }}
127132
- name: Build free-threaded wheels
128133
uses: PyO3/maturin-action@v1
129134
with:
130135
target: ${{ matrix.platform.target }}
131-
args: --release --out dist -i python3.13t
136+
args: --release --out dist -i python3.14t
132137
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
133138
- name: Upload wheels
134-
uses: actions/upload-artifact@v4
139+
uses: actions/upload-artifact@v6
135140
with:
136141
name: wheels-windows-${{ matrix.platform.target }}
137142
path: dist
@@ -141,15 +146,15 @@ jobs:
141146
strategy:
142147
matrix:
143148
platform:
144-
- runner: macos-13
149+
- runner: macos-15-intel
145150
target: x86_64
146-
- runner: macos-14
151+
- runner: macos-latest
147152
target: aarch64
148153
steps:
149-
- uses: actions/checkout@v4
150-
- uses: actions/setup-python@v5
154+
- uses: actions/checkout@v6
155+
- uses: actions/setup-python@v6
151156
with:
152-
python-version: 3.8
157+
python-version: 3.x
153158
- name: Build wheels
154159
uses: PyO3/maturin-action@v1
155160
with:
@@ -160,25 +165,25 @@ jobs:
160165
uses: PyO3/maturin-action@v1
161166
with:
162167
target: ${{ matrix.platform.target }}
163-
args: --release --out dist -i python3.13t
168+
args: --release --out dist -i python3.14t
164169
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
165170
- name: Upload wheels
166-
uses: actions/upload-artifact@v4
171+
uses: actions/upload-artifact@v6
167172
with:
168173
name: wheels-macos-${{ matrix.platform.target }}
169174
path: dist
170175

171176
sdist:
172177
runs-on: ubuntu-latest
173178
steps:
174-
- uses: actions/checkout@v4
179+
- uses: actions/checkout@v6
175180
- name: Build sdist
176181
uses: PyO3/maturin-action@v1
177182
with:
178183
command: sdist
179184
args: --out dist
180185
- name: Upload sdist
181-
uses: actions/upload-artifact@v4
186+
uses: actions/upload-artifact@v6
182187
with:
183188
name: wheels-sdist
184189
path: dist
@@ -196,14 +201,14 @@ jobs:
196201
# Used to generate artifact attestation
197202
attestations: write
198203
steps:
199-
- uses: actions/download-artifact@v4
204+
- uses: actions/download-artifact@v7
200205
- name: Generate artifact attestation
201-
uses: actions/attest-build-provenance@v2
206+
uses: actions/attest-build-provenance@v3
202207
with:
203-
subject-path: "wheels-*/*"
208+
subject-path: 'wheels-*/*'
209+
- name: Install uv
210+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
211+
uses: astral-sh/setup-uv@v7
204212
- name: Publish to PyPI
205213
if: ${{ startsWith(github.ref, 'refs/tags/') }}
206-
uses: PyO3/maturin-action@v1
207-
with:
208-
command: upload
209-
args: --non-interactive --skip-existing wheels-*/*
214+
run: uv publish 'wheels-*/*'

0 commit comments

Comments
 (0)