Skip to content

Commit 042ce61

Browse files
committed
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.
1 parent 4cadf89 commit 042ce61

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

libraries/microsoft-agents-a365-tooling-extensions-azureaifoundry/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ classifiers = [
2424
license = {text = "MIT"}
2525
dependencies = [
2626
"microsoft-agents-a365-tooling",
27-
"azure-ai-projects>=1.0.0b12,<2.0.0",
27+
"azure-ai-projects",
2828
"azure-ai-agents",
2929
"azure-identity",
3030
]

pyproject.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,12 @@ dev-dependencies = [
5959
"openai-agents",
6060
]
6161

62-
# Override semantic-kernel's azure-ai-projects constraint to allow 2.x
63-
# semantic-kernel 1.39.3 constrains azure-ai-projects~=1.0.0b12 but this repo needs >=2.0.0b1
64-
# The functionality is compatible; only the version constraint was tightened
62+
# azure-ai-projects is capped at <2.0.0 because:
63+
# 1. semantic-kernel>=1.39.3 requires azure-ai-projects~=1.0.0b12 (<2.0.0)
64+
# 2. tooling-extensions-azureaifoundry uses the 1.x Agents API (project_client.agents.update_agent)
65+
# which was removed in azure-ai-projects 2.x
6566
override-dependencies = [
66-
"azure-ai-projects >= 2.0.0b1",
67+
"azure-ai-projects>=1.0.0b12,<2.0.0",
6768
]
6869

6970
# Centralized version constraints for all external dependencies
@@ -79,7 +80,7 @@ constraint-dependencies = [
7980

8081
# --- Azure Services ---
8182
"azure-ai-agents >= 1.0.0b251001",
82-
"azure-ai-projects >= 2.0.0b1",
83+
"azure-ai-projects>=1.0.0b12,<2.0.0",
8384
"azure-identity >= 1.12.0",
8485
"azure-monitor-ingestion >= 1.0.0",
8586
"azure-monitor-opentelemetry-exporter >= 1.0.0b39",

0 commit comments

Comments
 (0)