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

Commit fc76d79

Browse files
authored
Fix inclusion of py.typed in pip packages (#168)
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.
1 parent 53b3626 commit fc76d79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
author="Zakaria Zajac",
1919
author_email="zak@madzak.com",
2020
package_dir={'': 'src'},
21-
package_data={"src/pythonjsonlogger": ["py.typed"]},
21+
package_data={"pythonjsonlogger": ["py.typed"]},
2222
packages=find_packages("src", exclude="tests"),
2323
# https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
2424
python_requires=">=3.6",

0 commit comments

Comments
 (0)