From 0507179d3bad3bfc8c96214ed3beaaf55e3d42bd Mon Sep 17 00:00:00 2001 From: Evan Mattson <35585003+moonbox3@users.noreply.github.com> Date: Mon, 4 May 2026 13:45:07 +0900 Subject: [PATCH] Python: Add `redis[asyncio]` to requirements.txt for streaming samples (#5509) * fix: add redis[asyncio] to streaming sample requirements.txt Both streaming samples import redis.asyncio in redis_stream_response_handler.py but neither included redis in their requirements.txt, causing ModuleNotFoundError on fresh installs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Python: Add `redis[asyncio]` to requirements.txt for streaming samples Fixes #5396 * Revert unrelated formatting and cleanup changes Revert formatting-only edits in sample files and unrelated cleanup (unused import removal, __all__ reordering) that were accidentally included in the redis dependency fix (issue #5396). The only intended changes for this PR are the Redis dependency additions to requirements.txt files for the streaming samples. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Address review feedback for #5396: Python: [Samples][Python] redis package missing from requirements.txt in streaming samples --------- Co-authored-by: Copilot Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../azure_functions/03_reliable_streaming/requirements.txt | 3 +++ .../durabletask/03_single_agent_streaming/requirements.txt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/python/samples/04-hosting/azure_functions/03_reliable_streaming/requirements.txt b/python/samples/04-hosting/azure_functions/03_reliable_streaming/requirements.txt index c11cbc3552..50559b41d1 100644 --- a/python/samples/04-hosting/azure_functions/03_reliable_streaming/requirements.txt +++ b/python/samples/04-hosting/azure_functions/03_reliable_streaming/requirements.txt @@ -13,3 +13,6 @@ # Azure authentication azure-identity + +# Redis client with asyncio support (used by redis_stream_response_handler.py) +redis[asyncio] diff --git a/python/samples/04-hosting/durabletask/03_single_agent_streaming/requirements.txt b/python/samples/04-hosting/durabletask/03_single_agent_streaming/requirements.txt index 860b74ae33..bf1ed3fa30 100644 --- a/python/samples/04-hosting/durabletask/03_single_agent_streaming/requirements.txt +++ b/python/samples/04-hosting/durabletask/03_single_agent_streaming/requirements.txt @@ -12,3 +12,6 @@ # Azure authentication azure-identity + +# Redis client with asyncio support (used by redis_stream_response_handler.py) +redis[asyncio]