This is an automated email from the ASF dual-hosted git repository.
potiuk 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 8f567ec4b9a Lower-bind pydantic to 2.10.1 (#44284)
8f567ec4b9a is described below
commit 8f567ec4b9a7df548f636527a20379cc58bbe10e
Author: Jarek Potiuk <[email protected]>
AuthorDate: Fri Nov 22 11:28:25 2024 +0000
Lower-bind pydantic to 2.10.1 (#44284)
The new pydantic 2.10 release produces different output for the
OpenAPI specification for the same classes. In order to stabilize
it, we should make sure Pydantic is not less than 2.10.1.
---
airflow/api_fastapi/core_api/openapi/v1-generated.yaml | 6 +-----
airflow/ui/openapi-gen/requests/schemas.gen.ts | 2 +-
generated/provider_dependencies.json | 2 +-
hatch_build.py | 2 +-
providers/src/airflow/providers/edge/provider.yaml | 2 +-
5 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/airflow/api_fastapi/core_api/openapi/v1-generated.yaml
b/airflow/api_fastapi/core_api/openapi/v1-generated.yaml
index cdfb3843f1b..4372113060a 100644
--- a/airflow/api_fastapi/core_api/openapi/v1-generated.yaml
+++ b/airflow/api_fastapi/core_api/openapi/v1-generated.yaml
@@ -4042,8 +4042,6 @@ paths:
in: path
required: true
schema:
- enum:
- - '~'
const: '~'
type: string
title: Dag Id
@@ -4051,8 +4049,6 @@ paths:
in: path
required: true
schema:
- enum:
- - '~'
const: '~'
type: string
title: Dag Run Id
@@ -7615,7 +7611,7 @@ components:
properties:
__type:
type: string
- title: ' Type'
+ title: Type
default: TimeDelta
days:
type: integer
diff --git a/airflow/ui/openapi-gen/requests/schemas.gen.ts
b/airflow/ui/openapi-gen/requests/schemas.gen.ts
index d4272301b38..a568c1125f1 100644
--- a/airflow/ui/openapi-gen/requests/schemas.gen.ts
+++ b/airflow/ui/openapi-gen/requests/schemas.gen.ts
@@ -4331,7 +4331,7 @@ export const $TimeDelta = {
properties: {
__type: {
type: "string",
- title: " Type",
+ title: "Type",
default: "TimeDelta",
},
days: {
diff --git a/generated/provider_dependencies.json
b/generated/provider_dependencies.json
index f07f3f131f2..c23d2c27825 100644
--- a/generated/provider_dependencies.json
+++ b/generated/provider_dependencies.json
@@ -528,7 +528,7 @@
"edge": {
"deps": [
"apache-airflow>=2.10.0",
- "pydantic>=2.6.4"
+ "pydantic>=2.10.1"
],
"devel-deps": [],
"plugins": [
diff --git a/hatch_build.py b/hatch_build.py
index 8e5ea3dbad7..22627bfe94a 100644
--- a/hatch_build.py
+++ b/hatch_build.py
@@ -415,7 +415,7 @@ DEPENDENCIES = [
"pluggy>=1.5.0",
"psutil>=5.8.0",
# https://github.com/pydantic/pydantic/issues/10910
- "pydantic>=2.7.0,!=2.10.0",
+ "pydantic>=2.10.1",
"pygments>=2.0.1",
"pyjwt>=2.0.0",
"python-daemon>=3.0.0",
diff --git a/providers/src/airflow/providers/edge/provider.yaml
b/providers/src/airflow/providers/edge/provider.yaml
index 994a52def4b..96ce7f152f7 100644
--- a/providers/src/airflow/providers/edge/provider.yaml
+++ b/providers/src/airflow/providers/edge/provider.yaml
@@ -31,7 +31,7 @@ versions:
dependencies:
- apache-airflow>=2.10.0
- - pydantic>=2.6.4
+ - pydantic>=2.10.1
plugins:
- name: edge_executor