Skip to content

Commit 4e6dbf9

Browse files
committed
feat(dependencies): Update web API dependencies in pyproject.toml and remove availability check from tests
1 parent 321ef73 commit 4e6dbf9

2 files changed

Lines changed: 4 additions & 19 deletions

File tree

datalab/tests/webapi_test.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,6 @@
3838
serialize_object_to_npz,
3939
)
4040

41-
# Check if webapi dependencies are available
42-
try:
43-
import uvicorn
44-
45-
WEBAPI_AVAILABLE = uvicorn is not None # Actually use the import
46-
except ImportError:
47-
WEBAPI_AVAILABLE = False
48-
49-
50-
pytestmark = pytest.mark.skipif(
51-
not WEBAPI_AVAILABLE, reason="Web API dependencies not installed"
52-
)
53-
5441

5542
class TestNPZSerialization:
5643
"""Tests for NPZ serialization module."""

pyproject.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ dependencies = [
5050
"PyWavelets >= 1.2, < 2.0",
5151
"psutil >= 5.8",
5252
"packaging >= 21.3",
53+
# Web API server for HTTP/JSON remote control and notebook integration
54+
"fastapi >= 0.110.0",
55+
"uvicorn[standard] >= 0.27.0",
56+
"pydantic >= 2.0",
5357
]
5458
dynamic = ["version"]
5559

@@ -65,12 +69,6 @@ datalab-tests = "datalab.tests:run"
6569
[project.optional-dependencies]
6670
qt = ["PyQt5 >= 5.15.6"]
6771
opencv = ["opencv-python-headless >= 4.8.1.78"]
68-
webapi = [
69-
# Web API server for HTTP/JSON remote control and notebook integration
70-
"fastapi >= 0.110.0",
71-
"uvicorn[standard] >= 0.27.0",
72-
"pydantic >= 2.0",
73-
]
7472
exe = [
7573
# This section is used to build the standalone executable with PyInstaller for the
7674
# official stand-alone releases of DataLab.

0 commit comments

Comments
 (0)