From 2f5c565ebcaa796c2794d64254e08c60cb305d48 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Sun, 4 May 2025 09:47:48 +0200 Subject: [PATCH] Set proper task-sdk limits for main The task SDK we have currently is not yet fully decoupled from the Airflow version we are going to have. It is simply not "future compatible" yet. The "true" decoupling will come when we have Airflow 3.1, for now the task-sdk we have is really tied with 3.1.* version of Airflow - and for now we should have the limits set properly for core: * Lower >= 3.1.0 -> the main version of task-sdk will only work with airflow 3.1.0 (including pre-releases) * Upper < 3.2.0 -> for now we set it to < 3.2.0 to allow any version of Task SDK 1.1.0 to be installed on any version of Airflow 3.1.* in the future. We might relax this limit before we release 3.1.0 if we consider that task-sdk is ready to be future-compatible as well. Similarly task-sdk 1.0.* is not going to be installable for 3.1.0, so we need to set the lower-binding of task-sdk for airflow-core to 1.1.0 --- airflow-core/pyproject.toml | 2 +- task-sdk/pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/airflow-core/pyproject.toml b/airflow-core/pyproject.toml index 432a8e2471e24..682e58c184818 100644 --- a/airflow-core/pyproject.toml +++ b/airflow-core/pyproject.toml @@ -135,7 +135,7 @@ dependencies = [ # Does not work with it Tracked in https://github.com/fsspec/universal_pathlib/issues/276 "universal-pathlib>=0.2.2,!=0.2.4", "uuid6>=2024.7.10", - "apache-airflow-task-sdk<1.2.0,>=1.0.0", + "apache-airflow-task-sdk<1.2.0,>=1.1.0", # pre-installed providers "apache-airflow-providers-common-compat>=1.6.0", "apache-airflow-providers-common-io>=1.5.3", diff --git a/task-sdk/pyproject.toml b/task-sdk/pyproject.toml index 2a715467e2d60..7c228198df3f3 100644 --- a/task-sdk/pyproject.toml +++ b/task-sdk/pyproject.toml @@ -46,7 +46,7 @@ classifiers = [ ] dependencies = [ - "apache-airflow-core<=3.1.0,>=3.0.0", + "apache-airflow-core<3.2.0,>=3.1.0", "aiologic>=0.14.0", "attrs>=24.2.0, !=25.2.0", "fsspec>=2023.10.0",