docgaurd 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,107 @@
1
+ name: Release to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ linux:
13
+ runs-on: ubuntu-latest
14
+ strategy:
15
+ matrix:
16
+ target: [x86_64, aarch64]
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - uses: actions/setup-python@v5
20
+ with:
21
+ python-version: '3.12'
22
+ - name: Build wheels
23
+ uses: PyO3/maturin-action@v1
24
+ with:
25
+ target: ${{ matrix.target }}
26
+ args: --release --out dist --features extension-module
27
+ sccache: 'true'
28
+ manylinux: auto
29
+ - name: Upload wheels
30
+ uses: actions/upload-artifact@v4
31
+ with:
32
+ name: wheels-linux-${{ matrix.target }}
33
+ path: dist
34
+
35
+ windows:
36
+ runs-on: windows-latest
37
+ strategy:
38
+ matrix:
39
+ target: [x64]
40
+ steps:
41
+ - uses: actions/checkout@v4
42
+ - uses: actions/setup-python@v5
43
+ with:
44
+ python-version: '3.12'
45
+ - name: Build wheels
46
+ uses: PyO3/maturin-action@v1
47
+ with:
48
+ target: ${{ matrix.target }}
49
+ args: --release --out dist --features extension-module
50
+ sccache: 'true'
51
+ - name: Upload wheels
52
+ uses: actions/upload-artifact@v4
53
+ with:
54
+ name: wheels-windows-${{ matrix.target }}
55
+ path: dist
56
+
57
+ macos:
58
+ runs-on: macos-latest
59
+ strategy:
60
+ matrix:
61
+ target: [x86_64, aarch64]
62
+ steps:
63
+ - uses: actions/checkout@v4
64
+ - uses: actions/setup-python@v5
65
+ with:
66
+ python-version: '3.12'
67
+ - name: Build wheels
68
+ uses: PyO3/maturin-action@v1
69
+ with:
70
+ target: ${{ matrix.target }}
71
+ args: --release --out dist --features extension-module
72
+ sccache: 'true'
73
+ - name: Upload wheels
74
+ uses: actions/upload-artifact@v4
75
+ with:
76
+ name: wheels-macos-${{ matrix.target }}
77
+ path: dist
78
+
79
+ sdist:
80
+ runs-on: ubuntu-latest
81
+ steps:
82
+ - uses: actions/checkout@v4
83
+ - name: Build sdist
84
+ uses: PyO3/maturin-action@v1
85
+ with:
86
+ command: sdist
87
+ args: --out dist
88
+ - name: Upload sdist
89
+ uses: actions/upload-artifact@v4
90
+ with:
91
+ name: wheels-sdist
92
+ path: dist
93
+
94
+ release:
95
+ name: Release
96
+ runs-on: ubuntu-latest
97
+ needs: [linux, windows, macos, sdist]
98
+ permissions:
99
+ id-token: write
100
+ steps:
101
+ - uses: actions/download-artifact@v4
102
+ with:
103
+ pattern: wheels-*
104
+ merge-multiple: true
105
+ path: dist
106
+ - name: Publish to PyPI
107
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,15 @@
1
+ # Rust
2
+ target/
3
+ Cargo.lock
4
+
5
+ # Python
6
+ venv/
7
+ __pycache__/
8
+ *.whl
9
+ *.so
10
+ *.dylib
11
+ *.egg-info/
12
+ .pytest_cache/
13
+
14
+ # System
15
+ .DS_Store