mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-15 00:48:28 +00:00
[rh:requests] Bump minimum required version of urllib3 to 2.0.2
Authored by: bashonly
This commit is contained in:
parent
e651a53a2f
commit
9134400596
@ -51,7 +51,7 @@ default = [
|
|||||||
"mutagen",
|
"mutagen",
|
||||||
"pycryptodomex",
|
"pycryptodomex",
|
||||||
"requests>=2.32.2,<3",
|
"requests>=2.32.2,<3",
|
||||||
"urllib3>=1.26.17,<3",
|
"urllib3>=2.0.2,<3",
|
||||||
"websockets>=13.0",
|
"websockets>=13.0",
|
||||||
]
|
]
|
||||||
curl-cffi = [
|
curl-cffi = [
|
||||||
|
@ -20,9 +20,9 @@
|
|||||||
|
|
||||||
urllib3_version = tuple(int_or_none(x, default=0) for x in urllib3.__version__.split('.'))
|
urllib3_version = tuple(int_or_none(x, default=0) for x in urllib3.__version__.split('.'))
|
||||||
|
|
||||||
if urllib3_version < (1, 26, 17):
|
if urllib3_version < (2, 0, 2):
|
||||||
urllib3._yt_dlp__version = f'{urllib3.__version__} (unsupported)'
|
urllib3._yt_dlp__version = f'{urllib3.__version__} (unsupported)'
|
||||||
raise ImportError('Only urllib3 >= 1.26.17 is supported')
|
raise ImportError('Only urllib3 >= 2.0.2 is supported')
|
||||||
|
|
||||||
if requests.__build__ < 0x023202:
|
if requests.__build__ < 0x023202:
|
||||||
requests._yt_dlp__version = f'{requests.__version__} (unsupported)'
|
requests._yt_dlp__version = f'{requests.__version__} (unsupported)'
|
||||||
|
Loading…
Reference in New Issue
Block a user