fix(pypi): slim sdist inherited from crate allowlist; keep type stub (0.2.4) (#153)

The 0.2.3 sdist was 10.09 MiB (packaged tests/fixtures). maturin derives
the sdist file list from Cargo's include allowlist, so it's now 1.35 MiB
— but the allowlist dropped pdf_inspector.pyi, which would strip type
hints from wheels built from the sdist. Add it back and bump to 0.2.4.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Abimael Martell
2026-07-14 19:33:39 -07:00
committed by GitHub
co-authored by Claude Fable 5
parent 2cd1cf1b23
commit cffe253d1d
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -16,6 +16,9 @@ include = [
"external/bcmaps/**", "external/bcmaps/**",
"docs/rust-api.md", "docs/rust-api.md",
"LICENSE", "LICENSE",
# maturin derives the sdist file list from this allowlist; the stub must
# ship so wheels built from the sdist keep their type hints.
"pdf_inspector.pyi",
] ]
[lib] [lib]
+1 -1
View File
@@ -6,7 +6,7 @@ build-backend = "maturin"
name = "pdf-inspector" name = "pdf-inspector"
# Bump this to publish to PyPI — CI publishes automatically when the version # Bump this to publish to PyPI — CI publishes automatically when the version
# changes on main (same flow as napi/package.json for npm). # changes on main (same flow as napi/package.json for npm).
version = "0.2.3" version = "0.2.4"
description = "Fast PDF inspection, classification, and text extraction with smart scanned vs text-based detection" description = "Fast PDF inspection, classification, and text extraction with smart scanned vs text-based detection"
readme = "docs/python.md" readme = "docs/python.md"
license = { text = "MIT" } license = { text = "MIT" }