Skip to content

Commit 85bff31

Browse files
committed
refactor: move async dependencies from optional to direct dependencies
Based on dependency analysis, adding starlette, uvicorn, and uvicorn-worker as direct dependencies only increases installation size by ~816KB (3.5%). This minimal impact makes it reasonable to include them directly, simplifying installation for users who need async functionality while maintaining Python 3.8+ compatibility constraints.
1 parent 58deaf1 commit 85bff31

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

pyproject.toml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,14 @@ dependencies = [
3030
"cloudevents>=1.2.0,<=1.11.0", # Must support python 3.7
3131
"Werkzeug>=0.14,<4.0.0",
3232
"httpx>=0.24.1",
33+
"starlette>=0.37.0,<1.0.0; python_version>='3.8'",
34+
"uvicorn>=0.18.0,<1.0.0; python_version>='3.8'",
35+
"uvicorn-worker>=0.2.0,<1.0.0; python_version>='3.8'",
3336
]
3437

3538
[project.urls]
3639
Homepage = "https://github.com/googlecloudplatform/functions-framework-python"
3740

38-
[project.optional-dependencies]
39-
async = [
40-
"starlette>=0.37.0,<1.0.0; python_version>='3.8'",
41-
"uvicorn>=0.18.0,<1.0.0; python_version>='3.8'",
42-
"uvicorn-worker>=0.2.0,<1.0.0; python_version>='3.8'"
43-
]
44-
4541
[project.scripts]
4642
ff = "functions_framework._cli:_cli"
4743
functions-framework = "functions_framework._cli:_cli"

0 commit comments

Comments
 (0)