elasticsearch-py icon indicating copy to clipboard operation
elasticsearch-py copied to clipboard

elasticsearch-py 7.17 urllib3 version 2 support

Open buffer opened this issue 1 year ago • 3 comments

Hi, I am required to still run ES 7 in my environment and so I have to rely on elasticsearch-py 7.17 for my Python stuff. While upgrading requests to the latest version I noticed a urllib3 dependency conflict. It seems like elasticsearch-py 7.17 pins urllib3 version to be < 2 while requests 2.30.0 would like to install urllib3 version 2. Do you think it 's possible to modify the setup.py file so to use urllib3 version 2?

The branch 7.17 setup.py file looks like

install_requires = [
    "urllib3>=1.21.1, <2",
    "certifi",
]

and it should be modified this way

install_requires = [
    "urllib3>=1.21.1, <3",
    "certifi",
]

Thanks!

buffer avatar May 05 '23 09:05 buffer