From 0ede397acaac0fed2b7d06d22929c918f6b64d33 Mon Sep 17 00:00:00 2001 From: Ihor Herasymenko Date: Tue, 16 Apr 2024 14:54:12 -0400 Subject: [PATCH] Add support for urllib3 v2 Signed-off-by: Ihor Herasymenko --- CHANGELOG.md | 1 + setup.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 59634bc78..467434828 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## [Unreleased] ### Added +- Added support for urllib3 2+ in Python 3.10+ ([#719](https://github.com/opensearch-project/opensearch-py/pull/719)) - Added support for Python 3.12 ([#717](https://github.com/opensearch-project/opensearch-py/pull/717)) - Added service time metrics ([#716](https://github.com/opensearch-project/opensearch-py/pull/716)) - Added `search_pipeline` APIs and `notifications` plugin APIs ([#724](https://github.com/opensearch-project/opensearch-py/pull/724)) diff --git a/setup.py b/setup.py index 8198b3648..dac7904c7 100644 --- a/setup.py +++ b/setup.py @@ -54,7 +54,8 @@ if package == MODULE_DIR or package.startswith(MODULE_DIR + ".") ] install_requires = [ - "urllib3>=1.26.18, <2", + 'urllib3>=1.26.18,<1.27 ; python_version < "3.10"', + 'urllib3>=1.26.18,!=2.2.0,<3 ; python_version >= "3.10"', "requests>=2.4.0, <3.0.0", "six", "python-dateutil",