diff --git a/pyproject.toml b/pyproject.toml index c6d2d3cb..5bbab13a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ dependencies = [ "jinja2>=3.1.2,<4.0.0", "lilya>=0.11.6", "loguru>=0.7.0,<0.8.0", - "pydantic>=2.9.1,<3.0.0", + "pydantic>=2.10,<3.0.0", "pydantic-settings>=2.0.0,<3.0.0", "python-multipart>=0.0.7", "python-slugify>=8.0.4,<10.0.0", @@ -103,7 +103,7 @@ testing = [ "ujson>=5.7.0,<6", "anyio[trio]>=3.6.2,<5.0.0", "brotli>=1.0.9,<2.0.0", - "edgy[postgres]>=0.21.0", + "edgy[postgres]>=0.23.3", "databasez>=0.9.7", "flask>=1.1.2,<4.0.0", "freezegun>=1.2.2,<2.0.0", diff --git a/tests/routing/test_syntax_enum.py b/tests/routing/test_syntax_enum.py index 20edf470..a20c8c8c 100644 --- a/tests/routing/test_syntax_enum.py +++ b/tests/routing/test_syntax_enum.py @@ -5,7 +5,7 @@ from esmerald import Gateway, JSONResponse, get from esmerald.testclient import create_client -pydantic_version = __version__ +pydantic_version = ".".join(__version__.split(".")[:2]) class ItemType(str, Enum): diff --git a/tests/security/oauth/test_security_oauth2_optional_desc.py b/tests/security/oauth/test_security_oauth2_optional_desc.py index 1ba97cec..901714e4 100644 --- a/tests/security/oauth/test_security_oauth2_optional_desc.py +++ b/tests/security/oauth/test_security_oauth2_optional_desc.py @@ -6,7 +6,7 @@ from esmerald.security.oauth2 import OAuth2, OAuth2PasswordRequestFormStrict from esmerald.testclient import create_client -pydantic_version = __version__ +pydantic_version = ".".join(__version__.split(".")[:2]) reusable_oauth2 = OAuth2( flows={