From 7694a4459a9812dcaddd505c1c502f02c9b6a823 Mon Sep 17 00:00:00 2001 From: Chase Naples Date: Tue, 9 Dec 2025 08:20:36 -0500 Subject: [PATCH 1/3] Add py.typed marker --- mssql_python/py.typed | 1 + setup.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 mssql_python/py.typed diff --git a/mssql_python/py.typed b/mssql_python/py.typed new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/mssql_python/py.typed @@ -0,0 +1 @@ + diff --git a/setup.py b/setup.py index a2d2c340..1a2bae2d 100644 --- a/setup.py +++ b/setup.py @@ -94,6 +94,7 @@ def finalize_options(self): package_data={ # Include PYD and DLL files inside mssql_python, exclude YML files 'mssql_python': [ + 'py.typed', # Marker file for PEP 561 typing support 'ddbc_bindings.cp*.pyd', # Include all PYD files 'ddbc_bindings.cp*.so', # Include all SO files 'libs/*', From bd51768f6d1b5459864bfdcdd3cd919fc53ff561 Mon Sep 17 00:00:00 2001 From: Gaurav Sharma Date: Thu, 29 Jan 2026 12:57:55 +0530 Subject: [PATCH 2/3] Fix formatting of package_data entries in setup.py --- setup.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index 017fb285..12a4bdd9 100644 --- a/setup.py +++ b/setup.py @@ -107,12 +107,12 @@ def finalize_options(self): package_data={ # Include PYD and DLL files inside mssql_python, exclude YML files "mssql_python": [ - 'py.typed', # Marker file for PEP 561 typing support - 'ddbc_bindings.cp*.pyd', # Include all PYD files - 'ddbc_bindings.cp*.so', # Include all SO files - 'libs/*', - 'libs/**/*', - '*.dll' + "py.typed", # Marker file for PEP 561 typing support + "ddbc_bindings.cp*.pyd", # Include all PYD files + "ddbc_bindings.cp*.so", # Include all SO files + "libs/*", + "libs/**/*", + "*.dll" ] }, include_package_data=True, From 787df97b0c7aea6dd230600d7a34639ccb1c79ef Mon Sep 17 00:00:00 2001 From: Gaurav Sharma Date: Thu, 29 Jan 2026 12:58:30 +0530 Subject: [PATCH 3/3] Fix formatting in setup.py for package data --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 12a4bdd9..3c6a34bb 100644 --- a/setup.py +++ b/setup.py @@ -110,9 +110,9 @@ def finalize_options(self): "py.typed", # Marker file for PEP 561 typing support "ddbc_bindings.cp*.pyd", # Include all PYD files "ddbc_bindings.cp*.so", # Include all SO files - "libs/*", - "libs/**/*", - "*.dll" + "libs/*", + "libs/**/*", + "*.dll", ] }, include_package_data=True,