From f22514d9cb5e31765681d2b929bc134d20d9fffd Mon Sep 17 00:00:00 2001 From: jamshale <31809382+jamshale@users.noreply.github.com> Date: Thu, 30 Jan 2025 08:42:39 -0800 Subject: [PATCH] 0.12 LTS: Askar upgrade and fix profile unique names (#3475) * Askar upgrade and fix profile unique names Signed-off-by: jamshale * Update aries-askar to 0.4.3 Signed-off-by: jamshale --------- Signed-off-by: jamshale --- aries_cloudagent/askar/profile.py | 2 +- aries_cloudagent/askar/profile_anon.py | 2 +- poetry.lock | 28 +++++++------------------- pyproject.toml | 2 +- 4 files changed, 10 insertions(+), 24 deletions(-) diff --git a/aries_cloudagent/askar/profile.py b/aries_cloudagent/askar/profile.py index bbe9deae76..a96ac04bda 100644 --- a/aries_cloudagent/askar/profile.py +++ b/aries_cloudagent/askar/profile.py @@ -55,7 +55,7 @@ def __init__( @property def name(self) -> str: """Accessor for the profile name.""" - return self.opened.name + return self.profile_id or self.opened.name @property def store(self) -> Store: diff --git a/aries_cloudagent/askar/profile_anon.py b/aries_cloudagent/askar/profile_anon.py index 2044abeb37..2c36123c81 100644 --- a/aries_cloudagent/askar/profile_anon.py +++ b/aries_cloudagent/askar/profile_anon.py @@ -55,7 +55,7 @@ def __init__( @property def name(self) -> str: """Accessor for the profile name.""" - return self.opened.name + return self.profile_id or self.opened.name @property def store(self) -> Store: diff --git a/poetry.lock b/poetry.lock index 6659de5cf9..93b5af18b3 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. [[package]] name = "aiohttp" @@ -185,20 +185,17 @@ yaml = ["PyYAML (>=3.10)"] [[package]] name = "aries-askar" -version = "0.3.1" +version = "0.4.3" description = "" optional = true python-versions = ">=3.6.3" files = [ - {file = "aries_askar-0.3.1-py3-none-macosx_10_9_universal2.whl", hash = "sha256:efd5f7000d1934e0425c7b9738193d42f41dda09741dd3724a35e9d1aa6b3c42"}, - {file = "aries_askar-0.3.1-py3-none-manylinux2014_aarch64.whl", hash = "sha256:01541c0787460a3af0520afc904c4d72098caed4ab3d4b5bcb6bd742b4bafbf9"}, - {file = "aries_askar-0.3.1-py3-none-manylinux2014_x86_64.whl", hash = "sha256:56117089c23c4c179e9cff274e165da5fe7df01be1f39e27bd6f7daf73fe1c67"}, - {file = "aries_askar-0.3.1-py3-none-win_amd64.whl", hash = "sha256:394d71bddd320202e49e2ab3822558b7cf08ae65c92d55cf215afab4d9c3b8c1"}, + {file = "aries_askar-0.4.3-py3-none-macosx_10_9_universal2.whl", hash = "sha256:fd4073f4abc7bfe423f3a637cb0d2e5fb1b96cfd0e798ee69e26eb5b9528c3e4"}, + {file = "aries_askar-0.4.3-py3-none-manylinux2014_aarch64.whl", hash = "sha256:a787fdbf343efcdb9f26ce75ed934c2d48378cef08ae5ce69e997cba7c3f1992"}, + {file = "aries_askar-0.4.3-py3-none-manylinux2014_x86_64.whl", hash = "sha256:e21025d841c861c20dbae6201863cb1fe76b395c2eec231835bf8703356bb157"}, + {file = "aries_askar-0.4.3-py3-none-win_amd64.whl", hash = "sha256:ea25cc6bed206a8df9c55b09ebead18edcb669740d1868d884ba88699dc95f67"}, ] -[package.dependencies] -cached-property = ">=1.5,<2.0" - [[package]] name = "async-timeout" version = "4.0.3" @@ -303,17 +300,6 @@ d = ["aiohttp (>=3.7.4)", "aiohttp (>=3.7.4,!=3.9.0)"] jupyter = ["ipython (>=7.8.0)", "tokenize-rt (>=3.2.0)"] uvloop = ["uvloop (>=0.15.2)"] -[[package]] -name = "cached-property" -version = "1.5.2" -description = "A decorator for caching properties in classes." -optional = true -python-versions = "*" -files = [ - {file = "cached-property-1.5.2.tar.gz", hash = "sha256:9fa5755838eecbb2d234c3aa390bd80fbd3ac6b6869109bfc1b499f7bd89a130"}, - {file = "cached_property-1.5.2-py2.py3-none-any.whl", hash = "sha256:df4f613cf7ad9a588cc381aaf4a512d26265ecebd5eb9e1ba12f1319eb85a6a0"}, -] - [[package]] name = "cachetools" version = "5.3.3" @@ -2810,4 +2796,4 @@ indy = ["python3-indy"] [metadata] lock-version = "2.0" python-versions = "^3.9" -content-hash = "6aef813877ebf9ed3259ae2dbe0efbe2a0b7f0192a2f3881f52336c4c05c8c8b" +content-hash = "823ece87318150210181c6d4b52b1725ce2382959b6df437b3f61fe7a7c3dead" diff --git a/pyproject.toml b/pyproject.toml index 082e4c1d00..b14aa7bb31 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ did-peer-2 = "^0.1.2" did-peer-4 = "^0.1.4" # askar -aries-askar= { version = "~0.3.0", optional = true } +aries-askar= { version = "~0.4.3", optional = true } indy-credx= { version = "~1.1.1", optional = true } indy-vdr= { version = "~0.4.0", optional = true } anoncreds= { version = "0.2.0", optional = true }