docfgp-office 1.0.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.
- docfgp_office-1.0.0/.gitattributes +1 -0
- docfgp_office-1.0.0/.github/workflows/ci.yml +95 -0
- docfgp_office-1.0.0/.gitignore +10 -0
- docfgp_office-1.0.0/Cargo.lock +4579 -0
- docfgp_office-1.0.0/Cargo.toml +19 -0
- docfgp_office-1.0.0/LICENSE +202 -0
- docfgp_office-1.0.0/PKG-INFO +40 -0
- docfgp_office-1.0.0/README.md +27 -0
- docfgp_office-1.0.0/poetry.lock +483 -0
- docfgp_office-1.0.0/pyproject.toml +54 -0
- docfgp_office-1.0.0/rust/src/lib.rs +21 -0
- docfgp_office-1.0.0/src/docfgp_office/__init__.py +5 -0
- docfgp_office-1.0.0/src/docfgp_office/_native.pyi +3 -0
- docfgp_office-1.0.0/src/docfgp_office/py.typed +0 -0
- docfgp_office-1.0.0/tests/test_convert.py +49 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* text=auto eol=lf
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
release:
|
|
8
|
+
types: [published]
|
|
9
|
+
|
|
10
|
+
concurrency:
|
|
11
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
12
|
+
cancel-in-progress: ${{ github.event_name != 'release' }}
|
|
13
|
+
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
lint:
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v7
|
|
22
|
+
- uses: actions/setup-python@v7
|
|
23
|
+
with:
|
|
24
|
+
python-version: "3.x"
|
|
25
|
+
- run: pipx install poetry
|
|
26
|
+
- run: poetry install --no-root
|
|
27
|
+
- run: poetry run ruff check .
|
|
28
|
+
- run: poetry run ruff format --check .
|
|
29
|
+
- run: poetry run mypy
|
|
30
|
+
|
|
31
|
+
test:
|
|
32
|
+
runs-on: ubuntu-latest
|
|
33
|
+
strategy:
|
|
34
|
+
matrix:
|
|
35
|
+
python: ["3.11", "3.x"]
|
|
36
|
+
steps:
|
|
37
|
+
- uses: actions/checkout@v7
|
|
38
|
+
- uses: actions/setup-python@v7
|
|
39
|
+
with:
|
|
40
|
+
python-version: ${{ matrix.python }}
|
|
41
|
+
- uses: Swatinem/rust-cache@v2
|
|
42
|
+
- run: pipx install poetry
|
|
43
|
+
- run: poetry install --no-root
|
|
44
|
+
- run: poetry run maturin build --locked --out dist
|
|
45
|
+
- run: poetry run pip install dist/*.whl
|
|
46
|
+
- run: poetry run python -m pytest -q
|
|
47
|
+
|
|
48
|
+
build:
|
|
49
|
+
if: github.event_name == 'release'
|
|
50
|
+
needs: [lint, test]
|
|
51
|
+
runs-on: ${{ matrix.os }}
|
|
52
|
+
strategy:
|
|
53
|
+
matrix:
|
|
54
|
+
include:
|
|
55
|
+
- { os: ubuntu-latest, target: x86_64 }
|
|
56
|
+
- { os: ubuntu-24.04-arm, target: aarch64 }
|
|
57
|
+
- { os: macos-latest, target: aarch64 }
|
|
58
|
+
- { os: macos-latest, target: x86_64 }
|
|
59
|
+
- { os: windows-latest, target: x64 }
|
|
60
|
+
steps:
|
|
61
|
+
- uses: actions/checkout@v7
|
|
62
|
+
- uses: actions/setup-python@v7
|
|
63
|
+
with:
|
|
64
|
+
python-version: "3.x"
|
|
65
|
+
- uses: PyO3/maturin-action@v1
|
|
66
|
+
with:
|
|
67
|
+
target: ${{ matrix.target }}
|
|
68
|
+
manylinux: "2_28"
|
|
69
|
+
args: --release --locked --out dist
|
|
70
|
+
- if: matrix.os == 'ubuntu-latest'
|
|
71
|
+
uses: PyO3/maturin-action@v1
|
|
72
|
+
with:
|
|
73
|
+
command: sdist
|
|
74
|
+
args: --out dist
|
|
75
|
+
- uses: actions/upload-artifact@v4
|
|
76
|
+
with:
|
|
77
|
+
name: dist-${{ matrix.os }}-${{ matrix.target }}
|
|
78
|
+
path: dist
|
|
79
|
+
|
|
80
|
+
publish:
|
|
81
|
+
if: github.event_name == 'release'
|
|
82
|
+
needs: [build]
|
|
83
|
+
runs-on: ubuntu-latest
|
|
84
|
+
environment: pypi
|
|
85
|
+
permissions:
|
|
86
|
+
contents: read
|
|
87
|
+
id-token: write
|
|
88
|
+
steps:
|
|
89
|
+
- uses: actions/download-artifact@v4
|
|
90
|
+
with:
|
|
91
|
+
pattern: dist-*
|
|
92
|
+
path: dist
|
|
93
|
+
merge-multiple: true
|
|
94
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
95
|
+
|