Skip to content

Commit

Permalink
Make conditional Pydantic version override for tests based on Airflow…
Browse files Browse the repository at this point in the history
… versions
  • Loading branch information
pankajkoti committed May 3, 2024
1 parent c193080 commit b0339d0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit b0339d0

Please sign in to comment.