Skip to content

Commit 7f780be

Browse files
committed
migrate to version 1.0.2
1 parent 6f0853e commit 7f780be

File tree

7 files changed

+206
-137
lines changed

7 files changed

+206
-137
lines changed

.github/workflows/CI.yml

Lines changed: 85 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file is autogenerated by maturin v1.3.1
1+
# This file is autogenerated by maturin v1.8.6
22
# To update, run
33
#
44
# maturin generate-ci github
@@ -20,71 +20,122 @@ permissions:
2020

2121
jobs:
2222
linux:
23-
runs-on: ubuntu-latest
23+
runs-on: ${{ matrix.platform.runner }}
2424
strategy:
2525
matrix:
26-
target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
26+
platform:
27+
- runner: ubuntu-22.04
28+
target: x86_64
29+
- runner: ubuntu-22.04
30+
target: x86
31+
- runner: ubuntu-22.04
32+
target: aarch64
33+
- runner: ubuntu-22.04
34+
target: armv7
35+
- runner: ubuntu-22.04
36+
target: s390x
37+
- runner: ubuntu-22.04
38+
target: ppc64le
2739
steps:
2840
- uses: actions/checkout@v4
2941
- uses: actions/setup-python@v5
3042
with:
31-
python-version: '3.10'
43+
python-version: 3.x
3244
- name: Build wheels
3345
uses: PyO3/maturin-action@v1
3446
with:
35-
target: ${{ matrix.target }}
47+
target: ${{ matrix.platform.target }}
3648
args: --release --out dist --find-interpreter
37-
sccache: 'true'
49+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
3850
manylinux: auto
3951
- name: Upload wheels
4052
uses: actions/upload-artifact@v4
4153
with:
42-
name: wheels-linux-${{ matrix.target }}
54+
name: wheels-linux-${{ matrix.platform.target }}
55+
path: dist
56+
57+
musllinux:
58+
runs-on: ${{ matrix.platform.runner }}
59+
strategy:
60+
matrix:
61+
platform:
62+
- runner: ubuntu-22.04
63+
target: x86_64
64+
- runner: ubuntu-22.04
65+
target: x86
66+
- runner: ubuntu-22.04
67+
target: aarch64
68+
- runner: ubuntu-22.04
69+
target: armv7
70+
steps:
71+
- uses: actions/checkout@v4
72+
- uses: actions/setup-python@v5
73+
with:
74+
python-version: 3.x
75+
- name: Build wheels
76+
uses: PyO3/maturin-action@v1
77+
with:
78+
target: ${{ matrix.platform.target }}
79+
args: --release --out dist --find-interpreter
80+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
81+
manylinux: musllinux_1_2
82+
- name: Upload wheels
83+
uses: actions/upload-artifact@v4
84+
with:
85+
name: wheels-musllinux-${{ matrix.platform.target }}
4386
path: dist
4487

4588
windows:
46-
runs-on: windows-latest
89+
runs-on: ${{ matrix.platform.runner }}
4790
strategy:
4891
matrix:
49-
target: [x64, x86]
92+
platform:
93+
- runner: windows-latest
94+
target: x64
95+
- runner: windows-latest
96+
target: x86
5097
steps:
5198
- uses: actions/checkout@v4
5299
- uses: actions/setup-python@v5
53100
with:
54-
python-version: '3.10'
55-
architecture: ${{ matrix.target }}
101+
python-version: 3.x
102+
architecture: ${{ matrix.platform.target }}
56103
- name: Build wheels
57104
uses: PyO3/maturin-action@v1
58105
with:
59-
target: ${{ matrix.target }}
106+
target: ${{ matrix.platform.target }}
60107
args: --release --out dist --find-interpreter
61-
sccache: 'true'
108+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
62109
- name: Upload wheels
63110
uses: actions/upload-artifact@v4
64111
with:
65-
name: wheels-windows-${{ matrix.target }}
112+
name: wheels-windows-${{ matrix.platform.target }}
66113
path: dist
67114

68115
macos:
69-
runs-on: macos-latest
116+
runs-on: ${{ matrix.platform.runner }}
70117
strategy:
71118
matrix:
72-
target: [x86_64, aarch64]
119+
platform:
120+
- runner: macos-13
121+
target: x86_64
122+
- runner: macos-14
123+
target: aarch64
73124
steps:
74125
- uses: actions/checkout@v4
75126
- uses: actions/setup-python@v5
76127
with:
77-
python-version: '3.10'
128+
python-version: 3.x
78129
- name: Build wheels
79130
uses: PyO3/maturin-action@v1
80131
with:
81-
target: ${{ matrix.target }}
132+
target: ${{ matrix.platform.target }}
82133
args: --release --out dist --find-interpreter
83-
sccache: 'true'
134+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
84135
- name: Upload wheels
85136
uses: actions/upload-artifact@v4
86137
with:
87-
name: wheels-macos-${{ matrix.target }}
138+
name: wheels-macos-${{ matrix.platform.target }}
88139
path: dist
89140

90141
sdist:
@@ -105,18 +156,26 @@ jobs:
105156
release:
106157
name: Release
107158
runs-on: ubuntu-latest
108-
if: "startsWith(github.ref, 'refs/tags/')"
109-
needs: [linux, windows, macos, sdist]
159+
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
160+
needs: [linux, musllinux, windows, macos, sdist]
161+
permissions:
162+
# Use to sign the release artifacts
163+
id-token: write
164+
# Used to upload release artifacts
165+
contents: write
166+
# Used to generate artifact attestation
167+
attestations: write
110168
steps:
111169
- uses: actions/download-artifact@v4
170+
- name: Generate artifact attestation
171+
uses: actions/attest-build-provenance@v2
112172
with:
113-
pattern: wheels-*
114-
path: wheels
115-
merge-multiple: true
173+
subject-path: 'wheels-*/*'
116174
- name: Publish to PyPI
175+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
117176
uses: PyO3/maturin-action@v1
118177
env:
119178
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
120179
with:
121180
command: upload
122-
args: --non-interactive --skip-existing wheels/*
181+
args: --non-interactive --skip-existing wheels-*/*

Cargo.lock

Lines changed: 26 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
22
name = "jsonpath_rust_bindings"
3-
version = "0.7.5"
3+
version = "1.0.2"
44
edition = "2021"
55

66
[lib]
77
name = "jsonpath_rust_bindings"
88
crate-type = ["cdylib"]
99

1010
[dependencies]
11-
pyo3 = "0.24"
12-
jsonpath-rust = "0.7.5"
11+
pyo3 = "0.25.0"
12+
jsonpath-rust = "1.0.2"
1313
serde_json = "1.0"
14-
pythonize = "0.24.0"
14+
pythonize = "0.25.0"

0 commit comments

Comments
 (0)