The py.typed marker file, which indicates that the code has type annotations, is currently missing from the package files published on pypi. The reason is that the package_data dictionary in setup.py currently uses the key "src/pythonjsonlogger" where a package name, not a directory, is required (see the example in the documentation).
When the package name is used instead, py.typed gets packaged correctly.
The
py.typed
marker file, which indicates that the code has type annotations, is currently missing from the package files published on pypi. The reason is that thepackage_data
dictionary insetup.py
currently uses the key"src/pythonjsonlogger"
where a package name, not a directory, is required (see the example in the documentation).When the package name is used instead,
py.typed
gets packaged correctly.