From a66cbe150e2cf1992c53c1f50f4e82b5b210ff16 Mon Sep 17 00:00:00 2001 From: Daniel M Date: Fri, 23 Aug 2024 13:31:35 -0600 Subject: [PATCH] fix: fakeredis tests support python 3.10 (#3550) * fix:change to py3.10 * fix:change to py3.10 --- .github/workflows/test-fakeredis.yml | 2 +- tests/fakeredis/poetry.lock | 53 +++++++++++++++++++++++++--- tests/fakeredis/pyproject.toml | 2 +- 3 files changed, 50 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-fakeredis.yml b/.github/workflows/test-fakeredis.yml index fe0937776..6d0445a4a 100644 --- a/.github/workflows/test-fakeredis.yml +++ b/.github/workflows/test-fakeredis.yml @@ -15,7 +15,7 @@ jobs: fail-fast: false matrix: PYTHON_VERSION: - - "3.12" + - "3.10" DRAGONFLY_VERSION: - "latest" tests: diff --git a/tests/fakeredis/poetry.lock b/tests/fakeredis/poetry.lock index b89456c99..6cd29475f 100644 --- a/tests/fakeredis/poetry.lock +++ b/tests/fakeredis/poetry.lock @@ -122,9 +122,26 @@ files = [ {file = "coverage-7.6.1.tar.gz", hash = "sha256:953510dfb7b12ab69d20135a0662397f077c59b1e6379a768e97c59d852ee51d"}, ] +[package.dependencies] +tomli = {version = "*", optional = true, markers = "python_full_version <= \"3.11.0a6\" and extra == \"toml\""} + [package.extras] toml = ["tomli"] +[[package]] +name = "exceptiongroup" +version = "1.2.2" +description = "Backport of PEP 654 (exception groups)" +optional = false +python-versions = ">=3.7" +files = [ + {file = "exceptiongroup-1.2.2-py3-none-any.whl", hash = "sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b"}, + {file = "exceptiongroup-1.2.2.tar.gz", hash = "sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc"}, +] + +[package.extras] +test = ["pytest (>=6)"] + [[package]] name = "fakeredis" version = "2.23.5" @@ -142,6 +159,7 @@ lupa = {version = ">=2.1,<3.0", optional = true, markers = "extra == \"lua\""} pyprobables = {version = ">=0.6,<0.7", optional = true, markers = "extra == \"bf\" or extra == \"cf\" or extra == \"probabilistic\""} redis = ">=4" sortedcontainers = ">=2,<3" +typing_extensions = {version = ">=4.7,<5.0", markers = "python_version < \"3.11\""} [package.extras] bf = ["pyprobables (>=0.6,<0.7)"] @@ -152,17 +170,18 @@ probabilistic = ["pyprobables (>=0.6,<0.7)"] [[package]] name = "hypothesis" -version = "6.111.0" +version = "6.111.1" description = "A library for property-based testing" optional = false python-versions = ">=3.8" files = [ - {file = "hypothesis-6.111.0-py3-none-any.whl", hash = "sha256:7a51f678da3719a04a3ef61cd241384dd93b49f35d7cce22833745c66ac1d507"}, - {file = "hypothesis-6.111.0.tar.gz", hash = "sha256:04d0703621d9fdd61c079a4dda07babbe7ebf6d34eee6ad9484a2af0ee721801"}, + {file = "hypothesis-6.111.1-py3-none-any.whl", hash = "sha256:9422adbac4b2104f6cf92dc6604b5c9df975efc08ffc7145ecc39bc617243835"}, + {file = "hypothesis-6.111.1.tar.gz", hash = "sha256:6ab6185a858fa692bf125c0d0a936134edc318bee01c05e407c71c9ead0b61c5"}, ] [package.dependencies] attrs = ">=22.2.0" +exceptiongroup = {version = ">=1.0.0", markers = "python_version < \"3.11\""} sortedcontainers = ">=2.1.0,<3.0.0" [package.extras] @@ -449,9 +468,11 @@ files = [ [package.dependencies] colorama = {version = "*", markers = "sys_platform == \"win32\""} +exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} iniconfig = "*" packaging = "*" pluggy = ">=0.12,<2.0" +tomli = {version = ">=1.0.0", markers = "python_version < \"3.11\""} [package.extras] testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] @@ -589,7 +610,29 @@ files = [ {file = "sortedcontainers-2.4.0.tar.gz", hash = "sha256:25caa5a06cc30b6b83d11423433f65d1f9d76c4c6a0c90e3379eaa43b9bfdb88"}, ] +[[package]] +name = "tomli" +version = "2.0.1" +description = "A lil' TOML parser" +optional = false +python-versions = ">=3.7" +files = [ + {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, + {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, +] + +[[package]] +name = "typing-extensions" +version = "4.12.2" +description = "Backported and Experimental Type Hints for Python 3.8+" +optional = false +python-versions = ">=3.8" +files = [ + {file = "typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d"}, + {file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"}, +] + [metadata] lock-version = "2.0" -python-versions = "^3.11" -content-hash = "5444f1d6f18f1a749f29990116882642e599972fa5336fb62589871ab891e558" +python-versions = "^3.10" +content-hash = "e582748d20be9487f35cdb7e99e9af1c4c1ed97500d8b83e3515eead058a7e86" diff --git a/tests/fakeredis/pyproject.toml b/tests/fakeredis/pyproject.toml index f6b1e4885..9653d9cd1 100644 --- a/tests/fakeredis/pyproject.toml +++ b/tests/fakeredis/pyproject.toml @@ -17,7 +17,7 @@ maintainers = [ ] [tool.poetry.dependencies] -python = "^3.11" +python = "^3.10" redis = ">=5" fakeredis = { version = "^2.23", extras = ["json", "bf", "cf", "lua"] } hypothesis = "^6.70"