dreambo-motor-controller 1.0.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.
@@ -0,0 +1,204 @@
1
+ # This file is autogenerated by maturin v1.8.2
2
+ # To update, run
3
+ #
4
+ # maturin generate-ci github
5
+ #
6
+ name: Python Bindings CI
7
+
8
+ on:
9
+ push:
10
+ tags:
11
+ - 'v*'
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
+ matrix:
23
+ platform:
24
+ - runner: ubuntu-22.04
25
+ target: x86_64
26
+ - runner: ubuntu-22.04
27
+ target: x86
28
+ - runner: ubuntu-22.04
29
+ target: aarch64
30
+ - runner: ubuntu-22.04
31
+ target: armv7
32
+ steps:
33
+ - uses: actions/checkout@v4
34
+ - uses: actions/setup-python@v5
35
+ with:
36
+ python-version: |
37
+ 3.10
38
+ 3.11
39
+ 3.12
40
+ 3.13
41
+ 3.14
42
+ - name: Generate pyo3 stub
43
+ run: |
44
+ cargo run --bin stub_gen
45
+ - name: Build wheels
46
+ uses: PyO3/maturin-action@v1
47
+ with:
48
+ target: ${{ matrix.platform.target }}
49
+ args: --release --out dist --interpreter 3.10 3.11 3.12 3.13
50
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
51
+ manylinux: auto
52
+ - name: Upload wheels
53
+ uses: actions/upload-artifact@v4
54
+ with:
55
+ name: wheels-linux-${{ matrix.platform.target }}
56
+ path: dist
57
+
58
+ musllinux:
59
+ runs-on: ${{ matrix.platform.runner }}
60
+ strategy:
61
+ matrix:
62
+ platform:
63
+ - runner: ubuntu-22.04
64
+ target: x86_64
65
+ - runner: ubuntu-22.04
66
+ target: x86
67
+ - runner: ubuntu-22.04
68
+ target: aarch64
69
+ - runner: ubuntu-22.04
70
+ target: armv7
71
+ steps:
72
+ - uses: actions/checkout@v4
73
+ - uses: actions/setup-python@v5
74
+ with:
75
+ python-version: |
76
+ 3.10
77
+ 3.11
78
+ 3.12
79
+ 3.13
80
+ 3.14
81
+ - name: Generate pyo3 stub
82
+ run: |
83
+ cargo run --bin stub_gen
84
+ - name: Build wheels
85
+ uses: PyO3/maturin-action@v1
86
+ with:
87
+ target: ${{ matrix.platform.target }}
88
+ args: --release --out dist --interpreter 3.10 3.11 3.12 3.13 3.14
89
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
90
+ manylinux: musllinux_1_2
91
+ - name: Upload wheels
92
+ uses: actions/upload-artifact@v4
93
+ with:
94
+ name: wheels-musllinux-${{ matrix.platform.target }}
95
+ path: dist
96
+
97
+ windows:
98
+ runs-on: ${{ matrix.platform.runner }}
99
+ strategy:
100
+ matrix:
101
+ platform:
102
+ - runner: windows-latest
103
+ target: x64
104
+ - runner: windows-latest
105
+ target: x86
106
+ steps:
107
+ - uses: actions/checkout@v4
108
+ - uses: actions/setup-python@v5
109
+ with:
110
+ python-version: |
111
+ 3.10
112
+ 3.11
113
+ 3.12
114
+ 3.13
115
+ 3.14
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 --interpreter 3.10 3.11 3.12 3.13 3.14
122
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
123
+ - name: Upload wheels
124
+ uses: actions/upload-artifact@v4
125
+ with:
126
+ name: wheels-windows-${{ matrix.platform.target }}
127
+ path: dist
128
+
129
+ macos:
130
+ runs-on: ${{ matrix.platform.runner }}
131
+ strategy:
132
+ matrix:
133
+ platform:
134
+ - runner: macos-latest
135
+ target: aarch64
136
+ steps:
137
+ - uses: actions/checkout@v4
138
+ - uses: actions/setup-python@v5
139
+ with:
140
+ python-version: |
141
+ 3.10
142
+ 3.11
143
+ 3.12
144
+ 3.13
145
+ 3.14
146
+ - name: Generate pyo3 stub
147
+ run: |
148
+ cargo run --bin stub_gen
149
+ - name: Build wheels
150
+ uses: PyO3/maturin-action@v1
151
+ with:
152
+ target: ${{ matrix.platform.target }}
153
+ args: --release --out dist --interpreter 3.10 3.11 3.12 3.13 3.14
154
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
155
+ - name: Upload wheels
156
+ uses: actions/upload-artifact@v4
157
+ with:
158
+ name: wheels-macos-${{ matrix.platform.target }}
159
+ path: dist
160
+
161
+ sdist:
162
+ runs-on: ubuntu-latest
163
+ steps:
164
+ - uses: actions/checkout@v4
165
+ - name: Generate pyo3 stub
166
+ run: |
167
+ cargo run --bin stub_gen
168
+ - name: Build sdist
169
+ uses: PyO3/maturin-action@v1
170
+ with:
171
+ command: sdist
172
+ args: --out dist
173
+ - name: Upload sdist
174
+ uses: actions/upload-artifact@v4
175
+ with:
176
+ name: wheels-sdist
177
+ path: dist
178
+
179
+ release:
180
+ name: Release
181
+ runs-on: ubuntu-latest
182
+ if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
183
+ needs: [linux, musllinux, windows, macos, sdist]
184
+ permissions:
185
+ # Use to sign the release artifacts
186
+ id-token: write
187
+ # Used to upload release artifacts
188
+ contents: write
189
+ # Used to generate artifact attestation
190
+ attestations: write
191
+ steps:
192
+ - uses: actions/download-artifact@v4
193
+ - name: Generate artifact attestation
194
+ uses: actions/attest-build-provenance@v1
195
+ with:
196
+ subject-path: 'wheels-*/*'
197
+ - name: Publish to PyPI
198
+ if: ${{ startsWith(github.ref, 'refs/tags/v') }}
199
+ uses: PyO3/maturin-action@v1
200
+ #env:
201
+ #MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
202
+ with:
203
+ command: upload
204
+ args: --non-interactive --skip-existing wheels-*/*
@@ -0,0 +1,8 @@
1
+ /target
2
+ .venv
3
+
4
+ # Jetbrains
5
+ /.idea
6
+
7
+ # macOS Finder
8
+ .DS_Store