Skip to content

Commit bbfa648

Browse files
desty2kclaude
andcommitted
add pypdfium2 to smoke tests, pynput to tested packages
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 303d241 commit bbfa648

4 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
python -m venv .venv-pack
5959
.venv-pack/bin/python -m pip install --upgrade pip
6060
.venv-pack/bin/pip install -e .
61-
.venv-pack/bin/pip install psutil click pydantic requests pyyaml rich jinja2 sqlalchemy numpy boto3 anthropic flask fastapi Pillow 'mcp[cli]'
61+
.venv-pack/bin/pip install psutil click pydantic requests pyyaml rich jinja2 sqlalchemy numpy boto3 anthropic flask fastapi Pillow 'mcp[cli]' pypdfium2
6262
python -m venv .venv-smoke
6363
.venv-smoke/bin/python -m pip install --upgrade pip
6464
.venv-smoke/bin/pip install pytest

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ Dump + encrypt + load roundtrip verified with:
238238
| Pillow | Native extensions + bundled dylibs | OK |
239239
| psutil | Native per-platform | OK |
240240
| pydantic | Pure Python + C core | OK |
241+
| pynput | Native + PyObjC/X11 | OK |
241242
| pyyaml | Pure Python + C | OK |
242243
| requests | Pure Python | OK |
243244
| rich | Pure Python | OK |

tests/smoke/pack.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
Run in a venv with the target packages installed:
55
66
pip install paker psutil click pydantic requests pyyaml rich jinja2 \
7-
sqlalchemy numpy boto3 moto anthropic flask fastapi Pillow \
8-
'mcp[cli]'
7+
sqlalchemy numpy boto3 anthropic flask fastapi Pillow \
8+
'mcp[cli]' pypdfium2
99
python tests/smoke/pack.py
1010
1111
Produces ``tests/smoke/bundles/<pkg>_plain.json`` and
@@ -45,6 +45,7 @@
4545
"fastapi": [],
4646
"PIL": [],
4747
"mcp": [],
48+
"pypdfium2": [],
4849
}
4950

5051

tests/smoke/test_smoke.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@
116116
"t = Tool(name='add', inputSchema={'type': 'object', 'properties': {}})\n"
117117
"assert t.name == 'add'\n"
118118
),
119+
"pypdfium2": (
120+
"import pypdfium2 as pdfium\n"
121+
"pdf = pdfium.PdfDocument.new()\n"
122+
"pdf.new_page(200, 300)\n"
123+
"assert len(pdf) == 1\n"
124+
),
119125
}
120126

121127

0 commit comments

Comments
 (0)