From 8a89dfebe1085cfcd7ab6090ba2f3424176e6094 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 23 Apr 2021 14:51:04 +0200 Subject: [PATCH] Add PEP-561 py.typed file This commit adds a py.typed file, which marks the package as having type information available. For more information, see https://mypy.readthedocs.io/en/stable/installed_packages.html#making-pep-561-compatible-packages The zip_safe seems to be [still necessary](https://github.com/encode/httpx/issues/193#ref-pullrequest-495896230), even though it is [deprecated](https://github.com/python/mypy/issues/8802). --- openhtf/py.typed | 0 setup.py | 2 ++ 2 files changed, 2 insertions(+) create mode 100644 openhtf/py.typed diff --git a/openhtf/py.typed b/openhtf/py.typed new file mode 100644 index 000000000..e69de29bb diff --git a/setup.py b/setup.py index 69429901f..1892326f3 100644 --- a/setup.py +++ b/setup.py @@ -192,6 +192,7 @@ def run_tests(self): packages=find_packages(), package_data={ 'openhtf': [ + 'py.typed', 'output/proto/*.proto', 'output/web_gui/dist/*.*', 'output/web_gui/dist/css/*', 'output/web_gui/dist/js/*', 'output/web_gui/dist/img/*', 'output/web_gui/*.*' @@ -222,4 +223,5 @@ def run_tests(self): 'pytest>=2.9.2', 'pytest-cov>=2.2.1', ], + zip_safe=False, )