From: Vincent Fazio Date: Sat, 14 Sep 2024 18:33:02 +0000 (-0500) Subject: bindings: python: add py.typed marker X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c840e17a9ca05e44ec823b77843ab0e8b88691c3;p=qemu-gpiodev%2Flibgpiod.git bindings: python: add py.typed marker Per PEP 561 [0], the marker is used by type checkers like mypy to recognize that the library is typed. [0]: https://peps.python.org/pep-0561/#packaging-type-information Closes: https://github.com/brgl/libgpiod/issues/94 Signed-off-by: Vincent Fazio Link: https://lore.kernel.org/r/20240914183302.15768-1-vfazio@gmail.com Signed-off-by: Bartosz Golaszewski --- diff --git a/bindings/python/gpiod/py.typed b/bindings/python/gpiod/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/bindings/python/setup.py b/bindings/python/setup.py index 9607a28..1f04b99 100644 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -224,6 +224,7 @@ setup( name="gpiod", url="https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git", packages=find_packages(exclude=["tests", "tests.*"]), + package_data={"gpiod": ["py.typed"]}, python_requires=">=3.9.0", ext_modules=[gpiod_ext], cmdclass={"build_ext": build_ext, "sdist": sdist},