From 3d8a88e1f8067c545c9da9c7db12f4c2282f5204 Mon Sep 17 00:00:00 2001 From: James Dow Date: Thu, 30 May 2024 18:06:10 -0400 Subject: [PATCH] fix: Add py.typed marker file Allow inline type hints to be packaged and distributed following PEP561 specification https://peps.python.org/pep-0561/#specification --- redshift_connector/py.typed | 0 setup.py | 4 +++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 redshift_connector/py.typed diff --git a/redshift_connector/py.typed b/redshift_connector/py.typed new file mode 100644 index 0000000..e69de29 diff --git a/setup.py b/setup.py index a95f9fa..bdf4b8a 100644 --- a/setup.py +++ b/setup.py @@ -128,7 +128,9 @@ def get_tag(self): ], keywords="redshift dbapi", include_package_data=True, - package_data={"redshift-connector": ["*.py", "*.crt", "LICENSE", "NOTICE"]}, + package_data={ + "redshift-connector": ["*.py", "*.crt", "LICENSE", "NOTICE", "py.typed"] + }, packages=find_packages(exclude=["test*"]), cmdclass=custom_cmds, )