Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

Conversation

sth
Copy link
Contributor

@sth sth commented Feb 20, 2023

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 keys in the `package_data` dictionary in `setup.py` need to be
package names, not source directories, for the data files to be packaged
correctly.
@madzak
Copy link
Owner

madzak commented Feb 21, 2023

Thanks for the fix!

@madzak madzak merged commit fc76d79 into madzak:master Feb 21, 2023
@sth sth deleted the include-py-typed branch February 21, 2023 19:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants