Skip to content

Commit 018823e

Browse files
committed
fix(ci): cap anyio <4.7 for prefect 2.20 compatibility
prefect 2.20.25 (final 2.x, no backport) GatherTaskGroup doesn't implement anyio's create_task, which anyio made abstract in newer 4.x. Hold anyio to the last verified-good 4.6 line so the flow engine can instantiate task groups. Verified: tox -e test now 30 passed / 21 skipped.
1 parent 74c9f5f commit 018823e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

setup.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ UI =
100100
pysimplegui
101101
workflow =
102102
prefect>=2.20.25,<3.0
103+
# prefect 2.20.25 is the final 2.x release (no backports). Its
104+
# GatherTaskGroup subclasses anyio's TaskGroup but doesn't implement
105+
# create_task, which newer anyio 4.x made abstract (broken on 4.14,
106+
# verified good on 4.6.2); hold anyio to the last verified-good 4.6 line
107+
# so the prefect-2.x flow engine can still instantiate task groups.
108+
anyio>=4.4.0,<4.7
103109
tutorial =
104110
%(dataimport)s
105111
all =

0 commit comments

Comments
 (0)