Make azure-identity an optional dependency
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 48/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Python
- Estrelas
- 479
- Forks
- 62
- Merge médio
- 2d 14h
- PRs com merge (30d)
- 16
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de microsoft/mssql-python
-
bulkcopy_arrow() / bulkcopy()` broken in 1.16.0Talvez já em andamento @jahnvi480 assumiu há 1 dia. Abertaarea: bulk-copy bug inADO triage done under development
Dificuldade 3/5 Meio dia Facilidade para iniciantes 72/100
microsoft/mssql-python#855 · 2 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Pooled connection checkout has no timeout: connect() hangs ~16 min on a dead socketTalvez já em andamento @jahnvi480 assumiu há 1 dia. Abertaarea: connectivity-auth bug inADO triage done under development
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
microsoft/mssql-python#854 · 3 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
triage needed
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 38/100
microsoft/mssql-python#850 · 2 comentários · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
bulkcopy() & bulkcopy_arrow() fail with Schannel AcquireCredentialsHandleW error 0x8009030D (SEC_E_UNKNOWN_CREDENTIALS)Talvez já em andamento @jahnvi480 assumiu há 3 dias. Abertaarea: bulk-copy bug inADO triage done
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 20/100
microsoft/mssql-python#848 · 5 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
macOS: encrypted connections fail after Homebrew moved the `openssl` alias to `openssl@4`Talvez já em andamento @bewithgaurav assumiu há 23 dias. Abertaarea: packaging-platform bug triage needed
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
microsoft/mssql-python#826 · 2 comentários · 3 reações · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de microsoft/mssql-python
Issues semelhantes
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 85/100
WLAN-Pi/wlanpi-profiler#341 ·
Mantenedores costumam responder em até 1 dia
-
Memory leak: the shared `validation_aborted_error` keeps every traceback it is raised throughTalvez já em andamento @Fire162 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
graphql-python/graphql-core#287 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
roman-corgi/ctc-dip#160 ·
Mantenedores costumam responder em até 1 dia
-
type-bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
render_findings.py reads and writes in the host's default encoding, so findings.html breaks on a cp1252 Windows hostTalvez já em andamento @Aaqibhafeezkhan assumiu hoje. Abertabug good first issue mentored python size: XS up-for-grabs
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
dheerajjha/mcp-migrate#366 · 1 comentário ·
Mantenedores costumam responder em até 1 dia