Skip to content

Commit

Permalink
Remove marshmallow version restriction; update deprecated usages (apa…
Browse files Browse the repository at this point in the history
  • Loading branch information
sloria authored and karenbraganz committed Jan 13, 2025
1 parent 6697d93 commit 46a7f7d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions airflow/api_connexion/schemas/task_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ class TaskSchema(Schema):
)
depends_on_past = fields.Boolean(dump_only=True)
wait_for_downstream = fields.Boolean(dump_only=True)
retries = fields.Number(dump_only=True)
retries = fields.Integer(dump_only=True)
queue = fields.String(dump_only=True)
pool = fields.String(dump_only=True)
pool_slots = fields.Number(dump_only=True)
pool_slots = fields.Integer(dump_only=True)
execution_timeout = fields.Nested(TimeDeltaSchema, dump_only=True)
retry_delay = fields.Nested(TimeDeltaSchema, dump_only=True)
retry_exponential_backoff = fields.Boolean(dump_only=True)
priority_weight = fields.Number(dump_only=True)
priority_weight = fields.Integer(dump_only=True)
weight_rule = WeightRuleField(dump_only=True)
ui_color = ColorField(dump_only=True)
ui_fgcolor = ColorField(dump_only=True)
Expand Down
3 changes: 0 additions & 3 deletions hatch_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,6 @@
"markdown-it-py>=2.1.0",
"markupsafe>=1.1.1",
"marshmallow-oneofschema>=2.0.1",
# Marshmallow 3.24.0 introduced a breaking changes
# https://github.com/marshmallow-code/marshmallow/blob/dev/CHANGELOG.rst#3240-2025-01-06
"marshmallow==3.23.3",
"mdit-py-plugins>=0.3.0",
"methodtools>=0.4.7",
"opentelemetry-api>=1.24.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class BotoTaskSchema(Schema):
last_status = fields.String(data_key="lastStatus", required=True)
desired_status = fields.String(data_key="desiredStatus", required=True)
containers = fields.List(fields.Nested(BotoContainerSchema), required=True)
started_at = fields.Field(data_key="startedAt")
started_at = fields.Raw(data_key="startedAt")
stopped_reason = fields.String(data_key="stoppedReason")

@post_load
Expand Down

0 comments on commit 46a7f7d

Please sign in to comment.