Deprecate ai, openai, mcpplugin, and a2a packages#406
Merged
heyitsaamir merged 2 commits intomainfrom Apr 25, 2026
Merged
Conversation
These packages were in preview but won't be maintained to GA. Added README warnings, runtime DeprecationWarnings on import, and "Development Status :: 7 - Inactive" classifiers pointing users to the recommended replacements. Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR deprecates the preview microsoft-teams-ai, microsoft-teams-openai, microsoft-teams-mcpplugin, and microsoft-teams-a2a packages by adding user-facing deprecation notices in docs, runtime import warnings, and packaging metadata to signal inactive status.
Changes:
- Added import-time deprecation warnings to each package’s
__init__.py. - Added
[!WARNING]deprecation banners to each package README with links to recommended replacements. - Added
Development Status :: 7 - Inactivetrove classifier to each affected package’spyproject.toml.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/openai/src/microsoft_teams/openai/init.py | Emits a deprecation warning on import for microsoft-teams-openai. |
| packages/openai/pyproject.toml | Marks package as inactive via trove classifier. |
| packages/openai/README.md | Adds a deprecation banner and replacement guidance. |
| packages/mcpplugin/src/microsoft_teams/mcpplugin/init.py | Emits a deprecation warning on import for microsoft-teams-mcpplugin. |
| packages/mcpplugin/pyproject.toml | Marks package as inactive via trove classifier. |
| packages/mcpplugin/README.md | Adds a deprecation banner and replacement guidance. |
| packages/ai/src/microsoft_teams/ai/init.py | Emits a deprecation warning on import for microsoft-teams-ai. |
| packages/ai/pyproject.toml | Marks package as inactive via trove classifier. |
| packages/ai/README.md | Adds a deprecation banner and replacement guidance. |
| packages/a2aprotocol/src/microsoft_teams/a2a/init.py | Emits a deprecation warning on import for microsoft-teams-a2a. |
| packages/a2aprotocol/pyproject.toml | Marks package as inactive via trove classifier. |
| packages/a2aprotocol/README.md | Adds a deprecation banner and replacement guidance. |
Switched from DeprecationWarning to FutureWarning so warnings are visible by default. Updated Agent Framework link to official Microsoft Learn docs. Co-Authored-By: Claude <noreply@anthropic.com>
lilyydu
approved these changes
Apr 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
[!WARNING]deprecation banners to each package's README with links to recommended replacementsDeprecationWarningon import so users get notified in their terminalDevelopment Status :: 7 - Inactivetrove classifier to eachpyproject.tomlRecommended replacements:
microsoft-teams-ai→ Agent Frameworkmicrosoft-teams-mcpplugin→ MCP Python SDKmicrosoft-teams-a2a→ A2A Python SDKmicrosoft-teams-openai→ OpenAI Python SDKTest plan
poe checkpasses (ruff + format)