Skip to content

Commit

Permalink
chore: loose pydantic 2 versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclert-canonical authored Nov 28, 2024
1 parent 580681e commit c8db92e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/charms/glauth_k8s/v0/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion lib/charms/glauth_utils/v0/glauth_auxiliary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
),
)
Expand Down

0 comments on commit c8db92e

Please sign in to comment.