Add deprecated warning on microsoft-agents-hosting-teams package import - #517
Merged
Rodrigo Brandão (rodrigobr-msft) merged 5 commits intoAug 3, 2026
Merged
Conversation
Copilot started reviewing on behalf of
Rodrigo Brandão (rodrigobr-msft)
August 3, 2026 20:14
View session
microsoft-agents-hosting-teams package importmicrosoft-agents-hosting-teams package import
Rodrigo Brandão (rodrigobr-msft)
marked this pull request as ready for review
August 3, 2026 20:14
Rodrigo Brandão (rodrigobr-msft)
requested a review
from a team
as a code owner
August 3, 2026 20:14
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an import-time deprecation notice to the legacy microsoft_agents.hosting.teams package to steer users toward the replacement microsoft-agents-hosting-msteams distribution.
Changes:
- Emit a warning when
microsoft_agents.hosting.teamsis imported. - Add a module header docstring (copyright/license).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Copilot started reviewing on behalf of
Rodrigo Brandão (rodrigobr-msft)
August 3, 2026 20:59
View session
Kyle Rohn (kylerohn-msft)
approved these changes
Aug 3, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
Suppressed comments (1)
libraries/microsoft-agents-hosting-teams/microsoft_agents/hosting/teams/init.py:11
- Avoid logging via the root logger at import time; it bypasses the package/module logger hierarchy and makes it harder for consumers to filter/route this deprecation notice. Prefer a module-scoped logger (logging.getLogger(name)) and log through it. Also remove the trailing whitespace at the end of the final sentence.
logging.warning(
"The `microsoft-agents-hosting-teams` package is deprecated. "
"Please start using the `microsoft-agents-hosting-msteams` package "
"for better support and future updates. "
Rodrigo Brandão (rodrigobr-msft)
enabled auto-merge (squash)
August 3, 2026 21:06
Copilot started reviewing on behalf of
Rodrigo Brandão (rodrigobr-msft)
August 3, 2026 21:06
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
Suppressed comments (1)
libraries/microsoft-agents-hosting-teams/microsoft_agents/hosting/teams/init.py:12
- Using
logging.warning(...)logs on the root logger and bypasses the codebase’s typical module-scoped logger pattern (e.g.,logger = logging.getLogger(__name__)thenlogger.warning(...)). Switching to a module logger also makes it easier for consumers to filter/disable this deprecation warning. Also, the final string segment currently ends with a trailing space; consider ending with a period and no trailing whitespace.
import logging
logging.warning(
"The `microsoft-agents-hosting-teams` package is deprecated. "
"Please start using the `microsoft-agents-hosting-msteams` package "
"for better support and future updates. "
)
Rodrigo Brandão (rodrigobr-msft)
deleted the
users/robrandao/deprecate-teams
branch
August 3, 2026 21:09
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.
This pull request adds a deprecation warning to the
microsoft-agents-hosting-teamspackage, informing users that it is obsolete and recommending migration to themicrosoft-agents-hosting-msteamspackage.Deprecation notice:
__init__.pyto notify users thatmicrosoft-agents-hosting-teamsis obsolete and to usemicrosoft-agents-hosting-msteamsinstead.