rust-markdown-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.
Files changed (30) hide show
  1. rust_markdown_transformer-0.1.0/.github/workflows/release.yml +106 -0
  2. rust_markdown_transformer-0.1.0/.gitignore +10 -0
  3. rust_markdown_transformer-0.1.0/Cargo.lock +1790 -0
  4. rust_markdown_transformer-0.1.0/Cargo.toml +67 -0
  5. rust_markdown_transformer-0.1.0/LICENSE +201 -0
  6. rust_markdown_transformer-0.1.0/PKG-INFO +772 -0
  7. rust_markdown_transformer-0.1.0/README.md +754 -0
  8. rust_markdown_transformer-0.1.0/examples/convert.rs +15 -0
  9. rust_markdown_transformer-0.1.0/examples/usage.py +47 -0
  10. rust_markdown_transformer-0.1.0/pyproject.toml +31 -0
  11. rust_markdown_transformer-0.1.0/src/bin/rmt.rs +214 -0
  12. rust_markdown_transformer-0.1.0/src/chunker.rs +218 -0
  13. rust_markdown_transformer-0.1.0/src/error.rs +76 -0
  14. rust_markdown_transformer-0.1.0/src/ir.rs +161 -0
  15. rust_markdown_transformer-0.1.0/src/lib.rs +47 -0
  16. rust_markdown_transformer-0.1.0/src/parsers/docx.rs +480 -0
  17. rust_markdown_transformer-0.1.0/src/parsers/html.rs +404 -0
  18. rust_markdown_transformer-0.1.0/src/parsers/hwpx.rs +348 -0
  19. rust_markdown_transformer-0.1.0/src/parsers/markdown.rs +365 -0
  20. rust_markdown_transformer-0.1.0/src/parsers/media.rs +75 -0
  21. rust_markdown_transformer-0.1.0/src/parsers/mod.rs +46 -0
  22. rust_markdown_transformer-0.1.0/src/parsers/ooxml.rs +243 -0
  23. rust_markdown_transformer-0.1.0/src/parsers/pdf.rs +195 -0
  24. rust_markdown_transformer-0.1.0/src/parsers/pdf_layout.rs +668 -0
  25. rust_markdown_transformer-0.1.0/src/parsers/pptx.rs +273 -0
  26. rust_markdown_transformer-0.1.0/src/parsers/xlsx.rs +114 -0
  27. rust_markdown_transformer-0.1.0/src/python.rs +79 -0
  28. rust_markdown_transformer-0.1.0/src/registry.rs +158 -0
  29. rust_markdown_transformer-0.1.0/src/renderer.rs +220 -0
  30. rust_markdown_transformer-0.1.0/tests/integration.rs +699 -0
@@ -0,0 +1,106 @@
1
+ name: release
2
+
3
+ # 태그 push(v*) 시 전 플랫폼 abi3 휠 + sdist 빌드 → PyPI 게시(Trusted Publishing).
4
+ on:
5
+ push:
6
+ tags:
7
+ - "v*"
8
+ workflow_dispatch:
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ jobs:
14
+ linux:
15
+ runs-on: ubuntu-latest
16
+ strategy:
17
+ matrix:
18
+ target: [x86_64, aarch64]
19
+ steps:
20
+ - uses: actions/checkout@v4
21
+ - uses: actions/setup-python@v5
22
+ with:
23
+ python-version: "3.x"
24
+ - name: Build wheels
25
+ uses: PyO3/maturin-action@v1
26
+ with:
27
+ target: ${{ matrix.target }}
28
+ args: --release --out dist
29
+ sccache: "true"
30
+ manylinux: auto
31
+ - uses: actions/upload-artifact@v4
32
+ with:
33
+ name: wheels-linux-${{ matrix.target }}
34
+ path: dist
35
+
36
+ windows:
37
+ runs-on: windows-latest
38
+ steps:
39
+ - uses: actions/checkout@v4
40
+ - uses: actions/setup-python@v5
41
+ with:
42
+ python-version: "3.x"
43
+ - name: Build wheels
44
+ uses: PyO3/maturin-action@v1
45
+ with:
46
+ target: x64
47
+ args: --release --out dist
48
+ sccache: "true"
49
+ - uses: actions/upload-artifact@v4
50
+ with:
51
+ name: wheels-windows-x64
52
+ path: dist
53
+
54
+ macos:
55
+ runs-on: macos-latest
56
+ strategy:
57
+ matrix:
58
+ target: [x86_64, aarch64]
59
+ steps:
60
+ - uses: actions/checkout@v4
61
+ - uses: actions/setup-python@v5
62
+ with:
63
+ python-version: "3.x"
64
+ - name: Build wheels
65
+ uses: PyO3/maturin-action@v1
66
+ with:
67
+ target: ${{ matrix.target }}
68
+ args: --release --out dist
69
+ sccache: "true"
70
+ - uses: actions/upload-artifact@v4
71
+ with:
72
+ name: wheels-macos-${{ matrix.target }}
73
+ path: dist
74
+
75
+ sdist:
76
+ runs-on: ubuntu-latest
77
+ steps:
78
+ - uses: actions/checkout@v4
79
+ - name: Build sdist
80
+ uses: PyO3/maturin-action@v1
81
+ with:
82
+ command: sdist
83
+ args: --out dist
84
+ - uses: actions/upload-artifact@v4
85
+ with:
86
+ name: wheels-sdist
87
+ path: dist
88
+
89
+ release:
90
+ name: Publish to PyPI
91
+ runs-on: ubuntu-latest
92
+ needs: [linux, windows, macos, sdist]
93
+ if: startsWith(github.ref, 'refs/tags/')
94
+ environment: pypi
95
+ permissions:
96
+ id-token: write # Trusted Publishing(OIDC) — API 토큰 불필요
97
+ steps:
98
+ - uses: actions/download-artifact@v4
99
+ with:
100
+ pattern: wheels-*
101
+ merge-multiple: true
102
+ path: dist
103
+ - name: Publish to PyPI
104
+ uses: pypa/gh-action-pypi-publish@release/v1
105
+ with:
106
+ packages-dir: dist
@@ -0,0 +1,10 @@
1
+ /target
2
+ **/*.rs.bk
3
+ Cargo.lock
4
+ *.pdb
5
+
6
+ # Python 바인딩 빌드 산출물 (v0.2+)
7
+ __pycache__/
8
+ *.so
9
+ *.pyd
10
+ .venv/