CI: Run some tests with the latest development versions of Docker SDK for Python, requests, and urllib3 (#902)

* Run some tests with the latest development versions of Docker SDK for Python, requests, and urllib3.

* Use LooseVersion instead of StrictVersion to parse urllib3 versions.
This commit is contained in:
Felix Fontein
2024-06-29 18:57:08 +02:00
committed by GitHub
parent 165571f5cf
commit 81cabbf697
9 changed files with 73 additions and 11 deletions
@@ -15,7 +15,7 @@ __metaclass__ = type
https://github.com/kennethreitz/requests/pull/799
"""
from ansible_collections.community.docker.plugins.module_utils.version import StrictVersion
from ansible_collections.community.docker.plugins.module_utils.version import LooseVersion
from .._import_helper import HTTPAdapter, urllib3
from .basehttpadapter import BaseHTTPAdapter
@@ -66,4 +66,4 @@ class SSLHTTPAdapter(BaseHTTPAdapter):
return False
if urllib_ver == 'dev':
return True
return StrictVersion(urllib_ver) > StrictVersion('1.5')
return LooseVersion(urllib_ver) > LooseVersion('1.5')