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.
- docgaurd-0.1.2/.github/workflows/pypi.yml +107 -0
- docgaurd-0.1.2/.gitignore +15 -0
- docgaurd-0.1.2/Cargo.lock +1024 -0
- docgaurd-0.1.2/Cargo.toml +27 -0
- docgaurd-0.1.2/LICENSE +21 -0
- docgaurd-0.1.2/PKG-INFO +124 -0
- docgaurd-0.1.2/README.md +100 -0
- docgaurd-0.1.2/pyproject.toml +29 -0
- docgaurd-0.1.2/src/batch.rs +332 -0
- docgaurd-0.1.2/src/classifier.rs +107 -0
- docgaurd-0.1.2/src/lib.rs +236 -0
- docgaurd-0.1.2/src/parsers/docx.rs +143 -0
- docgaurd-0.1.2/src/parsers/mod.rs +34 -0
- docgaurd-0.1.2/src/parsers/pdf.rs +103 -0
- docgaurd-0.1.2/src/parsers/pptx.rs +96 -0
- docgaurd-0.1.2/src/parsers/text.rs +226 -0
- docgaurd-0.1.2/src/parsers/xlsx.rs +64 -0
- docgaurd-0.1.2/src/quality.rs +73 -0
- docgaurd-0.1.2/src/recommendations.rs +92 -0
- docgaurd-0.1.2/src/security.rs +61 -0
- docgaurd-0.1.2/test_dig.py +55 -0
|
@@ -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
|