From 0a4d684517d8e8d7b5f4104b6566e417bc17781a Mon Sep 17 00:00:00 2001 From: Jo Booth Date: Mon, 16 Dec 2024 16:28:47 -0500 Subject: [PATCH] chore: LEAP-1700: bump pyredis and fakeredis --- poetry.lock | 52 +++++++++++++++++++++++++++++++++----------------- pyproject.toml | 4 ++-- 2 files changed, 37 insertions(+), 19 deletions(-) diff --git a/poetry.lock b/poetry.lock index 83ea851df632..2ec99e1c0e01 100644 --- a/poetry.lock +++ b/poetry.lock @@ -75,6 +75,17 @@ typing-extensions = {version = ">=4", markers = "python_version < \"3.11\""} [package.extras] tests = ["mypy (>=0.800)", "pytest", "pytest-asyncio"] +[[package]] +name = "async-timeout" +version = "5.0.1" +description = "Timeout context manager for asyncio programs" +optional = false +python-versions = ">=3.8" +files = [ + {file = "async_timeout-5.0.1-py3-none-any.whl", hash = "sha256:39e3809566ff85354557ec2398b55e096c8364bacac9405a7a1fa429e77fe76c"}, + {file = "async_timeout-5.0.1.tar.gz", hash = "sha256:d9321a7a3d5a6a5e187e824d2fa0793ce379a202935782d555d6e9d2735677d3"}, +] + [[package]] name = "attr" version = "0.3.1" @@ -1064,23 +1075,26 @@ typing-extensions = "*" [[package]] name = "fakeredis" -version = "1.5.0" -description = "Fake implementation of redis API for testing purposes." +version = "2.26.1" +description = "Python implementation of redis API, can be used for testing purposes." optional = false -python-versions = ">=3.5" +python-versions = "<4.0,>=3.7" files = [ - {file = "fakeredis-1.5.0-py3-none-any.whl", hash = "sha256:e0416e4941cecd3089b0d901e60c8dc3c944f6384f5e29e2261c0d3c5fa99669"}, - {file = "fakeredis-1.5.0.tar.gz", hash = "sha256:1ac0cef767c37f51718874a33afb5413e69d132988cb6a80c6e6dbeddf8c7623"}, + {file = "fakeredis-2.26.1-py3-none-any.whl", hash = "sha256:68a5615d7ef2529094d6958677e30a6d30d544e203a5ab852985c19d7ad57e32"}, + {file = "fakeredis-2.26.1.tar.gz", hash = "sha256:69f4daafe763c8014a6dbf44a17559c46643c95447b3594b3975251a171b806d"}, ] [package.dependencies] -redis = "<3.6.0" -six = ">=1.12" -sortedcontainers = "*" +redis = {version = ">=4.3", markers = "python_full_version > \"3.8.0\""} +sortedcontainers = ">=2,<3" +typing-extensions = {version = ">=4.7,<5.0", markers = "python_version < \"3.11\""} [package.extras] -aioredis = ["aioredis"] -lua = ["lupa"] +bf = ["pyprobables (>=0.6,<0.7)"] +cf = ["pyprobables (>=0.6,<0.7)"] +json = ["jsonpath-ng (>=1.6,<2.0)"] +lua = ["lupa (>=2.1,<3.0)"] +probabilistic = ["pyprobables (>=0.6,<0.7)"] [[package]] name = "filelock" @@ -3531,17 +3545,21 @@ md = ["cmarkgfm (>=0.8.0)"] [[package]] name = "redis" -version = "3.5.3" -description = "Python client for Redis key-value store" +version = "5.2.1" +description = "Python client for Redis database and key-value store" optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +python-versions = ">=3.8" files = [ - {file = "redis-3.5.3-py2.py3-none-any.whl", hash = "sha256:432b788c4530cfe16d8d943a09d40ca6c16149727e4afe8c2c9d5580c59d9f24"}, - {file = "redis-3.5.3.tar.gz", hash = "sha256:0e7e0cfca8660dea8b7d5cd8c4f6c5e29e11f31158c0b0ae91a397f00e5a05a2"}, + {file = "redis-5.2.1-py3-none-any.whl", hash = "sha256:ee7e1056b9aea0f04c6c2ed59452947f34c4940ee025f5dd83e6a6418b6989e4"}, + {file = "redis-5.2.1.tar.gz", hash = "sha256:16f2e22dff21d5125e8481515e386711a34cbec50f0e44413dd7d9c060a54e0f"}, ] +[package.dependencies] +async-timeout = {version = ">=4.0.3", markers = "python_full_version < \"3.11.3\""} + [package.extras] -hiredis = ["hiredis (>=0.1.3)"] +hiredis = ["hiredis (>=3.0.0)"] +ocsp = ["cryptography (>=36.0.1)", "pyopenssl (==23.2.1)", "requests (>=2.31.0)"] [[package]] name = "referencing" @@ -4615,4 +4633,4 @@ uwsgi = ["pyuwsgi", "uwsgitop"] [metadata] lock-version = "2.0" python-versions = ">=3.10,<4" -content-hash = "5124c308584e6f9d7493d37f6d471947f30ab4eaedb1b13c3c6ac9a71c3eaccd" +content-hash = "c3656998ba6d9776676dc2f99551f05dd0227ac0f1eb0905a34a15528ad3af04" diff --git a/pyproject.toml b/pyproject.toml index b1e374e588cb..f25f5352791a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -189,7 +189,7 @@ ujson = ">=3.0.0" xmljson = "0.2.1" colorama = ">=0.4.4" pyboxen = ">=1.3.0" -redis = "~=3.5" +redis = "~=5.2.1" sentry-sdk = ">=2.16.0" launchdarkly-server-sdk = "8.2.1" python-json-logger = "2.0.4" @@ -211,7 +211,7 @@ pytest-cov = "2.12.1" pytest-django = "4.1.0" pytest-mock = "1.10.3" tavern = "2.3.0" -fakeredis = "1.5.0" +fakeredis = "~=2.26.1" pytest-env = "0.6.2" responses = "0.13.0" pytest-xdist = "~=2.5.0"