From b0339d05e4476a5bf0f9667c1b55ceeec0b37e19 Mon Sep 17 00:00:00 2001 From: Pankaj Koti Date: Fri, 3 May 2024 19:52:11 +0530 Subject: [PATCH] Make conditional Pydantic version override for tests based on Airflow versions --- pyproject.toml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6837fe73c..2d9f9aee4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -90,9 +90,6 @@ docker = [ kubernetes = [ "apache-airflow-providers-cncf-kubernetes>=5.1.1", ] -pydantic = [ - "pydantic>=1.10.0", -] azure-container-instance = [ "apache-airflow-providers-microsoft-azure>=8.4.0", ] @@ -142,7 +139,9 @@ airflow = ["2.3", "2.4", "2.5", "2.6", "2.7", "2.8"] [tool.hatch.envs.tests.overrides] matrix.airflow.dependencies = [ - { value = "typing_extensions<4.6", if = ["2.6"] } + { value = "typing_extensions<4.6", if = ["2.6"] }, + { value = "pydantic>=1.10.0", if = ["2.7"] }, + { value = "pydantic>=1.10.0", if = ["2.8"] }, ] [tool.hatch.envs.tests.scripts]