blitz-py 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,125 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ tags: ["v*"]
7
+ pull_request:
8
+ workflow_dispatch:
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ jobs:
14
+ test:
15
+ strategy:
16
+ fail-fast: false
17
+ matrix:
18
+ os: [ubuntu-latest, macos-latest, windows-latest]
19
+ runs-on: ${{ matrix.os }}
20
+ steps:
21
+ - uses: actions/checkout@v4
22
+ - uses: actions/setup-python@v5
23
+ with:
24
+ python-version: "3.12"
25
+ - uses: Swatinem/rust-cache@v2
26
+ - name: Build and install
27
+ shell: bash
28
+ run: |
29
+ pip install maturin pytest
30
+ maturin build --release --out dist
31
+ pip install dist/*.whl
32
+ - name: Test
33
+ run: pytest tests/ -v
34
+
35
+ linux-wheels:
36
+ runs-on: ubuntu-latest
37
+ strategy:
38
+ fail-fast: false
39
+ matrix:
40
+ include:
41
+ - target: x86_64
42
+ manylinux: "2_28"
43
+ name: manylinux-x86_64
44
+ - target: aarch64
45
+ manylinux: "2_28"
46
+ name: manylinux-aarch64
47
+ - target: x86_64-unknown-linux-musl
48
+ manylinux: musllinux_1_2
49
+ name: musllinux-x86_64
50
+ - target: aarch64-unknown-linux-musl
51
+ manylinux: musllinux_1_2
52
+ name: musllinux-aarch64
53
+ steps:
54
+ - uses: actions/checkout@v4
55
+ - uses: PyO3/maturin-action@v1
56
+ with:
57
+ target: ${{ matrix.target }}
58
+ manylinux: ${{ matrix.manylinux }}
59
+ args: --release --out dist
60
+ sccache: "true"
61
+ - uses: actions/upload-artifact@v4
62
+ with:
63
+ name: wheels-${{ matrix.name }}
64
+ path: dist
65
+
66
+ macos-wheels:
67
+ runs-on: macos-latest
68
+ strategy:
69
+ fail-fast: false
70
+ matrix:
71
+ target: [aarch64-apple-darwin, x86_64-apple-darwin]
72
+ steps:
73
+ - uses: actions/checkout@v4
74
+ - uses: PyO3/maturin-action@v1
75
+ with:
76
+ target: ${{ matrix.target }}
77
+ args: --release --out dist
78
+ sccache: "true"
79
+ - uses: actions/upload-artifact@v4
80
+ with:
81
+ name: wheels-${{ matrix.target }}
82
+ path: dist
83
+
84
+ windows-wheels:
85
+ runs-on: windows-latest
86
+ steps:
87
+ - uses: actions/checkout@v4
88
+ - uses: PyO3/maturin-action@v1
89
+ with:
90
+ target: x64
91
+ args: --release --out dist
92
+ sccache: "true"
93
+ - uses: actions/upload-artifact@v4
94
+ with:
95
+ name: wheels-windows-x64
96
+ path: dist
97
+
98
+ sdist:
99
+ runs-on: ubuntu-latest
100
+ steps:
101
+ - uses: actions/checkout@v4
102
+ - uses: PyO3/maturin-action@v1
103
+ with:
104
+ command: sdist
105
+ args: --out dist
106
+ - uses: actions/upload-artifact@v4
107
+ with:
108
+ name: sdist
109
+ path: dist
110
+
111
+ publish:
112
+ if: startsWith(github.ref, 'refs/tags/v')
113
+ needs: [test, linux-wheels, macos-wheels, windows-wheels, sdist]
114
+ runs-on: ubuntu-latest
115
+ environment: pypi
116
+ permissions:
117
+ id-token: write
118
+ steps:
119
+ - uses: actions/download-artifact@v4
120
+ with:
121
+ path: dist
122
+ merge-multiple: true
123
+ - uses: pypa/gh-action-pypi-publish@release/v1
124
+ with:
125
+ packages-dir: dist
@@ -0,0 +1,9 @@
1
+ /target
2
+ /.venv
3
+ /dist
4
+ __pycache__/
5
+ *.so
6
+ examples/out_*.png
7
+ examples/out_*.jpg
8
+ examples/.bootstrap.min.css
9
+ examples/out_*.gif