fix(dist): add py.typed to package_data #90
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #89, by adding
py.typed
topackage_data
, this was validated by running locally the following commands:$ pip wheel . $ unzip -l puremagic-1.25-py3-none-any.whl Archive: puremagic-1.25-py3-none-any.whl Length Date Time Name --------- ---------- ----- ---- 102 07-05-2024 13:59 puremagic/__init__.py 90 07-05-2024 13:59 puremagic/__main__.py 143189 07-05-2024 13:59 puremagic/magic_data.json 15622 07-05-2024 13:59 puremagic/main.py 0 07-05-2024 13:59 puremagic/py.typed 1086 07-05-2024 14:02 puremagic-1.25.dist-info/LICENSE 5854 07-05-2024 14:02 puremagic-1.25.dist-info/METADATA 91 07-05-2024 14:02 puremagic-1.25.dist-info/WHEEL 10 07-05-2024 14:02 puremagic-1.25.dist-info/top_level.txt 775 07-05-2024 14:02 puremagic-1.25.dist-info/RECORD --------- ------- 166819 10 files
Note how the
py.typed
file is now included in the generated wheel.