-
Notifications
You must be signed in to change notification settings - Fork 694
Python: [BREAKING] Cleanup of dependencies #1803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python: [BREAKING] Cleanup of dependencies #1803
Conversation
Python Test Coverage Report •
Python Unit Test Overview
|
||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes several dependencies from the Python agent framework to make them optional, reducing the base installation size and complexity. The changes focus on making Azure Monitor telemetry and graphviz visualization opt-in rather than required dependencies.
Key Changes:
- Removed mandatory dependencies:
aiohttp,aiofiles,azure-monitor-opentelemetry,azure-monitor-opentelemetry-exporter, andgraphviz - Added try-catch blocks to handle optional imports gracefully with helpful error messages
- Updated documentation to reflect the new installation instructions for optional features
- Removed the
vizextra from core package, making graphviz a standalone optional install - Updated dependency versions for
agentlightning,azure-storage-blob, andvirtualenv
Reviewed Changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| python/uv.lock | Removed unused dependencies and updated package versions |
| python/packages/core/pyproject.toml | Reorganized dependencies, removed viz extra, and eliminated azure-monitor and aiofiles as required dependencies |
| python/packages/core/agent_framework/observability.py | Added try-catch for Azure Monitor imports with helpful error message |
| python/packages/core/agent_framework/_workflows/_viz.py | Updated error message for graphviz installation instructions |
| python/packages/azure-ai/pyproject.toml | Removed aiohttp dependency |
| python/samples/getting_started/workflows/parallelism/map_reduce_and_visualization.py | Updated installation instructions for graphviz |
python/samples/getting_started/workflows/parallelism/map_reduce_and_visualization.py
Show resolved
Hide resolved
c6fd007 to
0b060d8
Compare
ekzhu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you do a search for documentation referencing the viz extra and update those as well?
Motivation and Context
Removed Azure Monitor dependency, added importerror catch with a good message.
Also removed
vizextra, since we want to not use extras as much as possible, also updated import error messageReviewed some other depencies:
Closes #1376
Description
Contribution Checklist