File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
5542class TestNPZSerialization :
5643 """Tests for NPZ serialization module."""
Original file line number Diff line number Diff 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]
5458dynamic = [" version" ]
5559
@@ -65,12 +69,6 @@ datalab-tests = "datalab.tests:run"
6569[project .optional-dependencies ]
6670qt = [" PyQt5 >= 5.15.6" ]
6771opencv = [" 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- ]
7472exe = [
7573 # This section is used to build the standalone executable with PyInstaller for the
7674 # official stand-alone releases of DataLab.
You can’t perform that action at this time.
0 commit comments