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 天 14 小时
- 30 天内合并 PR
- 16
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/mssql-python 的其他 Issue
-
bulkcopy_arrow() / bulkcopy()` broken in 1.16.0可能已有人在做 @jahnvi480 于 1 天前认领。 未关闭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 于 1 天前认领。 未关闭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 于 3 天前认领。 未关闭area: bulk-copy bug inADO triage done
难度 4/5 3-5 天 新手友好度 20/100
microsoft/mssql-python#848 · 5 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
macOS: encrypted connections fail after Homebrew moved the `openssl` alias to `openssl@4`可能已有人在做 @bewithgaurav 于 23 天前认领。 未关闭area: packaging-platform bug triage needed
难度 4/5 3-5 天 新手友好度 55/100
microsoft/mssql-python#826 · 2 条评论 · 3 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
查看 microsoft/mssql-python 的全部 Issue
相似的 Issue
-
type-bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
push_gh-pages fails on master branch on forks可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭good first issue infrastructure
难度 2/5 1-3 小时 新手友好度 76/100
kuznia-rdzeni/coreblocks#1135 ·
-
good first issue server
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
documentation priority: high
难度 2/5 1-3 小时 新手友好度 78/100
a-lex-s/mealie-telegram-bot#54 ·
维护者通常 1 天内回复