From 6ad53b6c90a3cacec9103183271242d1d50bda73 Mon Sep 17 00:00:00 2001 From: Nicholas Mei Date: Thu, 16 May 2024 11:12:51 -0700 Subject: [PATCH] Have aibs-informatics-aws-lambda 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_aws_lambda/py.typed | 0 2 files changed, 3 insertions(+) create mode 100644 src/aibs_informatics_aws_lambda/py.typed diff --git a/pyproject.toml b/pyproject.toml index 039379d..70f1046 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,6 +39,9 @@ handle-lambda-request = "aibs_informatics_aws_lambda.main:handle_cli" [tool.setuptools.dynamic] version = {attr = "aibs_informatics_aws_lambda._version.__version__"} +[tool.setuptools.package-data] +"*" = ['py.typed'] + [tool.setuptools.packages.find] where = ["src"] diff --git a/src/aibs_informatics_aws_lambda/py.typed b/src/aibs_informatics_aws_lambda/py.typed new file mode 100644 index 0000000..e69de29