Skip to content

py.typed not included in wheels #4113

@hartungstenio

Description

@hartungstenio

Describe your environment

OS: ubuntu
Python version: Python 3.12
SDK version: 1.26.0
API version: 1.26.0

What happened?

#3385 added a py.typed marker to every subpackage.

This marker was added to the subpackage root, but it should stay with the package source code (inside /src)

ie: Instead of exporter/opentelemetry-exporter-prometheus, it should be exporter/opentelemetry-exporter-prometheus/src/opentelemetry/exporter/prometheus

Steps to Reproduce

Run mypy with --strict flag in a project importing from opentelemetry.exporter.prometheus.

Expected Result

Mypy succeeds

Actual Result

Mypy fails with

error: Skipping analyzing "opentelemetry.exporter.prometheus": module is installed, but missing library stubs or py.typed marker  [import-untyped]

Additional context

No response

Would you like to implement a fix?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions