diff --git a/h5grove/fastapi_utils.py b/h5grove/fastapi_utils.py index e680638..e64c7b8 100644 --- a/h5grove/fastapi_utils.py +++ b/h5grove/fastapi_utils.py @@ -1,7 +1,7 @@ """Helpers for usage with `FastAPI `_""" from fastapi import APIRouter, Depends, Response, Query, Request from fastapi.routing import APIRoute -from pydantic import BaseSettings +from pydantic_settings import BaseSettings from typing import List, Optional, Union, Callable from .content import ( diff --git a/setup.cfg b/setup.cfg index 51a7fa8..451e86c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -27,6 +27,8 @@ install_requires = [options.extras_require] fastapi = fastapi + pydantic > 2 + pydantic-settings uvicorn flask = Flask diff --git a/test/conftest.py b/test/conftest.py index bbbda05..ce6c6dd 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -111,7 +111,7 @@ def subprocess_server(tmp_path_factory, request): env = os.environ.copy() env["PYTHONPATH"] = f"{str(project_root_dir)}:{env.get('PYTHONPATH', '')}" process = subprocess.Popen(cmd, env=env) - time.sleep(1) + time.sleep(5) assert process.poll() is None # Check that server is running yield SubprocessServer(served_dir=base_dir, base_url=f"http://{host}:{port}")