Skip to content

Commit 6aaf5b2

Browse files
authored
fix: pin azure-ai-projects to <2.0.0 in tooling-extensions-azureaifoundry (#233)
* 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). * 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 3545ab3 commit 6aaf5b2

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

pyproject.toml

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

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

7071
# Centralized version constraints for all external dependencies
@@ -80,7 +81,7 @@ constraint-dependencies = [
8081

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

0 commit comments

Comments
 (0)