Skip to content

Commit 21c4043

Browse files
committed
fix(deps): widen workflow anyio pin to >=4.9,<4.14
- prefect 2.20.25 verified working on anyio 4.6.2 through 4.13.0 - anyio 4.14.0 made TaskGroup.create_task abstract, which is what breaks prefect's GatherTaskGroup subclass - the >=4.9 floor overlaps mcp>=2, so the workflow and mcp extras can now share one resolution - lock moves anyio 4.6.2.post1 -> 4.13.0, prefect stays 2.20.25
1 parent 4251a0e commit 21c4043

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

‎pyproject.toml‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@ workflow = [
7373
"prefect>=2.20.25,<3.0",
7474
# prefect 2.20.25 is the final 2.x release (no backports). Its
7575
# GatherTaskGroup subclasses anyio's TaskGroup but doesn't implement
76-
# create_task, which newer anyio 4.x made abstract (broken on 4.14,
77-
# verified good on 4.6.2); hold anyio to the last verified-good 4.6 line
78-
# so the prefect-2.x flow engine can still instantiate task groups.
79-
"anyio>=4.4.0,<4.7",
76+
# create_task, which anyio 4.14.0 promoted to an abstract method
77+
# (start_soon stopped being the abstract one). 4.13.x is the last line
78+
# where the prefect-2.x flow engine can still instantiate task groups.
79+
# The floor is 4.9 so this stays compatible with mcp>=2, see
80+
# https://github.com/OpenSemanticLab/osw-python/issues/139
81+
"anyio>=4.9,<4.14",
8082
]
8183
tutorial = ["osw[dataimport]"]
8284
all = ["osw[dataimport,DB,UI,S3,wikitext]"]

‎uv.lock‎

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)