This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 60e4529dce8 Fix `common.ai` provider's dependencies (#62753)
60e4529dce8 is described below
commit 60e4529dce8888fc7e4993c48c418c8f08564fc7
Author: Kaxil Naik <[email protected]>
AuthorDate: Tue Mar 3 01:26:41 2026 +0000
Fix `common.ai` provider's dependencies (#62753)
* Fix common.ai provider to declare common.compat and standard as hard
dependencies
The common.ai provider unconditionally imports from common.compat (BaseHook,
BaseOperator, DecoratedOperator, TaskDecorator) and standard (BranchMixIn)
in
its core modules, but these were listed as optional extras. Anyone
installing
apache-airflow-providers-common-ai without the extras gets ImportError on
any
operator/hook usage.
Move both to hard dependencies and remove the now-unnecessary optional
extras.
* Add '# use next version' comments for common.compat and standard deps
---
providers/common/ai/docs/index.rst | 14 ++++++++------
providers/common/ai/pyproject.toml | 8 ++------
2 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/providers/common/ai/docs/index.rst
b/providers/common/ai/docs/index.rst
index 06c600a7805..764ae24c4dd 100644
--- a/providers/common/ai/docs/index.rst
+++ b/providers/common/ai/docs/index.rst
@@ -97,12 +97,14 @@ Requirements
The minimum Apache Airflow version supported by this provider distribution is
``3.0.0``.
-==================== ==================
-PIP package Version required
-==================== ==================
-``apache-airflow`` ``>=3.0.0``
-``pydantic-ai-slim`` ``>=1.14.0``
-==================== ==================
+========================================== ==================
+PIP package Version required
+========================================== ==================
+``apache-airflow`` ``>=3.0.0``
+``apache-airflow-providers-common-compat`` ``>=1.13.1``
+``apache-airflow-providers-standard`` ``>=1.12.0``
+``pydantic-ai-slim`` ``>=1.14.0``
+========================================== ==================
Cross provider package dependencies
-----------------------------------
diff --git a/providers/common/ai/pyproject.toml
b/providers/common/ai/pyproject.toml
index 1770af6848b..78222801a39 100644
--- a/providers/common/ai/pyproject.toml
+++ b/providers/common/ai/pyproject.toml
@@ -59,6 +59,8 @@ requires-python = ">=3.10"
# After you modify the dependencies, and rebuild your Breeze CI image with
``breeze ci-image build``
dependencies = [
"apache-airflow>=3.0.0",
+ "apache-airflow-providers-common-compat>=1.13.1", # use next version
+ "apache-airflow-providers-standard>=1.12.0", # use next version
"pydantic-ai-slim>=1.14.0",
]
@@ -69,9 +71,6 @@ dependencies = [
"bedrock" = ["pydantic-ai-slim[bedrock]"]
"google" = ["pydantic-ai-slim[google]"]
"openai" = ["pydantic-ai-slim[openai]"]
-"common.compat" = [
- "apache-airflow-providers-common-compat"
-]
"sql" = [
"apache-airflow-providers-common-sql",
"sqlglot>=26.0.0",
@@ -79,9 +78,6 @@ dependencies = [
"common.sql" = [
"apache-airflow-providers-common-sql"
]
-"standard" = [
- "apache-airflow-providers-standard"
-]
[dependency-groups]
dev = [