From 4cadf89677d8284163e455158ee6d0a4a5f39ab8 Mon Sep 17 00:00:00 2001 From: Sellakumaran Kanagarathnam Date: Fri, 17 Apr 2026 11:44:24 -0700 Subject: [PATCH 1/2] fix: pin azure-ai-projects to <2.0.0 in tooling-extensions-azureaifoundry The build backend introduced on Apr 1 (fbdc187) injects the root constraint-dependencies into published wheel metadata. The root pinned azure-ai-projects >= 2.0.0b1, which conflicts with semantic-kernel's transitive requirement of azure-ai-projects~=1.0.0b12 (<2.0.0). Pin azure-ai-projects>=1.0.0b12,<2.0.0 explicitly in this package so the build backend leaves it unchanged (it skips deps that already have a version specifier). The <2.0.0 upper bound is also required because azure-ai-projects 2.x removed the Agents API used by this package (project_client.agents.update_agent). --- .../pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/microsoft-agents-a365-tooling-extensions-azureaifoundry/pyproject.toml b/libraries/microsoft-agents-a365-tooling-extensions-azureaifoundry/pyproject.toml index 5b040d25..70acc7c9 100644 --- a/libraries/microsoft-agents-a365-tooling-extensions-azureaifoundry/pyproject.toml +++ b/libraries/microsoft-agents-a365-tooling-extensions-azureaifoundry/pyproject.toml @@ -24,7 +24,7 @@ classifiers = [ license = {text = "MIT"} dependencies = [ "microsoft-agents-a365-tooling", - "azure-ai-projects", + "azure-ai-projects>=1.0.0b12,<2.0.0", "azure-ai-agents", "azure-identity", ] From 042ce61a69a7f864f37f668221c2bfd039aeb976 Mon Sep 17 00:00:00 2001 From: Sellakumaran Kanagarathnam Date: Fri, 17 Apr 2026 12:04:40 -0700 Subject: [PATCH 2/2] fix: cap azure-ai-projects to <2.0.0 in root constraint-dependencies The centralized build backend (introduced Apr 1, fbdc187) stamps wheel metadata from the root constraint-dependencies. The previous entry 'azure-ai-projects >= 2.0.0b1' conflicted with semantic-kernel>=1.39.3 which requires azure-ai-projects~=1.0.0b12 (<2.0.0). Fix by updating the root pyproject.toml in two places: - constraint-dependencies: azure-ai-projects>=1.0.0b12,<2.0.0 - override-dependencies: azure-ai-projects>=1.0.0b12,<2.0.0 The <2.0.0 upper bound is also correct for tooling-extensions-azureaifoundry which uses the 1.x Agents API (project_client.agents.update_agent) that was removed in azure-ai-projects 2.x. Package-level pyproject.toml files keep bare 'azure-ai-projects' (no version specifier) to satisfy verify_constraints.py policy. --- .../pyproject.toml | 2 +- pyproject.toml | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/libraries/microsoft-agents-a365-tooling-extensions-azureaifoundry/pyproject.toml b/libraries/microsoft-agents-a365-tooling-extensions-azureaifoundry/pyproject.toml index 70acc7c9..5b040d25 100644 --- a/libraries/microsoft-agents-a365-tooling-extensions-azureaifoundry/pyproject.toml +++ b/libraries/microsoft-agents-a365-tooling-extensions-azureaifoundry/pyproject.toml @@ -24,7 +24,7 @@ classifiers = [ license = {text = "MIT"} dependencies = [ "microsoft-agents-a365-tooling", - "azure-ai-projects>=1.0.0b12,<2.0.0", + "azure-ai-projects", "azure-ai-agents", "azure-identity", ] diff --git a/pyproject.toml b/pyproject.toml index a90176b5..13d608cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -59,11 +59,12 @@ dev-dependencies = [ "openai-agents", ] -# Override semantic-kernel's azure-ai-projects constraint to allow 2.x -# semantic-kernel 1.39.3 constrains azure-ai-projects~=1.0.0b12 but this repo needs >=2.0.0b1 -# The functionality is compatible; only the version constraint was tightened +# azure-ai-projects is capped at <2.0.0 because: +# 1. semantic-kernel>=1.39.3 requires azure-ai-projects~=1.0.0b12 (<2.0.0) +# 2. tooling-extensions-azureaifoundry uses the 1.x Agents API (project_client.agents.update_agent) +# which was removed in azure-ai-projects 2.x override-dependencies = [ - "azure-ai-projects >= 2.0.0b1", + "azure-ai-projects>=1.0.0b12,<2.0.0", ] # Centralized version constraints for all external dependencies @@ -79,7 +80,7 @@ constraint-dependencies = [ # --- Azure Services --- "azure-ai-agents >= 1.0.0b251001", - "azure-ai-projects >= 2.0.0b1", + "azure-ai-projects>=1.0.0b12,<2.0.0", "azure-identity >= 1.12.0", "azure-monitor-ingestion >= 1.0.0", "azure-monitor-opentelemetry-exporter >= 1.0.0b39",