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

Commit

Permalink
Fix inclusion of py.typed in pip packages (#168)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sth authored Feb 21, 2023
1 parent 53b3626 commit fc76d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
author="Zakaria Zajac",
author_email="zak@madzak.com",
package_dir={'': 'src'},
package_data={"src/pythonjsonlogger": ["py.typed"]},
package_data={"pythonjsonlogger": ["py.typed"]},
packages=find_packages("src", exclude="tests"),
# https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
python_requires=">=3.6",
Expand Down

0 comments on commit fc76d79

Please sign in to comment.