From cffe253d1d213651c8ea449f04440bbea68cce2a Mon Sep 17 00:00:00 2001 From: Abimael Martell <1450169+abimaelmartell@users.noreply.github.com> Date: Tue, 14 Jul 2026 19:33:39 -0700 Subject: [PATCH] fix(pypi): slim sdist inherited from crate allowlist; keep type stub (0.2.4) (#153) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- Cargo.toml | 3 +++ pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 30829bc..74bde5b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,9 @@ include = [ "external/bcmaps/**", "docs/rust-api.md", "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] diff --git a/pyproject.toml b/pyproject.toml index 3bac64f..dc46b13 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "maturin" name = "pdf-inspector" # Bump this to publish to PyPI — CI publishes automatically when the version # 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" readme = "docs/python.md" license = { text = "MIT" }