From 4e2eab68b050f85c2224996dc4a4618eef6c72af Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 6 Jul 2021 15:24:39 +0300 Subject: [PATCH] Update requests-cache Apparently we were stuck on an older version of requests-cache due to the fact that we were using the caret, which will never update the left-most (major) version. Upstream requests-cache is currently version 0.6.4, and there seems to have been some changes to the API. --- csv_metadata_quality/check.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/csv_metadata_quality/check.py b/csv_metadata_quality/check.py index 88c1f5c..5d9c461 100755 --- a/csv_metadata_quality/check.py +++ b/csv_metadata_quality/check.py @@ -216,7 +216,7 @@ def agrovoc(field, field_name): ) # prune old cache entries - requests_cache.core.remove_expired_responses() + requests_cache.remove_expired_responses() # Try to split multi-value field on "||" separator for value in field.split("||"): diff --git a/pyproject.toml b/pyproject.toml index 579be9a..40fa17b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ pandas = "^1.0.4" python-stdnum = "^1.13" xlrd = "^1.2.0" requests = "^2.23.0" -requests-cache = "^0.5.2" +requests-cache = "~0.6.4" pycountry = "^19.8.18" langid = "^1.1.6" colorama = "^0.4.4"