From 930515f183f114ae9209cfd51b0762599a48be7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sinclert=20P=C3=A9rez?= Date: Thu, 28 Nov 2024 14:46:38 +0100 Subject: [PATCH 1/2] chore: loose pydantic 2 versions --- lib/charms/glauth_k8s/v0/ldap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/charms/glauth_k8s/v0/ldap.py b/lib/charms/glauth_k8s/v0/ldap.py index 206c3ac8..6e495780 100644 --- a/lib/charms/glauth_k8s/v0/ldap.py +++ b/lib/charms/glauth_k8s/v0/ldap.py @@ -155,9 +155,9 @@ def _on_ldap_requested(self, event: LdapRequestedEvent) -> None: # Increment this PATCH version before using `charmcraft publish-lib` or reset # to 0 if you are raising the major API version -LIBPATCH = 6 +LIBPATCH = 7 -PYDEPS = ["pydantic~=2.5.3"] +PYDEPS = ["pydantic>=2.5.3"] DEFAULT_RELATION_NAME = "ldap" BIND_ACCOUNT_SECRET_LABEL_TEMPLATE = Template("relation-$relation_id-bind-account-secret") From d0cf4d75210ff49cb57410693d0524c7cce3f5df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sinclert=20P=C3=A9rez?= Date: Thu, 28 Nov 2024 14:47:20 +0100 Subject: [PATCH 2/2] chore: run tox fmt command --- src/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database.py b/src/database.py index aa84e455..897be64d 100644 --- a/src/database.py +++ b/src/database.py @@ -55,7 +55,7 @@ def __enter__(self) -> "Operation": def __exit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> None: if exc_type: logger.error( - f"The database operation failed. The exception " f"{exc_type} raised: {exc_val}" + f"The database operation failed. The exception {exc_type} raised: {exc_val}" ) self._session.rollback() else: