rust-knn 0.1.2__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.
@@ -0,0 +1,169 @@
1
+ # This file was autogenerated by maturin v1.14.1, then trimmed to common targets.
2
+ # To regenerate, run: maturin generate-ci github
3
+ name: CI
4
+
5
+ on:
6
+ push:
7
+ branches:
8
+ - main
9
+ - master
10
+ tags:
11
+ - '*'
12
+ pull_request:
13
+ workflow_dispatch:
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ linux:
20
+ runs-on: ${{ matrix.platform.runner }}
21
+ strategy:
22
+ fail-fast: false
23
+ matrix:
24
+ platform:
25
+ - runner: ubuntu-22.04
26
+ target: x86_64
27
+ - runner: ubuntu-22.04
28
+ target: aarch64
29
+ steps:
30
+ - uses: actions/checkout@v6
31
+ - uses: actions/setup-python@v6
32
+ with:
33
+ python-version: "3.9"
34
+ - name: Build wheels
35
+ uses: PyO3/maturin-action@v1
36
+ with:
37
+ target: ${{ matrix.platform.target }}
38
+ args: --release --out dist --find-interpreter
39
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
40
+ manylinux: auto
41
+ - name: Upload wheels
42
+ uses: actions/upload-artifact@v6
43
+ with:
44
+ name: wheels-linux-${{ matrix.platform.target }}
45
+ path: dist
46
+
47
+ musllinux:
48
+ runs-on: ${{ matrix.platform.runner }}
49
+ strategy:
50
+ fail-fast: false
51
+ matrix:
52
+ platform:
53
+ - runner: ubuntu-22.04
54
+ target: x86_64
55
+ - runner: ubuntu-22.04
56
+ target: aarch64
57
+ steps:
58
+ - uses: actions/checkout@v6
59
+ - uses: actions/setup-python@v6
60
+ with:
61
+ python-version: "3.9"
62
+ - name: Build wheels
63
+ uses: PyO3/maturin-action@v1
64
+ with:
65
+ target: ${{ matrix.platform.target }}
66
+ args: --release --out dist --find-interpreter
67
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
68
+ manylinux: musllinux_1_2
69
+ - name: Upload wheels
70
+ uses: actions/upload-artifact@v6
71
+ with:
72
+ name: wheels-musllinux-${{ matrix.platform.target }}
73
+ path: dist
74
+
75
+ windows:
76
+ runs-on: ${{ matrix.platform.runner }}
77
+ strategy:
78
+ fail-fast: false
79
+ matrix:
80
+ platform:
81
+ - runner: windows-latest
82
+ target: x64
83
+ python_arch: x64
84
+ steps:
85
+ - uses: actions/checkout@v6
86
+ - uses: actions/setup-python@v6
87
+ with:
88
+ python-version: "3.13"
89
+ architecture: ${{ matrix.platform.python_arch }}
90
+ - name: Build wheels
91
+ uses: PyO3/maturin-action@v1
92
+ with:
93
+ target: ${{ matrix.platform.target }}
94
+ args: --release --out dist --find-interpreter
95
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
96
+ - name: Upload wheels
97
+ uses: actions/upload-artifact@v6
98
+ with:
99
+ name: wheels-windows-${{ matrix.platform.target }}
100
+ path: dist
101
+
102
+ macos:
103
+ runs-on: ${{ matrix.platform.runner }}
104
+ strategy:
105
+ fail-fast: false
106
+ matrix:
107
+ platform:
108
+ - runner: macos-15-intel
109
+ target: x86_64
110
+ - runner: macos-latest
111
+ target: aarch64
112
+ steps:
113
+ - uses: actions/checkout@v6
114
+ - uses: actions/setup-python@v6
115
+ with:
116
+ python-version: "3.9"
117
+ - name: Build wheels
118
+ uses: PyO3/maturin-action@v1
119
+ with:
120
+ target: ${{ matrix.platform.target }}
121
+ args: --release --out dist --find-interpreter
122
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
123
+ - name: Upload wheels
124
+ uses: actions/upload-artifact@v6
125
+ with:
126
+ name: wheels-macos-${{ matrix.platform.target }}
127
+ path: dist
128
+
129
+ sdist:
130
+ runs-on: ubuntu-latest
131
+ steps:
132
+ - uses: actions/checkout@v6
133
+ - name: Build sdist
134
+ uses: PyO3/maturin-action@v1
135
+ with:
136
+ command: sdist
137
+ args: --out dist
138
+ - name: Upload sdist
139
+ uses: actions/upload-artifact@v6
140
+ with:
141
+ name: wheels-sdist
142
+ path: dist
143
+
144
+ release:
145
+ name: Release
146
+ runs-on: ubuntu-latest
147
+ if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
148
+ needs: [linux, musllinux, windows, macos, sdist]
149
+ permissions:
150
+ # Use to sign the release artifacts
151
+ id-token: write
152
+ # Used to upload release artifacts
153
+ contents: write
154
+ # Used to generate artifact attestation
155
+ attestations: write
156
+ steps:
157
+ - uses: actions/download-artifact@v7
158
+ - name: Generate artifact attestation
159
+ uses: actions/attest@v4
160
+ with:
161
+ subject-path: 'wheels-*/*'
162
+ - name: Install uv
163
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
164
+ uses: astral-sh/setup-uv@v7
165
+ - name: Publish to PyPI
166
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
167
+ run: uv publish 'wheels-*/*'
168
+ env:
169
+ UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
@@ -0,0 +1,3 @@
1
+ /target
2
+ .venv
3
+ __pycache__/