From 184a5aec3bc38833f6b2e3ea589b562345c9b3fb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 26 May 2026 20:54:41 +0000 Subject: [PATCH 1/3] Initial plan From 839b14903306ff4b79045ffdac082332939a235d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 26 May 2026 21:00:04 +0000 Subject: [PATCH 2/3] Add `aio` extras_require to azure-cosmos for async dependencies Adds an optional `aio` dependency extra to the azure-cosmos package so users can install async dependencies (aiohttp via azure-core[aio]) with `pip install azure-cosmos[aio]`. This follows the same pattern used by other Azure SDK packages like azure-storage-queue. Fixes #39457 Co-authored-by: simorenoh <30335873+simorenoh@users.noreply.github.com> --- sdk/cosmos/azure-cosmos/CHANGELOG.md | 1 + sdk/cosmos/azure-cosmos/setup.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/sdk/cosmos/azure-cosmos/CHANGELOG.md b/sdk/cosmos/azure-cosmos/CHANGELOG.md index 872e6a9ee37c..f3dc622dad5b 100644 --- a/sdk/cosmos/azure-cosmos/CHANGELOG.md +++ b/sdk/cosmos/azure-cosmos/CHANGELOG.md @@ -4,6 +4,7 @@ #### Features Added * Added **preview** support for the optional `embeddingSource` field on entries in `vector_embedding_policy.vectorEmbeddings`, which allows the service to generate vector embeddings from the specified item paths. Requires the embedding-generation service to be enabled on the account. See [46870](https://github.com/Azure/azure-sdk-for-python/pull/46870) +* Added `aio` extras to the package, allowing users to install async dependencies with `pip install azure-cosmos[aio]`. See [#39457](https://github.com/Azure/azure-sdk-for-python/issues/39457) #### Breaking Changes diff --git a/sdk/cosmos/azure-cosmos/setup.py b/sdk/cosmos/azure-cosmos/setup.py index 2ca866b52c03..fc3b5abba692 100644 --- a/sdk/cosmos/azure-cosmos/setup.py +++ b/sdk/cosmos/azure-cosmos/setup.py @@ -80,4 +80,9 @@ "azure-core>=1.30.0", "typing-extensions>=4.6.0" ], + extras_require={ + "aio": [ + "azure-core[aio]>=1.30.0", + ], + }, ) From 45cb41efb337712bd4aef2178ba6993bf88771f3 Mon Sep 17 00:00:00 2001 From: Simon Moreno <30335873+simorenoh@users.noreply.github.com> Date: Tue, 26 May 2026 17:49:19 -0400 Subject: [PATCH 3/3] Apply suggestion from @simorenoh --- sdk/cosmos/azure-cosmos/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/cosmos/azure-cosmos/CHANGELOG.md b/sdk/cosmos/azure-cosmos/CHANGELOG.md index f3dc622dad5b..d9285c1e7e46 100644 --- a/sdk/cosmos/azure-cosmos/CHANGELOG.md +++ b/sdk/cosmos/azure-cosmos/CHANGELOG.md @@ -4,7 +4,7 @@ #### Features Added * Added **preview** support for the optional `embeddingSource` field on entries in `vector_embedding_policy.vectorEmbeddings`, which allows the service to generate vector embeddings from the specified item paths. Requires the embedding-generation service to be enabled on the account. See [46870](https://github.com/Azure/azure-sdk-for-python/pull/46870) -* Added `aio` extras to the package, allowing users to install async dependencies with `pip install azure-cosmos[aio]`. See [#39457](https://github.com/Azure/azure-sdk-for-python/issues/39457) +* Added `aio` extras to the package, allowing users to install async dependencies with `pip install azure-cosmos[aio]`. See [PR 47143](https://github.com/Azure/azure-sdk-for-python/pull/47143) #### Breaking Changes