From 0954e774dbf8db90a8d1fde43f55cbe9ecd1c69a Mon Sep 17 00:00:00 2001 From: Nicholas Mei Date: Thu, 16 May 2024 11:17:06 -0700 Subject: [PATCH] Have aibs-informatics-cdk-lib pkg indicate that it is typed Currently, due to a missing `py.typed` file, this package will will raise mypy typing errors when used as a dependency in some other package. This commit fixes this issue by adding the missing file and updating the `pyproject.toml` to include the `py.typed` file as part of `package_data`. For details see: https://mypy.readthedocs.io/en/stable/installed_packages.html#creating-pep-561-compatible-packages --- pyproject.toml | 3 +++ src/aibs_informatics_cdk_lib/py.typed | 0 2 files changed, 3 insertions(+) create mode 100644 src/aibs_informatics_cdk_lib/py.typed diff --git a/pyproject.toml b/pyproject.toml index e42e908..f05c02a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,6 +32,9 @@ dev = [ [tool.setuptools.dynamic] version = {attr = "aibs_informatics_cdk_lib._version.__version__"} +[tool.setuptools.package-data] +"*" = ['py.typed'] + [tool.setuptools.packages.find] where = ["src"] diff --git a/src/aibs_informatics_cdk_lib/py.typed b/src/aibs_informatics_cdk_lib/py.typed new file mode 100644 index 0000000..e69de29