fetter 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.
@@ -0,0 +1,221 @@
1
+ # This file was originally autogenerated by maturin v1.5.0
2
+ name: CI
3
+
4
+ on:
5
+ pull_request:
6
+ branches:
7
+ - default
8
+ push:
9
+ branches:
10
+ - default
11
+ release:
12
+ types: published
13
+
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ #-----------------------------------------------------------------------------
20
+ build-linux:
21
+ strategy:
22
+ matrix:
23
+ target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
24
+
25
+ name: Build & Test Python / Linux / ${{ matrix.target }}
26
+ runs-on: ubuntu-latest
27
+
28
+ steps:
29
+ - uses: actions/checkout@v4
30
+ - uses: actions/setup-python@v5
31
+ with:
32
+ python-version: '3.10'
33
+
34
+ - name: Build wheels
35
+ uses: PyO3/maturin-action@v1
36
+ with:
37
+ target: ${{ matrix.target }}
38
+ args: --release --out dist --find-interpreter
39
+ sccache: 'true'
40
+ manylinux: auto
41
+
42
+ - name: Upload wheels
43
+ uses: actions/upload-artifact@v4
44
+ with:
45
+ name: wheels-linux-${{ matrix.target }}
46
+ path: dist
47
+
48
+ - name: Test
49
+ if: ${{ startsWith(matrix.target, 'x86_64') }}
50
+ shell: bash
51
+ run: |
52
+ set -e
53
+ pip install fetter --find-links dist --force-reinstall
54
+ pip install pytest
55
+ pytest
56
+
57
+ # - name: Test
58
+ # if: ${{ !startsWith(matrix.target, 'x86') && matrix.target != 'ppc64' }}
59
+ # uses: uraimo/run-on-arch-action@v2.5.0
60
+ # with:
61
+ # arch: ${{ matrix.target }}
62
+ # distro: ubuntu22.04
63
+ # githubToken: ${{ github.token }}
64
+ # install: |
65
+ # apt-get update
66
+ # apt-get install -y --no-install-recommends python3 python3-pip
67
+ # pip3 install -U pip pytest
68
+ # run: |
69
+ # set -e
70
+ # pip3 install fetter --find-links dist --force-reinstall
71
+ # pytest
72
+
73
+ #-----------------------------------------------------------------------------
74
+ # build-windows:
75
+ # strategy:
76
+ # matrix:
77
+ # target: [x64, x86]
78
+
79
+ # name: Build & Test Python / Windows / ${{ matrix.target }}
80
+ # runs-on: windows-latest
81
+
82
+ # steps:
83
+ # - uses: actions/checkout@v4
84
+ # - uses: actions/setup-python@v5
85
+ # with:
86
+ # python-version: '3.10'
87
+ # architecture: ${{ matrix.target }}
88
+ # - name: Build wheels
89
+ # uses: PyO3/maturin-action@v1
90
+ # with:
91
+ # target: ${{ matrix.target }}
92
+ # args: --release --out dist --find-interpreter
93
+ # sccache: 'true'
94
+ # - name: Upload wheels
95
+ # uses: actions/upload-artifact@v4
96
+ # with:
97
+ # name: wheels-windows-${{ matrix.target }}
98
+ # path: dist
99
+ # - name: Test
100
+ # if: ${{ !startsWith(matrix.target, 'aarch64') }}
101
+ # shell: bash
102
+ # run: |
103
+ # set -e
104
+ # pip install fetter --find-links dist --force-reinstall
105
+ # pip install pytest
106
+ # pytest
107
+
108
+ #-----------------------------------------------------------------------------
109
+ build-macos:
110
+ strategy:
111
+ matrix:
112
+ target: [x86_64, aarch64]
113
+
114
+ name: Build & Test Python / MacOS / ${{ matrix.target }}
115
+ runs-on: macos-latest
116
+
117
+ steps:
118
+ - uses: actions/checkout@v4
119
+ - uses: actions/setup-python@v5
120
+ with:
121
+ python-version: '3.10'
122
+ - name: Build wheels
123
+ uses: PyO3/maturin-action@v1
124
+ with:
125
+ target: ${{ matrix.target }}
126
+ args: --release --out dist --find-interpreter
127
+ sccache: 'true'
128
+ - name: Upload wheels
129
+ uses: actions/upload-artifact@v4
130
+ with:
131
+ name: wheels-macos-${{ matrix.target }}
132
+ path: dist
133
+ # - name: Test
134
+ # if: ${{ !startsWith(matrix.target, 'aarch64') }}
135
+ # shell: bash
136
+ # run: |
137
+ # set -e
138
+ # pip install fetter --find-links dist --force-reinstall
139
+ # pip install pytest
140
+ # pytest
141
+
142
+
143
+ #-----------------------------------------------------------------------------
144
+ # test-rust:
145
+ # strategy:
146
+ # matrix:
147
+ # os: [ubuntu-latest,]
148
+ # rust: ["1.60.0", stable]
149
+
150
+ # name: Test Rust / ${{ matrix.os }} / Rust ${{ matrix.rust }}
151
+ # runs-on: ${{ matrix.os }}
152
+
153
+ # steps:
154
+ # - uses: actions/checkout@v4
155
+
156
+ # - name: Install Rust
157
+ # run: rustup install --no-self-update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
158
+
159
+ # - name: Build
160
+ # run: cargo build --verbose
161
+
162
+ # - name: Run tests
163
+ # run: cargo test --verbose
164
+
165
+
166
+ #-----------------------------------------------------------------------------
167
+ sdist:
168
+ runs-on: ubuntu-latest
169
+ name: Build Source
170
+
171
+ steps:
172
+ - uses: actions/checkout@v4
173
+ - name: Build sdist
174
+ uses: PyO3/maturin-action@v1
175
+ with:
176
+ command: sdist
177
+ args: --out dist
178
+ - name: Upload sdist
179
+ uses: actions/upload-artifact@v4
180
+ with:
181
+ name: wheels-sdist
182
+ path: dist
183
+
184
+ #-----------------------------------------------------------------------------
185
+ quality:
186
+ name: Quality
187
+ runs-on: ubuntu-latest
188
+
189
+ steps:
190
+ - uses: actions/checkout@v4
191
+
192
+ - name: Install Rust
193
+ run: rustup install --no-self-update stable && rustup default stable
194
+
195
+ - name: Check formatting
196
+ run: |
197
+ rustup component add rustfmt
198
+ cargo fmt -- --check
199
+
200
+ # - name: Lint with Clippy
201
+ # run: |
202
+ # rustup component add clippy
203
+ # cargo clippy -- -D warnings
204
+
205
+
206
+ #-----------------------------------------------------------------------------
207
+ release:
208
+ name: Release
209
+ if: github.event_name == 'release'
210
+
211
+ needs: [build-linux, build-macos, sdist, quality]
212
+ runs-on: ubuntu-latest
213
+ steps:
214
+ - uses: actions/download-artifact@v4
215
+ - name: Publish to PyPI
216
+ uses: PyO3/maturin-action@v1
217
+ env:
218
+ MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
219
+ with:
220
+ command: upload
221
+ args: --non-interactive --skip-existing wheels-*/*