Skip to content

Commit 586bb56

Browse files
committed
Refactor dependencies: move FastAPI, Pydantic, Uvicorn, HTTPX to optional dependencies and add Boto3 to dev-dependencies
1 parent 896c359 commit 586bb56

1 file changed

Lines changed: 18 additions & 15 deletions

File tree

pyproject.toml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,6 @@ dependencies = [
2020
# Requires pandas >= 1.3.0 for features like enhanced I/O support and typing improvements
2121
"pandas>=1.3.0,<3.0.0",
2222

23-
# Requires FastAPI >= 0.70.0 for lifecycle events and bug fixes
24-
"fastapi>=0.70.0,<1.0.0",
25-
26-
# Requires Pydantic >= 1.10.0 for compatibility with FastAPI and enhanced validation
27-
"pydantic>=1.10.0,<3.0.0",
28-
29-
# Requires Uvicorn >= 0.18.0 for HTTP/3 support and updated ASGI server capabilities
30-
"uvicorn>=0.18.0,<1.0.0",
31-
32-
# Requires HTTPX >= 0.20.0 for HTTP/2 support and performance improvements
33-
"httpx>=0.20.0,<1.0.0",
34-
35-
# Requires Boto3 >= 1.20.0 for features like S3 Object Lambda support
36-
"boto3>=1.20.0,<2.0.0",
37-
3823
# Requires Tqdm >= 4.60.0 for asynchronous iterator support and other improvements
3924
"tqdm>=4.60.0,<5.0.0",
4025

@@ -72,6 +57,21 @@ keywords = [
7257
"personalization",
7358
]
7459

60+
[project.optional-dependencies]
61+
serving = [
62+
# Requires FastAPI >= 0.70.0 for lifecycle events and bug fixes
63+
"fastapi>=0.70.0,<1.0.0",
64+
65+
# Requires Pydantic >= 1.10.0 for compatibility with FastAPI and enhanced validation
66+
"pydantic>=1.10.0,<3.0.0",
67+
68+
# Requires Uvicorn >= 0.18.0 for HTTP/3 support and updated ASGI server capabilities
69+
"uvicorn>=0.18.0,<1.0.0",
70+
71+
# Requires HTTPX >= 0.20.0 for HTTP/2 support and performance improvements
72+
"httpx>=0.20.0,<1.0.0",
73+
]
74+
7575
[project.urls]
7676
homepage = "https://github.com/myui/rtrec"
7777
repository = "https://github.com/myui/rtrec"
@@ -88,6 +88,9 @@ dev-dependencies = [
8888

8989
# Requires Streamlit >= 1.10.0 for session state improvements
9090
"streamlit>=1.10.0,<2.0.0",
91+
92+
# Requires Boto3 >= 1.20.0 for features like S3 Object Lambda support
93+
"boto3>=1.20.0,<2.0.0",
9194
]
9295

9396
[tool.hatch.metadata]

0 commit comments

Comments
 (0)