diff --git a/charms/jimm/charmcraft.yaml b/charms/jimm/charmcraft.yaml index 69e9caa1f..aa59e3187 100644 --- a/charms/jimm/charmcraft.yaml +++ b/charms/jimm/charmcraft.yaml @@ -11,7 +11,7 @@ parts: charm-binary-python-packages: - Jinja2 >= 2.11.3 - markupsafe >= 2.0.1 - - pydantic + - pydantic == 1.10.* - cosl bases: # Ensure run-on is the same or newer than build-on diff --git a/charms/jimm/lib/charms/grafana_agent/v0/cos_agent.py b/charms/jimm/lib/charms/grafana_agent/v0/cos_agent.py index 0acaed361..9b73db82b 100644 --- a/charms/jimm/lib/charms/grafana_agent/v0/cos_agent.py +++ b/charms/jimm/lib/charms/grafana_agent/v0/cos_agent.py @@ -191,7 +191,7 @@ class _MetricsEndpointDict(TypedDict): LIBAPI = 0 LIBPATCH = 3 -PYDEPS = ["cosl", "pydantic"] +PYDEPS = ["cosl", "pydantic == 1.10.*"] DEFAULT_RELATION_NAME = "cos-agent" DEFAULT_PEER_RELATION_NAME = "peers" diff --git a/charms/jimm/requirements.txt b/charms/jimm/requirements.txt index 222ed3a3d..37cf25e8f 100644 --- a/charms/jimm/requirements.txt +++ b/charms/jimm/requirements.txt @@ -3,5 +3,5 @@ Jinja2 >= 2.11.3 ops >= 2.0.0 charmhelpers >= 0.20.22 hvac >= 0.11.0 -pydantic +pydantic == 1.10.* cosl