Replies: 1 comment
-
I've resolved my own question ... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
To investigate, run
poetry lock
on the following pyproject.toml files:$ poetry lock
Then change fastapi version to 0.111.0:
$ poetry lock
The former (v0.110.3) has a much simpler dependency tree, and (notably, for our requirement) does not include uvloop.
The latter (v0.111.0) has significantly more dependencies included by default.
Compare the results in the lock files:
0.110.3:
vs
0.111.0:
Description
As far as I can tell from the fastapi pyproject.toml, uvicorn[standard] is an optional dependency, I've looked at the comparison between 0.110.3 and 0.111.0 (^) and the only difference is that a
standard
group was defined under [project.optional-dependencies]. However, I do not understand why this would require all these extra dependencies by default? Especially with theextras = []
flag, I would expect the optional dependencies to not be included ...This is a breaking change for us, as we have a dependency on
nest_asyncio
, which is not compatible withuvloop
.Operating System
Linux
Operating System Details
No response
FastAPI Version
0.111.0
Pydantic Version
2.7.1
Python Version
3.12.3
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions