Skip to content

Commit bdc4901

Browse files
Eeshan Gargtimabbott
authored andcommitted
pypi: Include py.typed in MANIFEST.in.
According to the `setuptools` docs, once `include_package_data=True` is passed to `setup()`, it will only include package data specified in `MANIFEST.in`, and will ignore the `package_data` argument passed to `setup()`. Therefore, `py.typed` was not included in our latest PyPI release 0.8.1. Since we specify all of our package data in the `MANIFEST.in` file already, it makes more sense to include mention `py.typed` there so that it is included in the expected fashion. See pypa/setuptools#1461 for background. Fixes #732.
1 parent 58e51c7 commit bdc4901

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

zulip/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
recursive-include integrations *
22
include README.md
33
include zulip/examples/*
4+
include zulip/py.typed

zulip/setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ def recur_expand(target_root: Any, dir: Any) -> Generator[Tuple[str, List[str]],
6363
"zulip-api=zulip.cli:cli",
6464
],
6565
},
66-
package_data={"zulip": ["py.typed"]},
6766
) # type: Dict[str, Any]
6867

6968
setuptools_info = dict(

0 commit comments

Comments
 (0)