From 628d97b316300e2cddb7507aa9c2ab6b7a6f37db Mon Sep 17 00:00:00 2001 From: Graeme Watt Date: Tue, 10 Oct 2023 11:59:33 +0100 Subject: [PATCH] resilient_requests: replace method_whitelist * method_whitelist was deprecated in urllib3 v1.26.0 and removed in v2. * Latest opensearch-py v2.3.2 removes pin urllib3<2 so problem apparent. --- hepdata/resilient_requests.py | 2 +- hepdata/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hepdata/resilient_requests.py b/hepdata/resilient_requests.py index e3c1efb63..3a206add1 100644 --- a/hepdata/resilient_requests.py +++ b/hepdata/resilient_requests.py @@ -30,7 +30,7 @@ def send(self, request, **kwargs): retry_strategy = Retry(total=TOTAL_RETRIES, backoff_factor=4, status_forcelist=[429, 500, 502, 503, 504], - method_whitelist=["GET", "POST"]) + allowed_methods=["GET", "POST"]) adapter = TimeoutHTTPAdapter(max_retries=retry_strategy) diff --git a/hepdata/version.py b/hepdata/version.py index 8d0fbaca6..93acfe241 100644 --- a/hepdata/version.py +++ b/hepdata/version.py @@ -28,4 +28,4 @@ and parsed by ``setup.py``. """ -__version__ = "0.9.4dev20231009" +__version__ = "0.9.4dev20231010"