Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit d48b6f9

Browse files
authored
Merge pull request #13 from Indicio-tech/fix/pyproject-restrictions
fix: pyproject restrictions causing update failures
2 parents 67985c7 + 92f94f8 commit d48b6f9

File tree

7 files changed

+752
-699
lines changed

7 files changed

+752
-699
lines changed

acapy_cache_redis/v0_1/redis_base_cache.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import aioredis
1+
from redis import asyncio as aioredis
22
import json
33
import logging
44

55
from aries_cloudagent.cache.base import BaseCache, CacheKeyLock
66
from aries_cloudagent.core.profile import Profile
77
from aries_cloudagent.core.error import BaseError
88
from redis.asyncio import RedisCluster
9-
from redis.exceptions import RedisError, RedisClusterException
9+
from redis.exceptions import RedisError, RedisClusterException, ResponseError
1010
from typing import Any, Sequence, Text, Union
1111
from uuid import uuid4
1212

@@ -89,7 +89,7 @@ async def check_for_redis_cluster(self):
8989
# it will raise a MOVED error.
9090
fake_test_key = f"test_key_{str(uuid4())}"
9191
await self.redis.set(fake_test_key, b"", ex=1)
92-
except aioredis.exceptions.ResponseError as err:
92+
except ResponseError as err:
9393
if "MOVED" in str(err):
9494
self.redis = self.root_profile.inject_or(RedisCluster)
9595
if not self.redis:

int/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN curl -sSL https://install.python-poetry.org | python -
1010
RUN poetry config virtualenvs.create true; poetry config virtualenvs.in-project true
1111

1212
COPY pyproject.toml poetry.lock ./
13-
RUN poetry install --no-dev
13+
RUN poetry install --only main
1414

1515
COPY tests/ tests/
1616

int/poetry.lock

Lines changed: 39 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

int/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ pytest-asyncio = "^0.16.0"
1111
echo-agent = {git = "https://github.com/Indicio-tech/echo-agent.git", rev = "6c22a88632e5c3fb8f279e6098b7aa6a03b9929e", extras = ["client"]}
1212
acapy-client = {git = "https://github.com/Indicio-tech/acapy-client.git", rev = "0bd47af23308362db749c2671a3e7f8259855897"}
1313
httpx = "^0.15.5"
14-
aioredis = "^2.0.1"
15-
redis = "^4.1.4"
14+
redis = "^4.2.0"
1615

1716
[tool.poetry.dev-dependencies]
1817
black = "^23.7.0"

int/tests/host/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Common fixtures for testing."""
22

3-
import aioredis
3+
from redis import asyncio as aioredis
44
import asyncio
55
import hashlib
66
import logging

0 commit comments

Comments
 (0)