Skip to content

py.typed is in the published wheel but missing from the sdist — source installs lose PEP 561 typing #968

Description

The published detect-secrets 1.5.0 wheel contains detect_secrets/py.typed, but a wheel built from the published sdist does not — so anyone installing from source (distros, --no-binary, platforms without wheels) silently loses type-checking support. (#579 added py.typed to the package, but the sdist doesn't ship it.)

Fix is one line: ensure py.typed is included in the sdist (MANIFEST.in or package-data).

Found by a wheel/sdist divergence census of popular PyPI packages (wheelproof, results/divergence.md); self-check with wheelproof divcheck --package <name>. Verified twice in clean python:3.12 containers with exact file-list agreement.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions