uv-tasks 0.1.0__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,109 @@
1
+ # Based on `maturin generate-ci github`, hand-edited:
2
+ # - test job gates the release
3
+ # - Linux targets trimmed to x86_64 + aarch64
4
+ # - publishes via PyPI trusted publishing (OIDC), no token secret
5
+ name: CI
6
+
7
+ on:
8
+ push:
9
+ branches:
10
+ - main
11
+ tags:
12
+ - '*'
13
+ pull_request:
14
+ workflow_dispatch:
15
+
16
+ permissions:
17
+ contents: read
18
+
19
+ jobs:
20
+ test:
21
+ runs-on: ubuntu-latest
22
+ steps:
23
+ - uses: actions/checkout@v6
24
+ - uses: dtolnay/rust-toolchain@stable
25
+ with:
26
+ components: clippy, rustfmt
27
+ - run: cargo fmt --check
28
+ - run: cargo clippy --all-targets -- -D warnings
29
+ - run: cargo test
30
+
31
+ linux:
32
+ runs-on: ubuntu-22.04
33
+ strategy:
34
+ matrix:
35
+ target: [x86_64, aarch64]
36
+ steps:
37
+ - uses: actions/checkout@v6
38
+ - name: Build wheels
39
+ uses: PyO3/maturin-action@v1
40
+ with:
41
+ target: ${{ matrix.target }}
42
+ args: --release --out dist
43
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
44
+ manylinux: auto
45
+ - name: Upload wheels
46
+ uses: actions/upload-artifact@v6
47
+ with:
48
+ name: wheels-linux-${{ matrix.target }}
49
+ path: dist
50
+
51
+ macos:
52
+ runs-on: ${{ matrix.platform.runner }}
53
+ strategy:
54
+ matrix:
55
+ platform:
56
+ - runner: macos-15-intel
57
+ target: x86_64
58
+ - runner: macos-latest
59
+ target: aarch64
60
+ steps:
61
+ - uses: actions/checkout@v6
62
+ - name: Build wheels
63
+ uses: PyO3/maturin-action@v1
64
+ with:
65
+ target: ${{ matrix.platform.target }}
66
+ args: --release --out dist
67
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
68
+ - name: Upload wheels
69
+ uses: actions/upload-artifact@v6
70
+ with:
71
+ name: wheels-macos-${{ matrix.platform.target }}
72
+ path: dist
73
+
74
+ sdist:
75
+ runs-on: ubuntu-latest
76
+ steps:
77
+ - uses: actions/checkout@v6
78
+ - name: Build sdist
79
+ uses: PyO3/maturin-action@v1
80
+ with:
81
+ command: sdist
82
+ args: --out dist
83
+ - name: Upload sdist
84
+ uses: actions/upload-artifact@v6
85
+ with:
86
+ name: wheels-sdist
87
+ path: dist
88
+
89
+ release:
90
+ name: Release
91
+ runs-on: ubuntu-latest
92
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
93
+ needs: [test, linux, macos, sdist]
94
+ environment: pypi
95
+ permissions:
96
+ # Trusted publishing (OIDC) and artifact signing
97
+ id-token: write
98
+ contents: write
99
+ attestations: write
100
+ steps:
101
+ - uses: actions/download-artifact@v7
102
+ - name: Generate artifact attestation
103
+ uses: actions/attest@v4
104
+ with:
105
+ subject-path: 'wheels-*/*'
106
+ - name: Install uv
107
+ uses: astral-sh/setup-uv@v7
108
+ - name: Publish to PyPI
109
+ run: uv publish 'wheels-*/*'
@@ -0,0 +1,2 @@
1
+ /target
2
+ dist/