From c8db92e0a40e86023815198a54877556fbbf730f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sinclert=20P=C3=A9rez?= Date: Thu, 28 Nov 2024 11:12:56 +0100 Subject: [PATCH] chore: loose pydantic 2 versions --- lib/charms/glauth_k8s/v0/ldap.py | 2 +- lib/charms/glauth_utils/v0/glauth_auxiliary.py | 2 +- requirements.txt | 2 +- tests/integration/test_charm.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/charms/glauth_k8s/v0/ldap.py b/lib/charms/glauth_k8s/v0/ldap.py index 206c3ac8..2ac1a675 100644 --- a/lib/charms/glauth_k8s/v0/ldap.py +++ b/lib/charms/glauth_k8s/v0/ldap.py @@ -157,7 +157,7 @@ def _on_ldap_requested(self, event: LdapRequestedEvent) -> None: # to 0 if you are raising the major API version LIBPATCH = 6 -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") diff --git a/lib/charms/glauth_utils/v0/glauth_auxiliary.py b/lib/charms/glauth_utils/v0/glauth_auxiliary.py index dd175b92..4ce82e1a 100644 --- a/lib/charms/glauth_utils/v0/glauth_auxiliary.py +++ b/lib/charms/glauth_utils/v0/glauth_auxiliary.py @@ -134,7 +134,7 @@ def _on_auxiliary_requested(self, event: AuxiliaryRequestedEvent) -> None: # to 0 if you are raising the major API version LIBPATCH = 1 -PYDEPS = ["pydantic~=2.5.3"] +PYDEPS = ["pydantic>=2.5.3"] DEFAULT_RELATION_NAME = "glauth-auxiliary" diff --git a/requirements.txt b/requirements.txt index 1fec3c62..8964420c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,6 +3,6 @@ Jinja2 lightkube lightkube-models ops >= 2.2.0 -pydantic ~= 2.5.3 +pydantic >= 2.5.3 SQLAlchemy tenacity ~= 8.2.3 diff --git a/tests/integration/test_charm.py b/tests/integration/test_charm.py index f66be778..61759221 100644 --- a/tests/integration/test_charm.py +++ b/tests/integration/test_charm.py @@ -54,7 +54,7 @@ async def test_build_and_deploy(ops_test: OpsTest) -> None: channel="beta", config={ "src-overwrite": json.dumps(any_charm_src_overwrite), - "python-packages": "pydantic ~= 2.0\njsonschema", + "python-packages": "pydantic >= 2.5.3\njsonschema", }, ), )