tilvisan-py 0.1.3__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.
Potentially problematic release.
This version of tilvisan-py might be problematic. Click here for more details.
- tilvisan_py-0.1.3/.github/dependabot.yml +10 -0
- tilvisan_py-0.1.3/.github/workflows/publish.yml +226 -0
- tilvisan_py-0.1.3/.gitignore +16 -0
- tilvisan_py-0.1.3/Cargo.lock +929 -0
- tilvisan_py-0.1.3/Cargo.toml +16 -0
- tilvisan_py-0.1.3/LICENSE +7 -0
- tilvisan_py-0.1.3/LICENSE.external +100 -0
- tilvisan_py-0.1.3/PKG-INFO +42 -0
- tilvisan_py-0.1.3/README.md +13 -0
- tilvisan_py-0.1.3/pyproject.toml +47 -0
- tilvisan_py-0.1.3/python/tilvisan/__init__.py +6 -0
- tilvisan_py-0.1.3/python/tilvisan/py.typed +0 -0
- tilvisan_py-0.1.3/src/lib.rs +217 -0
- tilvisan_py-0.1.3/uv.lock +114 -0
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
name: Build and Publish Python Package
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
push:
|
|
6
|
+
tags:
|
|
7
|
+
- "v[0-9].*"
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: write
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
linux:
|
|
14
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
15
|
+
strategy:
|
|
16
|
+
matrix:
|
|
17
|
+
platform:
|
|
18
|
+
- runner: ubuntu-22.04
|
|
19
|
+
target: x86_64
|
|
20
|
+
- runner: ubuntu-22.04
|
|
21
|
+
target: x86
|
|
22
|
+
- runner: ubuntu-22.04
|
|
23
|
+
target: aarch64
|
|
24
|
+
- runner: ubuntu-22.04
|
|
25
|
+
target: armv7
|
|
26
|
+
- runner: ubuntu-22.04
|
|
27
|
+
target: s390x
|
|
28
|
+
- runner: ubuntu-22.04
|
|
29
|
+
target: ppc64le
|
|
30
|
+
steps:
|
|
31
|
+
- uses: actions/checkout@v6
|
|
32
|
+
- uses: actions/setup-python@v6
|
|
33
|
+
with:
|
|
34
|
+
python-version: "3.10"
|
|
35
|
+
- name: Build wheels
|
|
36
|
+
uses: PyO3/maturin-action@v1
|
|
37
|
+
with:
|
|
38
|
+
target: ${{ matrix.platform.target }}
|
|
39
|
+
args: --release --out dist
|
|
40
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
41
|
+
manylinux: auto
|
|
42
|
+
- name: Build free-threaded wheels
|
|
43
|
+
uses: PyO3/maturin-action@v1
|
|
44
|
+
with:
|
|
45
|
+
target: ${{ matrix.platform.target }}
|
|
46
|
+
args: --release --out dist -i python3.14t
|
|
47
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
48
|
+
manylinux: auto
|
|
49
|
+
- name: Upload wheels
|
|
50
|
+
uses: actions/upload-artifact@v6
|
|
51
|
+
with:
|
|
52
|
+
name: wheels-linux-${{ matrix.platform.target }}
|
|
53
|
+
path: dist
|
|
54
|
+
|
|
55
|
+
musllinux:
|
|
56
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
57
|
+
strategy:
|
|
58
|
+
matrix:
|
|
59
|
+
platform:
|
|
60
|
+
- runner: ubuntu-22.04
|
|
61
|
+
target: x86_64
|
|
62
|
+
- runner: ubuntu-22.04
|
|
63
|
+
target: x86
|
|
64
|
+
- runner: ubuntu-22.04
|
|
65
|
+
target: aarch64
|
|
66
|
+
- runner: ubuntu-22.04
|
|
67
|
+
target: armv7
|
|
68
|
+
steps:
|
|
69
|
+
- uses: actions/checkout@v6
|
|
70
|
+
- uses: actions/setup-python@v6
|
|
71
|
+
with:
|
|
72
|
+
python-version: "3.10"
|
|
73
|
+
- name: Build wheels
|
|
74
|
+
uses: PyO3/maturin-action@v1
|
|
75
|
+
with:
|
|
76
|
+
target: ${{ matrix.platform.target }}
|
|
77
|
+
args: --release --out dist
|
|
78
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
79
|
+
manylinux: musllinux_1_2
|
|
80
|
+
- name: Build free-threaded wheels
|
|
81
|
+
uses: PyO3/maturin-action@v1
|
|
82
|
+
with:
|
|
83
|
+
target: ${{ matrix.platform.target }}
|
|
84
|
+
args: --release --out dist -i python3.14t
|
|
85
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
86
|
+
manylinux: musllinux_1_2
|
|
87
|
+
- name: Upload wheels
|
|
88
|
+
uses: actions/upload-artifact@v6
|
|
89
|
+
with:
|
|
90
|
+
name: wheels-musllinux-${{ matrix.platform.target }}
|
|
91
|
+
path: dist
|
|
92
|
+
|
|
93
|
+
windows:
|
|
94
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
95
|
+
strategy:
|
|
96
|
+
matrix:
|
|
97
|
+
platform:
|
|
98
|
+
- runner: windows-latest
|
|
99
|
+
target: x64
|
|
100
|
+
python_arch: x64
|
|
101
|
+
- runner: windows-latest
|
|
102
|
+
target: x86
|
|
103
|
+
python_arch: x86
|
|
104
|
+
- runner: windows-11-arm
|
|
105
|
+
target: aarch64
|
|
106
|
+
python_arch: arm64
|
|
107
|
+
steps:
|
|
108
|
+
- uses: actions/checkout@v6
|
|
109
|
+
- uses: actions/setup-python@v6
|
|
110
|
+
with:
|
|
111
|
+
python-version: "3.13"
|
|
112
|
+
architecture: ${{ matrix.platform.python_arch }}
|
|
113
|
+
- name: Build wheels
|
|
114
|
+
uses: PyO3/maturin-action@v1
|
|
115
|
+
with:
|
|
116
|
+
target: ${{ matrix.platform.target }}
|
|
117
|
+
args: --release --out dist
|
|
118
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
119
|
+
- uses: actions/setup-python@v6
|
|
120
|
+
with:
|
|
121
|
+
python-version: "3.14t"
|
|
122
|
+
architecture: ${{ matrix.platform.python_arch }}
|
|
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.14t
|
|
128
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
129
|
+
- name: Upload wheels
|
|
130
|
+
uses: actions/upload-artifact@v6
|
|
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@v6
|
|
146
|
+
- uses: actions/setup-python@v6
|
|
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
|
|
154
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
155
|
+
- uses: actions/setup-python@v6
|
|
156
|
+
with:
|
|
157
|
+
python-version: "3.14t"
|
|
158
|
+
- name: Build free-threaded wheels
|
|
159
|
+
uses: PyO3/maturin-action@v1
|
|
160
|
+
with:
|
|
161
|
+
target: ${{ matrix.platform.target }}
|
|
162
|
+
args: --release --out dist -i python3.14t
|
|
163
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
164
|
+
- name: Upload wheels
|
|
165
|
+
uses: actions/upload-artifact@v6
|
|
166
|
+
with:
|
|
167
|
+
name: wheels-macos-${{ matrix.platform.target }}
|
|
168
|
+
path: dist
|
|
169
|
+
|
|
170
|
+
sdist:
|
|
171
|
+
runs-on: ubuntu-latest
|
|
172
|
+
steps:
|
|
173
|
+
- uses: actions/checkout@v6
|
|
174
|
+
- name: Build sdist
|
|
175
|
+
uses: PyO3/maturin-action@v1
|
|
176
|
+
with:
|
|
177
|
+
command: sdist
|
|
178
|
+
args: --out dist
|
|
179
|
+
- name: Upload sdist
|
|
180
|
+
uses: actions/upload-artifact@v6
|
|
181
|
+
with:
|
|
182
|
+
name: wheels-sdist
|
|
183
|
+
path: dist
|
|
184
|
+
|
|
185
|
+
publish-to-pypi:
|
|
186
|
+
name: Publish to PyPI
|
|
187
|
+
runs-on: ubuntu-latest
|
|
188
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
|
|
189
|
+
needs: [linux, musllinux, windows, macos, sdist]
|
|
190
|
+
environment: publish-to-pypi
|
|
191
|
+
permissions:
|
|
192
|
+
# Use to sign the release artifacts
|
|
193
|
+
id-token: write
|
|
194
|
+
# Used to upload release artifacts
|
|
195
|
+
contents: write
|
|
196
|
+
# Used to generate artifact attestation
|
|
197
|
+
attestations: write
|
|
198
|
+
steps:
|
|
199
|
+
- uses: actions/download-artifact@v7
|
|
200
|
+
- name: Generate artifact attestation
|
|
201
|
+
uses: actions/attest@v4
|
|
202
|
+
with:
|
|
203
|
+
subject-path: "wheels-*/*"
|
|
204
|
+
- name: Install uv
|
|
205
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
206
|
+
uses: astral-sh/setup-uv@v7
|
|
207
|
+
- name: Publish to PyPI
|
|
208
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
209
|
+
run: uv publish --trusted-publishing always 'wheels-*/*'
|
|
210
|
+
|
|
211
|
+
create-github-release:
|
|
212
|
+
name: Create GitHub Release
|
|
213
|
+
needs:
|
|
214
|
+
- publish-to-pypi
|
|
215
|
+
runs-on: ubuntu-latest
|
|
216
|
+
steps:
|
|
217
|
+
- name: Create release
|
|
218
|
+
uses: softprops/action-gh-release@v3
|
|
219
|
+
env:
|
|
220
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
221
|
+
with:
|
|
222
|
+
tag_name: ${{ github.ref_name }}
|
|
223
|
+
name: ${{ github.ref_name }}
|
|
224
|
+
files: dist/wheels-*/*
|
|
225
|
+
draft: false
|
|
226
|
+
prerelease: false
|