r4pm 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- r4pm-0.3.1/.github/workflows/python310.yml +207 -0
- r4pm-0.3.1/.github/workflows/python311.yml +207 -0
- r4pm-0.3.1/.github/workflows/python312.yml +207 -0
- r4pm-0.3.1/.github/workflows/python313.yml +207 -0
- r4pm-0.3.1/.github/workflows/python314.yml +168 -0
- r4pm-0.3.1/.github/workflows/python37.yml +207 -0
- r4pm-0.3.1/.github/workflows/python38.yml +207 -0
- r4pm-0.3.1/.github/workflows/python39.yml +207 -0
- r4pm-0.3.1/.gitignore +85 -0
- r4pm-0.3.1/Cargo.lock +3995 -0
- r4pm-0.3.1/Cargo.toml +27 -0
- r4pm-0.3.1/LICENSE-APACHE +201 -0
- r4pm-0.3.1/LICENSE-MIT +21 -0
- r4pm-0.3.1/PKG-INFO +183 -0
- r4pm-0.3.1/README.md +166 -0
- r4pm-0.3.1/build.rs +439 -0
- r4pm-0.3.1/example.py +48 -0
- r4pm-0.3.1/pyproject.toml +35 -0
- r4pm-0.3.1/r4pm/__init__.py +92 -0
- r4pm-0.3.1/r4pm/__init__.pyi +239 -0
- r4pm-0.3.1/r4pm/ocel_export.py +33 -0
- r4pm-0.3.1/r4pm/ocel_import.py +72 -0
- r4pm-0.3.1/r4pm/py.typed +0 -0
- r4pm-0.3.1/r4pm/xes_export.py +13 -0
- r4pm-0.3.1/r4pm/xes_import.py +18 -0
- r4pm-0.3.1/simple_example.ipynb +290 -0
- r4pm-0.3.1/src/lib.rs +488 -0
- r4pm-0.3.1/src/ocel/from_dataframe.rs +326 -0
- r4pm-0.3.1/src/ocel/mod.rs +95 -0
- r4pm-0.3.1/src/ocel/to_dataframe.rs +421 -0
- r4pm-0.3.1/test.xes +65 -0
- r4pm-0.3.1/test_all.py +243 -0
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
# This file is autogenerated by maturin v1.8.1
|
|
2
|
+
# To update, run
|
|
3
|
+
#
|
|
4
|
+
# maturin generate-ci github
|
|
5
|
+
#
|
|
6
|
+
name: Python3.10
|
|
7
|
+
|
|
8
|
+
on:
|
|
9
|
+
push:
|
|
10
|
+
# branches:
|
|
11
|
+
# - main
|
|
12
|
+
# - master
|
|
13
|
+
tags:
|
|
14
|
+
- '*'
|
|
15
|
+
pull_request:
|
|
16
|
+
workflow_dispatch:
|
|
17
|
+
|
|
18
|
+
permissions:
|
|
19
|
+
contents: read
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
linux:
|
|
23
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
24
|
+
strategy:
|
|
25
|
+
matrix:
|
|
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
|
|
39
|
+
steps:
|
|
40
|
+
- uses: actions/checkout@v4
|
|
41
|
+
- uses: actions/setup-python@v5
|
|
42
|
+
with:
|
|
43
|
+
python-version: "3.10"
|
|
44
|
+
- name: Build wheels
|
|
45
|
+
uses: PyO3/maturin-action@v1
|
|
46
|
+
with:
|
|
47
|
+
target: ${{ matrix.platform.target }}
|
|
48
|
+
args: --release --out dist -i python3.10
|
|
49
|
+
sccache: 'true'
|
|
50
|
+
manylinux: auto
|
|
51
|
+
# - name: Build free-threaded wheels
|
|
52
|
+
# uses: PyO3/maturin-action@v1
|
|
53
|
+
# with:
|
|
54
|
+
# target: ${{ matrix.platform.target }}
|
|
55
|
+
# args: --release --out dist -i python3.10t
|
|
56
|
+
# sccache: 'true'
|
|
57
|
+
# manylinux: auto
|
|
58
|
+
- name: Upload wheels
|
|
59
|
+
uses: actions/upload-artifact@v4
|
|
60
|
+
with:
|
|
61
|
+
name: wheels-linux-${{ matrix.platform.target }}
|
|
62
|
+
path: dist
|
|
63
|
+
|
|
64
|
+
# musllinux:
|
|
65
|
+
# runs-on: ${{ matrix.platform.runner }}
|
|
66
|
+
# strategy:
|
|
67
|
+
# matrix:
|
|
68
|
+
# platform:
|
|
69
|
+
# - runner: ubuntu-22.04
|
|
70
|
+
# target: x86_64
|
|
71
|
+
# - runner: ubuntu-22.04
|
|
72
|
+
# target: x86
|
|
73
|
+
# - runner: ubuntu-22.04
|
|
74
|
+
# target: aarch64
|
|
75
|
+
# - runner: ubuntu-22.04
|
|
76
|
+
# target: armv7
|
|
77
|
+
# steps:
|
|
78
|
+
# - uses: actions/checkout@v4
|
|
79
|
+
# - uses: actions/setup-python@v5
|
|
80
|
+
# with:
|
|
81
|
+
# python-version: "3.10"
|
|
82
|
+
# - name: Build wheels
|
|
83
|
+
# uses: PyO3/maturin-action@v1
|
|
84
|
+
# with:
|
|
85
|
+
# target: ${{ matrix.platform.target }}
|
|
86
|
+
# args: --release --out dist -i python3.10
|
|
87
|
+
# sccache: 'true'
|
|
88
|
+
# manylinux: musllinux_1_2
|
|
89
|
+
# - name: Build free-threaded wheels
|
|
90
|
+
# uses: PyO3/maturin-action@v1
|
|
91
|
+
# with:
|
|
92
|
+
# target: ${{ matrix.platform.target }}
|
|
93
|
+
# args: --release --out dist -i python3.10t
|
|
94
|
+
# sccache: 'true'
|
|
95
|
+
# manylinux: musllinux_1_2
|
|
96
|
+
# - name: Upload wheels
|
|
97
|
+
# uses: actions/upload-artifact@v4
|
|
98
|
+
# with:
|
|
99
|
+
# name: wheels-musllinux-${{ matrix.platform.target }}
|
|
100
|
+
# path: dist
|
|
101
|
+
|
|
102
|
+
windows:
|
|
103
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
104
|
+
strategy:
|
|
105
|
+
matrix:
|
|
106
|
+
platform:
|
|
107
|
+
- runner: windows-latest
|
|
108
|
+
target: x64
|
|
109
|
+
- runner: windows-latest
|
|
110
|
+
target: x86
|
|
111
|
+
steps:
|
|
112
|
+
- uses: actions/checkout@v4
|
|
113
|
+
- uses: actions/setup-python@v5
|
|
114
|
+
with:
|
|
115
|
+
python-version: "3.10"
|
|
116
|
+
architecture: ${{ matrix.platform.target }}
|
|
117
|
+
- name: Build wheels
|
|
118
|
+
uses: PyO3/maturin-action@v1
|
|
119
|
+
with:
|
|
120
|
+
target: ${{ matrix.platform.target }}
|
|
121
|
+
args: --release --out dist -i python3.10
|
|
122
|
+
sccache: 'true'
|
|
123
|
+
# - name: Build free-threaded wheels
|
|
124
|
+
# uses: PyO3/maturin-action@v1
|
|
125
|
+
# with:
|
|
126
|
+
# target: ${{ matrix.platform.target }}
|
|
127
|
+
# args: --release --out dist -i python3.10t
|
|
128
|
+
# sccache: 'true'
|
|
129
|
+
- name: Upload wheels
|
|
130
|
+
uses: actions/upload-artifact@v4
|
|
131
|
+
with:
|
|
132
|
+
name: wheels-windows-${{ matrix.platform.target }}
|
|
133
|
+
path: dist
|
|
134
|
+
|
|
135
|
+
macos:
|
|
136
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
137
|
+
strategy:
|
|
138
|
+
matrix:
|
|
139
|
+
platform:
|
|
140
|
+
- runner: macos-15-intel
|
|
141
|
+
target: x86_64
|
|
142
|
+
- runner: macos-latest
|
|
143
|
+
target: aarch64
|
|
144
|
+
steps:
|
|
145
|
+
- uses: actions/checkout@v4
|
|
146
|
+
- uses: actions/setup-python@v5
|
|
147
|
+
with:
|
|
148
|
+
python-version: "3.10"
|
|
149
|
+
- name: Build wheels
|
|
150
|
+
uses: PyO3/maturin-action@v1
|
|
151
|
+
with:
|
|
152
|
+
target: ${{ matrix.platform.target }}
|
|
153
|
+
args: --release --out dist -i python3.10
|
|
154
|
+
sccache: 'true'
|
|
155
|
+
# - name: Build free-threaded wheels
|
|
156
|
+
# uses: PyO3/maturin-action@v1
|
|
157
|
+
# with:
|
|
158
|
+
# target: ${{ matrix.platform.target }}
|
|
159
|
+
# args: --release --out dist -i python3.10t
|
|
160
|
+
# sccache: 'true'
|
|
161
|
+
- name: Upload wheels
|
|
162
|
+
uses: actions/upload-artifact@v4
|
|
163
|
+
with:
|
|
164
|
+
name: wheels-macos-${{ matrix.platform.target }}
|
|
165
|
+
path: dist
|
|
166
|
+
|
|
167
|
+
sdist:
|
|
168
|
+
runs-on: ubuntu-latest
|
|
169
|
+
steps:
|
|
170
|
+
- uses: actions/checkout@v4
|
|
171
|
+
- name: Build sdist
|
|
172
|
+
uses: PyO3/maturin-action@v1
|
|
173
|
+
with:
|
|
174
|
+
command: sdist
|
|
175
|
+
args: --out dist
|
|
176
|
+
- name: Upload sdist
|
|
177
|
+
uses: actions/upload-artifact@v4
|
|
178
|
+
with:
|
|
179
|
+
name: wheels-sdist
|
|
180
|
+
path: dist
|
|
181
|
+
|
|
182
|
+
release:
|
|
183
|
+
name: Release
|
|
184
|
+
runs-on: ubuntu-latest
|
|
185
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
|
|
186
|
+
needs: [linux, windows, macos, sdist] # musllinux
|
|
187
|
+
permissions:
|
|
188
|
+
# Use to sign the release artifacts
|
|
189
|
+
id-token: write
|
|
190
|
+
# Used to upload release artifacts
|
|
191
|
+
contents: write
|
|
192
|
+
# Used to generate artifact attestation
|
|
193
|
+
attestations: write
|
|
194
|
+
steps:
|
|
195
|
+
- uses: actions/download-artifact@v4
|
|
196
|
+
- name: Generate artifact attestation
|
|
197
|
+
uses: actions/attest-build-provenance@v1
|
|
198
|
+
with:
|
|
199
|
+
subject-path: 'wheels-*/*'
|
|
200
|
+
- name: Publish to PyPI
|
|
201
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
202
|
+
uses: PyO3/maturin-action@v1
|
|
203
|
+
env:
|
|
204
|
+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
205
|
+
with:
|
|
206
|
+
command: upload
|
|
207
|
+
args: --non-interactive --skip-existing wheels-*/*
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
# This file is autogenerated by maturin v1.8.1
|
|
2
|
+
# To update, run
|
|
3
|
+
#
|
|
4
|
+
# maturin generate-ci github
|
|
5
|
+
#
|
|
6
|
+
name: Python3.11
|
|
7
|
+
|
|
8
|
+
on:
|
|
9
|
+
push:
|
|
10
|
+
# branches:
|
|
11
|
+
# - main
|
|
12
|
+
# - master
|
|
13
|
+
tags:
|
|
14
|
+
- '*'
|
|
15
|
+
# pull_request:
|
|
16
|
+
workflow_dispatch:
|
|
17
|
+
|
|
18
|
+
permissions:
|
|
19
|
+
contents: read
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
linux:
|
|
23
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
24
|
+
strategy:
|
|
25
|
+
matrix:
|
|
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
|
|
39
|
+
steps:
|
|
40
|
+
- uses: actions/checkout@v4
|
|
41
|
+
- uses: actions/setup-python@v5
|
|
42
|
+
with:
|
|
43
|
+
python-version: "3.11"
|
|
44
|
+
- name: Build wheels
|
|
45
|
+
uses: PyO3/maturin-action@v1
|
|
46
|
+
with:
|
|
47
|
+
target: ${{ matrix.platform.target }}
|
|
48
|
+
args: --release --out dist -i python3.11
|
|
49
|
+
sccache: 'true'
|
|
50
|
+
manylinux: auto
|
|
51
|
+
# - name: Build free-threaded wheels
|
|
52
|
+
# uses: PyO3/maturin-action@v1
|
|
53
|
+
# with:
|
|
54
|
+
# target: ${{ matrix.platform.target }}
|
|
55
|
+
# args: --release --out dist -i python3.11t
|
|
56
|
+
# sccache: 'true'
|
|
57
|
+
# manylinux: auto
|
|
58
|
+
- name: Upload wheels
|
|
59
|
+
uses: actions/upload-artifact@v4
|
|
60
|
+
with:
|
|
61
|
+
name: wheels-linux-${{ matrix.platform.target }}
|
|
62
|
+
path: dist
|
|
63
|
+
|
|
64
|
+
# musllinux:
|
|
65
|
+
# runs-on: ${{ matrix.platform.runner }}
|
|
66
|
+
# strategy:
|
|
67
|
+
# matrix:
|
|
68
|
+
# platform:
|
|
69
|
+
# - runner: ubuntu-22.04
|
|
70
|
+
# target: x86_64
|
|
71
|
+
# - runner: ubuntu-22.04
|
|
72
|
+
# target: x86
|
|
73
|
+
# - runner: ubuntu-22.04
|
|
74
|
+
# target: aarch64
|
|
75
|
+
# - runner: ubuntu-22.04
|
|
76
|
+
# target: armv7
|
|
77
|
+
# steps:
|
|
78
|
+
# - uses: actions/checkout@v4
|
|
79
|
+
# - uses: actions/setup-python@v5
|
|
80
|
+
# with:
|
|
81
|
+
# python-version: "3.11"
|
|
82
|
+
# - name: Build wheels
|
|
83
|
+
# uses: PyO3/maturin-action@v1
|
|
84
|
+
# with:
|
|
85
|
+
# target: ${{ matrix.platform.target }}
|
|
86
|
+
# args: --release --out dist -i python3.11
|
|
87
|
+
# sccache: 'true'
|
|
88
|
+
# manylinux: musllinux_1_2
|
|
89
|
+
# - name: Build free-threaded wheels
|
|
90
|
+
# uses: PyO3/maturin-action@v1
|
|
91
|
+
# with:
|
|
92
|
+
# target: ${{ matrix.platform.target }}
|
|
93
|
+
# args: --release --out dist -i python3.11t
|
|
94
|
+
# sccache: 'true'
|
|
95
|
+
# manylinux: musllinux_1_2
|
|
96
|
+
# - name: Upload wheels
|
|
97
|
+
# uses: actions/upload-artifact@v4
|
|
98
|
+
# with:
|
|
99
|
+
# name: wheels-musllinux-${{ matrix.platform.target }}
|
|
100
|
+
# path: dist
|
|
101
|
+
|
|
102
|
+
windows:
|
|
103
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
104
|
+
strategy:
|
|
105
|
+
matrix:
|
|
106
|
+
platform:
|
|
107
|
+
- runner: windows-latest
|
|
108
|
+
target: x64
|
|
109
|
+
- runner: windows-latest
|
|
110
|
+
target: x86
|
|
111
|
+
steps:
|
|
112
|
+
- uses: actions/checkout@v4
|
|
113
|
+
- uses: actions/setup-python@v5
|
|
114
|
+
with:
|
|
115
|
+
python-version: "3.11"
|
|
116
|
+
architecture: ${{ matrix.platform.target }}
|
|
117
|
+
- name: Build wheels
|
|
118
|
+
uses: PyO3/maturin-action@v1
|
|
119
|
+
with:
|
|
120
|
+
target: ${{ matrix.platform.target }}
|
|
121
|
+
args: --release --out dist -i python3.11
|
|
122
|
+
sccache: 'true'
|
|
123
|
+
# - name: Build free-threaded wheels
|
|
124
|
+
# uses: PyO3/maturin-action@v1
|
|
125
|
+
# with:
|
|
126
|
+
# target: ${{ matrix.platform.target }}
|
|
127
|
+
# args: --release --out dist -i python3.11t
|
|
128
|
+
# sccache: 'true'
|
|
129
|
+
- name: Upload wheels
|
|
130
|
+
uses: actions/upload-artifact@v4
|
|
131
|
+
with:
|
|
132
|
+
name: wheels-windows-${{ matrix.platform.target }}
|
|
133
|
+
path: dist
|
|
134
|
+
|
|
135
|
+
macos:
|
|
136
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
137
|
+
strategy:
|
|
138
|
+
matrix:
|
|
139
|
+
platform:
|
|
140
|
+
- runner: macos-15-intel
|
|
141
|
+
target: x86_64
|
|
142
|
+
- runner: macos-latest
|
|
143
|
+
target: aarch64
|
|
144
|
+
steps:
|
|
145
|
+
- uses: actions/checkout@v4
|
|
146
|
+
- uses: actions/setup-python@v5
|
|
147
|
+
with:
|
|
148
|
+
python-version: "3.11"
|
|
149
|
+
- name: Build wheels
|
|
150
|
+
uses: PyO3/maturin-action@v1
|
|
151
|
+
with:
|
|
152
|
+
target: ${{ matrix.platform.target }}
|
|
153
|
+
args: --release --out dist -i python3.11
|
|
154
|
+
sccache: 'true'
|
|
155
|
+
# - name: Build free-threaded wheels
|
|
156
|
+
# uses: PyO3/maturin-action@v1
|
|
157
|
+
# with:
|
|
158
|
+
# target: ${{ matrix.platform.target }}
|
|
159
|
+
# args: --release --out dist -i python3.11t
|
|
160
|
+
# sccache: 'true'
|
|
161
|
+
- name: Upload wheels
|
|
162
|
+
uses: actions/upload-artifact@v4
|
|
163
|
+
with:
|
|
164
|
+
name: wheels-macos-${{ matrix.platform.target }}
|
|
165
|
+
path: dist
|
|
166
|
+
|
|
167
|
+
sdist:
|
|
168
|
+
runs-on: ubuntu-latest
|
|
169
|
+
steps:
|
|
170
|
+
- uses: actions/checkout@v4
|
|
171
|
+
- name: Build sdist
|
|
172
|
+
uses: PyO3/maturin-action@v1
|
|
173
|
+
with:
|
|
174
|
+
command: sdist
|
|
175
|
+
args: --out dist
|
|
176
|
+
- name: Upload sdist
|
|
177
|
+
uses: actions/upload-artifact@v4
|
|
178
|
+
with:
|
|
179
|
+
name: wheels-sdist
|
|
180
|
+
path: dist
|
|
181
|
+
|
|
182
|
+
release:
|
|
183
|
+
name: Release
|
|
184
|
+
runs-on: ubuntu-latest
|
|
185
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
|
|
186
|
+
needs: [linux, windows, macos, sdist] # musllinux
|
|
187
|
+
permissions:
|
|
188
|
+
# Use to sign the release artifacts
|
|
189
|
+
id-token: write
|
|
190
|
+
# Used to upload release artifacts
|
|
191
|
+
contents: write
|
|
192
|
+
# Used to generate artifact attestation
|
|
193
|
+
attestations: write
|
|
194
|
+
steps:
|
|
195
|
+
- uses: actions/download-artifact@v4
|
|
196
|
+
- name: Generate artifact attestation
|
|
197
|
+
uses: actions/attest-build-provenance@v1
|
|
198
|
+
with:
|
|
199
|
+
subject-path: 'wheels-*/*'
|
|
200
|
+
- name: Publish to PyPI
|
|
201
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
202
|
+
uses: PyO3/maturin-action@v1
|
|
203
|
+
env:
|
|
204
|
+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
205
|
+
with:
|
|
206
|
+
command: upload
|
|
207
|
+
args: --non-interactive --skip-existing wheels-*/*
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
# This file is autogenerated by maturin v1.8.1
|
|
2
|
+
# To update, run
|
|
3
|
+
#
|
|
4
|
+
# maturin generate-ci github
|
|
5
|
+
#
|
|
6
|
+
name: Python3.12
|
|
7
|
+
|
|
8
|
+
on:
|
|
9
|
+
push:
|
|
10
|
+
# branches:
|
|
11
|
+
# - main
|
|
12
|
+
# - master
|
|
13
|
+
tags:
|
|
14
|
+
- '*'
|
|
15
|
+
pull_request:
|
|
16
|
+
workflow_dispatch:
|
|
17
|
+
|
|
18
|
+
permissions:
|
|
19
|
+
contents: read
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
linux:
|
|
23
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
24
|
+
strategy:
|
|
25
|
+
matrix:
|
|
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
|
|
39
|
+
steps:
|
|
40
|
+
- uses: actions/checkout@v4
|
|
41
|
+
- uses: actions/setup-python@v5
|
|
42
|
+
with:
|
|
43
|
+
python-version: "3.12"
|
|
44
|
+
- name: Build wheels
|
|
45
|
+
uses: PyO3/maturin-action@v1
|
|
46
|
+
with:
|
|
47
|
+
target: ${{ matrix.platform.target }}
|
|
48
|
+
args: --release --out dist -i python3.12
|
|
49
|
+
sccache: 'true'
|
|
50
|
+
manylinux: auto
|
|
51
|
+
# - name: Build free-threaded wheels
|
|
52
|
+
# uses: PyO3/maturin-action@v1
|
|
53
|
+
# with:
|
|
54
|
+
# target: ${{ matrix.platform.target }}
|
|
55
|
+
# args: --release --out dist -i python3.12t
|
|
56
|
+
# sccache: 'true'
|
|
57
|
+
# manylinux: auto
|
|
58
|
+
- name: Upload wheels
|
|
59
|
+
uses: actions/upload-artifact@v4
|
|
60
|
+
with:
|
|
61
|
+
name: wheels-linux-${{ matrix.platform.target }}
|
|
62
|
+
path: dist
|
|
63
|
+
|
|
64
|
+
# musllinux:
|
|
65
|
+
# runs-on: ${{ matrix.platform.runner }}
|
|
66
|
+
# strategy:
|
|
67
|
+
# matrix:
|
|
68
|
+
# platform:
|
|
69
|
+
# - runner: ubuntu-22.04
|
|
70
|
+
# target: x86_64
|
|
71
|
+
# - runner: ubuntu-22.04
|
|
72
|
+
# target: x86
|
|
73
|
+
# - runner: ubuntu-22.04
|
|
74
|
+
# target: aarch64
|
|
75
|
+
# - runner: ubuntu-22.04
|
|
76
|
+
# target: armv7
|
|
77
|
+
# steps:
|
|
78
|
+
# - uses: actions/checkout@v4
|
|
79
|
+
# - uses: actions/setup-python@v5
|
|
80
|
+
# with:
|
|
81
|
+
# python-version: "3.12"
|
|
82
|
+
# - name: Build wheels
|
|
83
|
+
# uses: PyO3/maturin-action@v1
|
|
84
|
+
# with:
|
|
85
|
+
# target: ${{ matrix.platform.target }}
|
|
86
|
+
# args: --release --out dist -i python3.12
|
|
87
|
+
# sccache: 'true'
|
|
88
|
+
# manylinux: musllinux_1_2
|
|
89
|
+
# - name: Build free-threaded wheels
|
|
90
|
+
# uses: PyO3/maturin-action@v1
|
|
91
|
+
# with:
|
|
92
|
+
# target: ${{ matrix.platform.target }}
|
|
93
|
+
# args: --release --out dist -i python3.12t
|
|
94
|
+
# sccache: 'true'
|
|
95
|
+
# manylinux: musllinux_1_2
|
|
96
|
+
# - name: Upload wheels
|
|
97
|
+
# uses: actions/upload-artifact@v4
|
|
98
|
+
# with:
|
|
99
|
+
# name: wheels-musllinux-${{ matrix.platform.target }}
|
|
100
|
+
# path: dist
|
|
101
|
+
|
|
102
|
+
windows:
|
|
103
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
104
|
+
strategy:
|
|
105
|
+
matrix:
|
|
106
|
+
platform:
|
|
107
|
+
- runner: windows-latest
|
|
108
|
+
target: x64
|
|
109
|
+
- runner: windows-latest
|
|
110
|
+
target: x86
|
|
111
|
+
steps:
|
|
112
|
+
- uses: actions/checkout@v4
|
|
113
|
+
- uses: actions/setup-python@v5
|
|
114
|
+
with:
|
|
115
|
+
python-version: "3.12"
|
|
116
|
+
architecture: ${{ matrix.platform.target }}
|
|
117
|
+
- name: Build wheels
|
|
118
|
+
uses: PyO3/maturin-action@v1
|
|
119
|
+
with:
|
|
120
|
+
target: ${{ matrix.platform.target }}
|
|
121
|
+
args: --release --out dist -i python3.12
|
|
122
|
+
sccache: 'true'
|
|
123
|
+
# - name: Build free-threaded wheels
|
|
124
|
+
# uses: PyO3/maturin-action@v1
|
|
125
|
+
# with:
|
|
126
|
+
# target: ${{ matrix.platform.target }}
|
|
127
|
+
# args: --release --out dist -i python3.12t
|
|
128
|
+
# sccache: 'true'
|
|
129
|
+
- name: Upload wheels
|
|
130
|
+
uses: actions/upload-artifact@v4
|
|
131
|
+
with:
|
|
132
|
+
name: wheels-windows-${{ matrix.platform.target }}
|
|
133
|
+
path: dist
|
|
134
|
+
|
|
135
|
+
macos:
|
|
136
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
137
|
+
strategy:
|
|
138
|
+
matrix:
|
|
139
|
+
platform:
|
|
140
|
+
- runner: macos-15-intel
|
|
141
|
+
target: x86_64
|
|
142
|
+
- runner: macos-latest
|
|
143
|
+
target: aarch64
|
|
144
|
+
steps:
|
|
145
|
+
- uses: actions/checkout@v4
|
|
146
|
+
- uses: actions/setup-python@v5
|
|
147
|
+
with:
|
|
148
|
+
python-version: "3.12"
|
|
149
|
+
- name: Build wheels
|
|
150
|
+
uses: PyO3/maturin-action@v1
|
|
151
|
+
with:
|
|
152
|
+
target: ${{ matrix.platform.target }}
|
|
153
|
+
args: --release --out dist -i python3.12
|
|
154
|
+
sccache: 'true'
|
|
155
|
+
# - name: Build free-threaded wheels
|
|
156
|
+
# uses: PyO3/maturin-action@v1
|
|
157
|
+
# with:
|
|
158
|
+
# target: ${{ matrix.platform.target }}
|
|
159
|
+
# args: --release --out dist -i python3.12t
|
|
160
|
+
# sccache: 'true'
|
|
161
|
+
- name: Upload wheels
|
|
162
|
+
uses: actions/upload-artifact@v4
|
|
163
|
+
with:
|
|
164
|
+
name: wheels-macos-${{ matrix.platform.target }}
|
|
165
|
+
path: dist
|
|
166
|
+
|
|
167
|
+
sdist:
|
|
168
|
+
runs-on: ubuntu-latest
|
|
169
|
+
steps:
|
|
170
|
+
- uses: actions/checkout@v4
|
|
171
|
+
- name: Build sdist
|
|
172
|
+
uses: PyO3/maturin-action@v1
|
|
173
|
+
with:
|
|
174
|
+
command: sdist
|
|
175
|
+
args: --out dist
|
|
176
|
+
- name: Upload sdist
|
|
177
|
+
uses: actions/upload-artifact@v4
|
|
178
|
+
with:
|
|
179
|
+
name: wheels-sdist
|
|
180
|
+
path: dist
|
|
181
|
+
|
|
182
|
+
release:
|
|
183
|
+
name: Release
|
|
184
|
+
runs-on: ubuntu-latest
|
|
185
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
|
|
186
|
+
needs: [linux, windows, macos, sdist] # musllinux
|
|
187
|
+
permissions:
|
|
188
|
+
# Use to sign the release artifacts
|
|
189
|
+
id-token: write
|
|
190
|
+
# Used to upload release artifacts
|
|
191
|
+
contents: write
|
|
192
|
+
# Used to generate artifact attestation
|
|
193
|
+
attestations: write
|
|
194
|
+
steps:
|
|
195
|
+
- uses: actions/download-artifact@v4
|
|
196
|
+
- name: Generate artifact attestation
|
|
197
|
+
uses: actions/attest-build-provenance@v1
|
|
198
|
+
with:
|
|
199
|
+
subject-path: 'wheels-*/*'
|
|
200
|
+
- name: Publish to PyPI
|
|
201
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
202
|
+
uses: PyO3/maturin-action@v1
|
|
203
|
+
env:
|
|
204
|
+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
205
|
+
with:
|
|
206
|
+
command: upload
|
|
207
|
+
args: --non-interactive --skip-existing wheels-*/*
|