Skip to content

Commit f0c14fc

Browse files
committed
feat: add py.typed to enable downstream type usage
Based on the instructions at https://mypy.readthedocs.io/en/stable/installed_packages.html#making-pep-561-compatible-packages.
1 parent 72751d2 commit f0c14fc

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
global-include *.typed

pystac_client/py.typed

Whitespace-only changes.

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
url="https://github.com/stac-utils/pystac-client.git",
2929
packages=find_packages(exclude=("tests",)),
3030
py_modules=[splitext(basename(path))[0] for path in glob("pystac_client/*.py")],
31-
include_package_data=False,
31+
include_package_data=True,
32+
package_data={"pystac_client": ["py.typed"]},
3233
python_requires=">=3.7",
3334
install_requires=[
3435
"requests>=2.25",

0 commit comments

Comments
 (0)