rust-ocr-transformer 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.
- rust_ocr_transformer-0.1.0/.github/workflows/release.yml +108 -0
- rust_ocr_transformer-0.1.0/.gitignore +14 -0
- rust_ocr_transformer-0.1.0/Cargo.lock +2359 -0
- rust_ocr_transformer-0.1.0/Cargo.toml +72 -0
- rust_ocr_transformer-0.1.0/LICENSE +201 -0
- rust_ocr_transformer-0.1.0/PKG-INFO +653 -0
- rust_ocr_transformer-0.1.0/README.md +634 -0
- rust_ocr_transformer-0.1.0/pyproject.toml +32 -0
- rust_ocr_transformer-0.1.0/src/backends/mod.rs +8 -0
- rust_ocr_transformer-0.1.0/src/backends/tract.rs +367 -0
- rust_ocr_transformer-0.1.0/src/bin/roct.rs +126 -0
- rust_ocr_transformer-0.1.0/src/emit.rs +47 -0
- rust_ocr_transformer-0.1.0/src/engine.rs +55 -0
- rust_ocr_transformer-0.1.0/src/error.rs +51 -0
- rust_ocr_transformer-0.1.0/src/lib.rs +62 -0
- rust_ocr_transformer-0.1.0/src/postprocess.rs +224 -0
- rust_ocr_transformer-0.1.0/src/preprocess.rs +66 -0
- rust_ocr_transformer-0.1.0/src/python.rs +88 -0
- rust_ocr_transformer-0.1.0/src/sampler.rs +108 -0
- rust_ocr_transformer-0.1.0/src/tasks.rs +43 -0
- rust_ocr_transformer-0.1.0/src/temporal.rs +61 -0
- rust_ocr_transformer-0.1.0/src/types.rs +167 -0
- rust_ocr_transformer-0.1.0/tests/pipeline.rs +97 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
name: release
|
|
2
|
+
|
|
3
|
+
# 태그 push(v*) 시 전 플랫폼 abi3 휠 + sdist 빌드 → PyPI 게시(Trusted Publishing).
|
|
4
|
+
# Python 바인딩은 default 포맷만 쓰는 pure-Rust 코어로 빌드된다(onnx/video feature 제외) —
|
|
5
|
+
# C++ 런타임·시스템 라이브러리 의존이 없어 manylinux abi3 단일 휠로 떨어진다.
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
tags:
|
|
9
|
+
- "v*"
|
|
10
|
+
workflow_dispatch:
|
|
11
|
+
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
linux:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
strategy:
|
|
19
|
+
matrix:
|
|
20
|
+
target: [x86_64, aarch64]
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v4
|
|
23
|
+
- uses: actions/setup-python@v5
|
|
24
|
+
with:
|
|
25
|
+
python-version: "3.x"
|
|
26
|
+
- name: Build wheels
|
|
27
|
+
uses: PyO3/maturin-action@v1
|
|
28
|
+
with:
|
|
29
|
+
target: ${{ matrix.target }}
|
|
30
|
+
args: --release --out dist
|
|
31
|
+
sccache: "true"
|
|
32
|
+
manylinux: auto
|
|
33
|
+
- uses: actions/upload-artifact@v4
|
|
34
|
+
with:
|
|
35
|
+
name: wheels-linux-${{ matrix.target }}
|
|
36
|
+
path: dist
|
|
37
|
+
|
|
38
|
+
windows:
|
|
39
|
+
runs-on: windows-latest
|
|
40
|
+
steps:
|
|
41
|
+
- uses: actions/checkout@v4
|
|
42
|
+
- uses: actions/setup-python@v5
|
|
43
|
+
with:
|
|
44
|
+
python-version: "3.x"
|
|
45
|
+
- name: Build wheels
|
|
46
|
+
uses: PyO3/maturin-action@v1
|
|
47
|
+
with:
|
|
48
|
+
target: x64
|
|
49
|
+
args: --release --out dist
|
|
50
|
+
sccache: "true"
|
|
51
|
+
- uses: actions/upload-artifact@v4
|
|
52
|
+
with:
|
|
53
|
+
name: wheels-windows-x64
|
|
54
|
+
path: dist
|
|
55
|
+
|
|
56
|
+
macos:
|
|
57
|
+
runs-on: macos-latest
|
|
58
|
+
strategy:
|
|
59
|
+
matrix:
|
|
60
|
+
target: [x86_64, aarch64]
|
|
61
|
+
steps:
|
|
62
|
+
- uses: actions/checkout@v4
|
|
63
|
+
- uses: actions/setup-python@v5
|
|
64
|
+
with:
|
|
65
|
+
python-version: "3.x"
|
|
66
|
+
- name: Build wheels
|
|
67
|
+
uses: PyO3/maturin-action@v1
|
|
68
|
+
with:
|
|
69
|
+
target: ${{ matrix.target }}
|
|
70
|
+
args: --release --out dist
|
|
71
|
+
sccache: "true"
|
|
72
|
+
- uses: actions/upload-artifact@v4
|
|
73
|
+
with:
|
|
74
|
+
name: wheels-macos-${{ matrix.target }}
|
|
75
|
+
path: dist
|
|
76
|
+
|
|
77
|
+
sdist:
|
|
78
|
+
runs-on: ubuntu-latest
|
|
79
|
+
steps:
|
|
80
|
+
- uses: actions/checkout@v4
|
|
81
|
+
- name: Build sdist
|
|
82
|
+
uses: PyO3/maturin-action@v1
|
|
83
|
+
with:
|
|
84
|
+
command: sdist
|
|
85
|
+
args: --out dist
|
|
86
|
+
- uses: actions/upload-artifact@v4
|
|
87
|
+
with:
|
|
88
|
+
name: wheels-sdist
|
|
89
|
+
path: dist
|
|
90
|
+
|
|
91
|
+
release:
|
|
92
|
+
name: Publish to PyPI
|
|
93
|
+
runs-on: ubuntu-latest
|
|
94
|
+
needs: [linux, windows, macos, sdist]
|
|
95
|
+
if: startsWith(github.ref, 'refs/tags/')
|
|
96
|
+
environment: pypi
|
|
97
|
+
permissions:
|
|
98
|
+
id-token: write # Trusted Publishing(OIDC) — API 토큰 불필요
|
|
99
|
+
steps:
|
|
100
|
+
- uses: actions/download-artifact@v4
|
|
101
|
+
with:
|
|
102
|
+
pattern: wheels-*
|
|
103
|
+
merge-multiple: true
|
|
104
|
+
path: dist
|
|
105
|
+
- name: Publish to PyPI
|
|
106
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
107
|
+
with:
|
|
108
|
+
packages-dir: dist
|