Make azure-identity an optional dependency
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
Start by reading the dependency declarations for PyPI and the Microsoft conda package, then inspect the existing pyarrow extra and the lazy Entra ID imports in auth.py and db_connection.py. Decide how the conda add-on should be handled, update the dependency metadata and missing-package error guidance, and verify that SQL/Kerberos installs no longer pull in azure-identity while Entra ID users can install the documented extra.
由索引模型根據 Issue 內容生成。
描述
mssql-python declares azure-identity>=1.12.0 as a hard runtime dependency on both PyPI and the microsoft conda channel, but only imports it lazily inside the Entra ID auth paths (auth.py, db_connection.py). SQL auth and Kerberos users never load it.
On PyPI this costs seven small pure-Python wheels. On conda it is far worse: the conda-forge azure-core and msal_extensions recipes declare runtime dependencies the wheels do not (flask, pygobject, libsecret), so azure-identity cascades into ~60 packages and ~350 MB of celery, boto3, cairo and X11 libraries. Installing mssql-python 1.16.0 into a minimal linux-64 env grows it from ~860 MB to ~1.2 GB.
The feedstock problem is not yours to fix, but the only robust fix on your side is to not require azure-identity unconditionally.
Request
Move azure-identity to an extra, matching the existing pyarrow extra:
- PyPI:
pip install mssql-python[azure] - conda: drop
azure-identityfromrun:and document it as a user-installed add-on, or publish amssql-python-azuremetapackage
The lazy imports are already in place. The Entra code paths just need a clear ImportError pointing at the extra when it is missing.
Environment: linux-64, conda-forge + microsoft channels, mssql-python 1.16.0.
- 主要語言
- Python
- 星號
- 479
- 分支
- 62
- 平均合併
- 2 天 16 小時
- 30 天內合併 PR
- 15
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
microsoft/mssql-python 的其他 Issue
-
triage needed
難度 2/5 1-3 小時 新手友好度 82/100
microsoft/mssql-python#863 · 1 則留言 ·
維護者通常 1 天內回覆
-
bulkcopy_arrow() / bulkcopy()` broken in 1.16.0可能已有人在做 @jahnvi480 於 3 天前認領。 未關閉area: bulk-copy bug inADO triage done under development
難度 3/5 半天 新手友好度 72/100
microsoft/mssql-python#855 · 2 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Pooled connection checkout has no timeout: connect() hangs ~16 min on a dead socket可能已有人在做 @jahnvi480 於 3 天前認領。 未關閉area: connectivity-auth bug inADO triage done under development
難度 4/5 3-5 天 新手友好度 48/100
microsoft/mssql-python#854 · 3 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
triage needed
難度 5/5 一週以上 新手友好度 38/100
microsoft/mssql-python#850 · 2 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
bulkcopy() & bulkcopy_arrow() fail with Schannel AcquireCredentialsHandleW error 0x8009030D (SEC_E_UNKNOWN_CREDENTIALS)可能已有人在做 @jahnvi480 於 5 天前認領。 未關閉area: bulk-copy bug inADO triage done
難度 4/5 3-5 天 新手友好度 20/100
microsoft/mssql-python#848 · 5 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
查看 microsoft/mssql-python 的全部 Issue
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 84/100
GoogleCloudPlatform/gce-rescue#195 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 83/100
維護者通常 1 天內回覆
-
intake mcp-intake needs-ac needs-human-review priority:medium
難度 2/5 1-3 小時 新手友好度 67/100
Ikalus1988/MisakaNet#3848 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 75/100
521xueweihan/HelloGitHub#4105 ·
-
bug size:XS
難度 2/5 1-3 小時 新手友好度 83/100
維護者通常 1 天內回覆