Skip to content

Commit 88bee23

Browse files
authored
feat: declare minimum compatible version for fastapi (#216)
FastAPIBootstrapper._wrap_lifespan imports fastapi.routing._merge_lifespan_context, which first exists in 0.112.2. Every release below that fails at import of the bootstrapper module.
1 parent dd03c41 commit 88bee23

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎pyproject.toml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ free-all = [
7070
"lite-bootstrap[sentry,otl,logging,pyroscope]",
7171
]
7272
fastapi = [
73-
"fastapi",
73+
# >=0.112.2 for fastapi.routing._merge_lifespan_context, which FastAPIBootstrapper._wrap_lifespan
74+
# uses to chain teardown onto the user's lifespan. Private, so it can move without a deprecation.
75+
"fastapi>=0.112.2",
7476
]
7577
fastapi-sentry = [
7678
"lite-bootstrap[fastapi,sentry]",

0 commit comments

Comments
 (0)