Skip to content

Commit 7191678

Browse files
authored
Merge pull request #124 from OpenSemanticLab/dev
fix: pin prefect version
2 parents ee101c6 + 018823e commit 7191678

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

‎setup.cfg‎

Lines changed: 9 additions & 1 deletion
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 =
@@ -118,7 +124,9 @@ dev =
118124
# Add here test requirements (semicolon/line-separated)
119125
testing =
120126
pytest-asyncio
121-
prefect
127+
# inherit the capped prefect pin (<3.0); a bare "prefect" here resolved to
128+
# 3.x in CI, whose server API breaks the prefect-2.20-targeted tests
129+
%(workflow)s
122130
setuptools
123131
pytest
124132
pytest-cov

‎tests/utils/workflow_test.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
],
3535
log_prints=True,
3636
)
37-
@flow
3837
def osw_python_teams_notify_test_flow():
3938
"""Notify Microsoft Teams channel using a webhook"""
4039
return 42

0 commit comments

Comments
 (0)