madzak / python-json-logger

Json Formatter for the standard python logger
BSD 2-Clause "Simplified" License
1.7k stars 231 forks source link

Fix inclusion of `py.typed` in pip packages #168

Closed sth closed 1 year ago

sth commented 1 year ago

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.

madzak commented 1 year ago

Thanks for the fix!