From 110bab5f37c5f1739b66ee2c4a662cd2d2fdfec4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 24 Mar 2023 05:14:56 +0000 Subject: [PATCH 1/3] fix(deps): update dependency requests-cache to v0.9.8 --- poetry.lock | 83 +++++++++++++++++++++++++++++------------------------ 1 file changed, 45 insertions(+), 38 deletions(-) diff --git a/poetry.lock b/poetry.lock index 2cf50916..d9d6bfe1 100644 --- a/poetry.lock +++ b/poetry.lock @@ -12,18 +12,6 @@ files = [ {file = "alabaster-0.7.12.tar.gz", hash = "sha256:a661d72d58e6ea8a57f7a86e37d86716863ee5e92788398526d58b26a4e4dc02"}, ] -[[package]] -name = "appdirs" -version = "1.4.4" -description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." -category = "main" -optional = false -python-versions = "*" -files = [ - {file = "appdirs-1.4.4-py2.py3-none-any.whl", hash = "sha256:a841dacd6b99318a741b166adb07e19ee71a274450e68237b4650ca1055ab128"}, - {file = "appdirs-1.4.4.tar.gz", hash = "sha256:7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41"}, -] - [[package]] name = "appnope" version = "0.1.2" @@ -145,19 +133,20 @@ files = [ [[package]] name = "cattrs" -version = "1.10.0" +version = "22.2.0" description = "Composable complex class support for attrs and dataclasses." category = "main" optional = false -python-versions = ">=3.7,<4.0" +python-versions = ">=3.7" files = [ - {file = "cattrs-1.10.0-py3-none-any.whl", hash = "sha256:35dd9063244263e63bd0bd24ea61e3015b00272cead084b2c40d788b0f857c46"}, - {file = "cattrs-1.10.0.tar.gz", hash = "sha256:211800f725cdecedcbcf4c753bbd22d248312b37d130f06045434acb7d9b34e1"}, + {file = "cattrs-22.2.0-py3-none-any.whl", hash = "sha256:bc12b1f0d000b9f9bee83335887d532a1d3e99a833d1bf0882151c97d3e68c21"}, + {file = "cattrs-22.2.0.tar.gz", hash = "sha256:f0eed5642399423cf656e7b66ce92cdc5b963ecafd041d1b24d136fdde7acf6d"}, ] [package.dependencies] attrs = ">=20" -typing_extensions = {version = "*", markers = "python_version >= \"3.7\" and python_version < \"3.8\""} +exceptiongroup = {version = "*", markers = "python_version < \"3.11\""} +typing_extensions = {version = "*", markers = "python_version < \"3.8\""} [[package]] name = "certifi" @@ -369,6 +358,21 @@ files = [ {file = "dpath-2.0.6.tar.gz", hash = "sha256:5a1ddae52233fbc8ef81b15fb85073a81126bb43698d3f3a1b6aaf561a46cdc0"}, ] +[[package]] +name = "exceptiongroup" +version = "1.1.1" +description = "Backport of PEP 654 (exception groups)" +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "exceptiongroup-1.1.1-py3-none-any.whl", hash = "sha256:232c37c63e4f682982c8b6459f33a8981039e5fb8756b2074364e5055c498c9e"}, + {file = "exceptiongroup-1.1.1.tar.gz", hash = "sha256:d484c3090ba2889ae2928419117447a14daf3c1231d5e30d0aae34f354f01785"}, +] + +[package.extras] +test = ["pytest (>=6)"] + [[package]] name = "executing" version = "0.8.2" @@ -974,19 +978,22 @@ files = [ [[package]] name = "platformdirs" -version = "2.4.1" -description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." +version = "3.1.1" +description = "A small Python package for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." category = "main" -optional = true +optional = false python-versions = ">=3.7" files = [ - {file = "platformdirs-2.4.1-py3-none-any.whl", hash = "sha256:1d7385c7db91728b83efd0ca99a5afb296cab9d0ed8313a45ed8ba17967ecfca"}, - {file = "platformdirs-2.4.1.tar.gz", hash = "sha256:440633ddfebcc36264232365d7840a970e75e1018d15b4327d11f91909045fda"}, + {file = "platformdirs-3.1.1-py3-none-any.whl", hash = "sha256:e5986afb596e4bb5bde29a79ac9061aa955b94fca2399b7aaac4090860920dd8"}, + {file = "platformdirs-3.1.1.tar.gz", hash = "sha256:024996549ee88ec1a9aa99ff7f8fc819bb59e2c3477b410d90a16d32d6e707aa"}, ] +[package.dependencies] +typing-extensions = {version = ">=4.4", markers = "python_version < \"3.8\""} + [package.extras] -docs = ["Sphinx (>=4)", "furo (>=2021.7.5b38)", "proselint (>=0.10.2)", "sphinx-autodoc-typehints (>=1.12)"] -test = ["appdirs (==1.4.4)", "pytest (>=6)", "pytest-cov (>=2.7)", "pytest-mock (>=3.6)"] +docs = ["furo (>=2022.12.7)", "proselint (>=0.13)", "sphinx (>=6.1.3)", "sphinx-autodoc-typehints (>=1.22,!=1.23.4)"] +test = ["appdirs (==1.4.4)", "covdefaults (>=2.2.2)", "pytest (>=7.2.1)", "pytest-cov (>=4)", "pytest-mock (>=3.10)"] [[package]] name = "pluggy" @@ -1350,30 +1357,30 @@ use-chardet-on-py3 = ["chardet (>=3.0.2,<5)"] [[package]] name = "requests-cache" -version = "0.9.6" -description = "A transparent persistent cache for the requests library" +version = "1.0.0" +description = "A persistent cache for python requests" category = "main" optional = false python-versions = ">=3.7,<4.0" files = [ - {file = "requests-cache-0.9.6.tar.gz", hash = "sha256:b1672c99ccce9ee53b49504c9f6a6d6de5cf6a9956bda46cf7dda0a4a5fc1bb5"}, - {file = "requests_cache-0.9.6-py3-none-any.whl", hash = "sha256:7397c0effb7e824c21e3f9fca8293cad01eb40152be67e53093f5399acd2d251"}, + {file = "requests_cache-1.0.0-py3-none-any.whl", hash = "sha256:558e335bf1c0f42ecbcf1abb8e7c8e679845ee522d75d1c50b77d4fbf5434012"}, + {file = "requests_cache-1.0.0.tar.gz", hash = "sha256:162f591ed9ad0ea601cefd898770f499d473cb056466e85494299a1b0ca61cbf"}, ] [package.dependencies] -appdirs = ">=1.4.4" attrs = ">=21.2" -cattrs = ">=1.8" +cattrs = ">=22.2" +platformdirs = ">=2.5" requests = ">=2.22" url-normalize = ">=1.4" urllib3 = ">=1.25.5" [package.extras] -all = ["boto3 (>=1.15)", "botocore (>=1.18)", "itsdangerous (>=2.0)", "pymongo (>=3)", "pyyaml (>=5.4)", "redis (>=3)", "ujson (>=4.0)"] +all = ["boto3 (>=1.15)", "botocore (>=1.18)", "itsdangerous (>=2.0)", "pymongo (>=3)", "pyyaml (>=5.4)", "redis (>=3)", "ujson (>=5.4)"] bson = ["bson (>=0.5)"] -docs = ["furo (>=2021.9.8)", "linkify-it-py (>=1.0.1,<2.0.0)", "myst-parser (>=0.15.1,<0.16.0)", "sphinx (==4.3.0)", "sphinx-autodoc-typehints (>=1.11,<2.0)", "sphinx-automodapi (>=0.13,<0.15)", "sphinx-copybutton (>=0.3,<0.5)", "sphinx-inline-tabs (>=2022.1.2b11)", "sphinx-notfound-page (>=0.8)", "sphinx-panels (>=0.6,<0.7)", "sphinxcontrib-apidoc (>=0.3,<0.4)"] +docs = ["furo (>=2022.12.7,<2023.0.0)", "linkify-it-py (>=2.0)", "myst-parser (>=0.17)", "sphinx (>=5.0.2,<6.0.0)", "sphinx-autodoc-typehints (>=1.19)", "sphinx-automodapi (>=0.14)", "sphinx-copybutton (>=0.5)", "sphinx-design (>=0.2)", "sphinx-notfound-page (>=0.8)", "sphinxcontrib-apidoc (>=0.3)", "sphinxext-opengraph (>=0.6)"] dynamodb = ["boto3 (>=1.15)", "botocore (>=1.18)"] -json = ["ujson (>=4.0)"] +json = ["ujson (>=5.4)"] mongodb = ["pymongo (>=3)"] redis = ["redis (>=3)"] security = ["itsdangerous (>=2.0)"] @@ -1825,14 +1832,14 @@ files = [ [[package]] name = "typing-extensions" -version = "4.0.1" -description = "Backported and Experimental Type Hints for Python 3.6+" +version = "4.5.0" +description = "Backported and Experimental Type Hints for Python 3.7+" category = "main" optional = false -python-versions = ">=3.6" +python-versions = ">=3.7" files = [ - {file = "typing_extensions-4.0.1-py3-none-any.whl", hash = "sha256:7f001e5ac290a0c0401508864c7ec868be4e701886d5b573a9528ed3973d9d3b"}, - {file = "typing_extensions-4.0.1.tar.gz", hash = "sha256:4ca091dea149f945ec56afb48dae714f21e8692ef22a395223bcd328961b6a0e"}, + {file = "typing_extensions-4.5.0-py3-none-any.whl", hash = "sha256:fb33085c39dd998ac16d1431ebc293a8b3eedd00fd4a32de0ff79002c19511b4"}, + {file = "typing_extensions-4.5.0.tar.gz", hash = "sha256:5cb5f4a79139d699607b3ef622a1dedafa84e115ab0024e0d9c044a9479ca7cb"}, ] [[package]] From 6de24c7b48668b6e6362d2cb9301665592bf4689 Mon Sep 17 00:00:00 2001 From: "W. Augusto Andreoli" Date: Fri, 24 Mar 2023 07:49:14 +0100 Subject: [PATCH 2/3] chore: fix import --- src/nitpick/style/cache.py | 2 +- tests/test_cache.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nitpick/style/cache.py b/src/nitpick/style/cache.py index f5beb01b..25bf8860 100644 --- a/src/nitpick/style/cache.py +++ b/src/nitpick/style/cache.py @@ -5,7 +5,7 @@ from datetime import timedelta from loguru import logger -from requests_cache.cache_control import DO_NOT_CACHE, NEVER_EXPIRE +from requests_cache.policy.expiration import DO_NOT_CACHE, NEVER_EXPIRE from nitpick.enums import CachingEnum diff --git a/tests/test_cache.py b/tests/test_cache.py index 0337fc51..5b518ec6 100644 --- a/tests/test_cache.py +++ b/tests/test_cache.py @@ -3,7 +3,7 @@ import pytest from freezegun import freeze_time -from requests_cache.cache_control import DO_NOT_CACHE, NEVER_EXPIRE +from requests_cache.policy.expiration import DO_NOT_CACHE, NEVER_EXPIRE from nitpick.enums import CachingEnum from nitpick.style.cache import parse_cache_option From 7a3f78388b38d4c088c3252db838f01871a464c6 Mon Sep 17 00:00:00 2001 From: "W. Augusto Andreoli" Date: Fri, 24 Mar 2023 07:56:17 +0100 Subject: [PATCH 3/3] build(deps): pin requests-cache --- poetry.lock | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/poetry.lock b/poetry.lock index 342d9561..0890f053 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2050,4 +2050,4 @@ test = ["freezegun", "pytest", "pytest-cov", "pytest-datadir", "pytest-socket", [metadata] lock-version = "2.0" python-versions = "^3.7" -content-hash = "fd680832865ac52aa7923cc7324f520d00dc1e77adef05a808d7bf3dcc960f67" +content-hash = "13c332ed0cf12c566b1877503b2d8a7a5ba64a9c071ae9ff59f450f7a43982e5" diff --git a/pyproject.toml b/pyproject.toml index d047fe70..ab1c2297 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -103,7 +103,7 @@ sphinx = { version = "*", optional = true } sphinx_rtd_theme = { version = "*", optional = true } sphobjinv = { version = "*", optional = true } sphinx-gitref = { version = "*", optional = true } -requests-cache = ">=0.9.2" # This version introduced requests_cache.cache_control.NEVER_EXPIRE +requests-cache = ">=0.9.7" # This version uses requests_cache.policy.expiration [tool.poetry.extras] lint = ["pylint"]