Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
fix(msteams): remove optional deps from dev extras and gate tests
chengyongru63753dbfeafc
diff --git a/pyproject.toml b/pyproject.tomlindex 54f82be7a..71526a01d 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -93,7 +93,6 @@ dev = ["aiohttp>=3.9.0,<4.0.0","pytest-cov>=6.0.0,<7.0.0","ruff>=0.1.0",- "pymupdf>=1.25.0",][project.scripts]diff --git a/tests/test_msteams.py b/tests/test_msteams.pyindex a253558e3..c75b51f94 100644--- a/tests/test_msteams.py+++ b/tests/test_msteams.py@@ -1,7 +1,18 @@import json-import jwtimport pytest++# Check optional msteams dependencies before running tests+try:+ from nanobot.channels import msteams+ MSTEAMS_AVAILABLE = getattr(msteams, "MSTEAMS_AVAILABLE", False)+except ImportError:+ MSTEAMS_AVAILABLE = False++if not MSTEAMS_AVAILABLE:+ pytest.skip("MSTeams dependencies not installed (PyJWT, cryptography). Run: pip install nanobot-ai[msteams]", allow_module_level=True)++import jwtfrom cryptography.hazmat.primitives.asymmetric import rsaimport nanobot.channels.msteams as msteams_module