Raise minimum recommended Python version to 3.11 (#17034)
CodeQL / Analyze (actions) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Core Tests / Core tests (ubuntu-latest, 3.11) (push) Has been cancelled
Core Tests / Core tests (ubuntu-latest, 3.12) (push) Has been cancelled
Core Tests / Core tests (ubuntu-latest, 3.13) (push) Has been cancelled
Core Tests / Core tests (ubuntu-latest, 3.14) (push) Has been cancelled
Core Tests / Core tests (ubuntu-latest, 3.15) (push) Has been cancelled
Core Tests / Core tests (ubuntu-latest, pypy-3.11) (push) Has been cancelled
Core Tests / Core tests (windows-latest, 3.10) (push) Has been cancelled
Core Tests / Core tests (windows-latest, 3.11) (push) Has been cancelled
Core Tests / Core tests (windows-latest, 3.12) (push) Has been cancelled
Core Tests / Core tests (windows-latest, 3.13) (push) Has been cancelled
Core Tests / Core tests (windows-latest, 3.14) (push) Has been cancelled
Core Tests / Core tests (windows-latest, 3.15) (push) Has been cancelled
Core Tests / Core tests (windows-latest, pypy-3.11) (push) Has been cancelled
Quick Test / Core test (push) Has been cancelled
Quick Test / Code check (push) Has been cancelled
Release (master) / Publish GitHub release (push) Has been cancelled
Test and lint workflows / Check workflows (push) Has been cancelled
Test and lint workflows / Run zizmor (push) Has been cancelled
Release (master) / Publish to PyPI (push) Has been cancelled
Update wiki / Update wiki (push) Has been cancelled
Release (nightly) / Check for new commits (push) Has been cancelled
Release (nightly) / Publish GitHub release (push) Has been cancelled
Release (nightly) / Publish to PyPI (push) Has been cancelled

Ref:
- https://github.com/yt-dlp/yt-dlp/issues/16916
- https://github.com/yt-dlp/yt-dlp/issues/16917

Authored by: bashonly
This commit is contained in:
bashonly
2026-06-24 14:31:45 +00:00
committed by GitHub
parent a75ba96fa4
commit 7b03011294
+14 -1
View File
@@ -165,7 +165,7 @@ def _get_binary_name():
def _get_system_deprecation():
MIN_SUPPORTED, MIN_RECOMMENDED = (3, 10), (3, 10)
MIN_SUPPORTED, MIN_RECOMMENDED = (3, 10), (3, 11)
if sys.version_info > MIN_RECOMMENDED:
return None
@@ -176,6 +176,19 @@ def _get_system_deprecation():
if sys.version_info < MIN_SUPPORTED:
return f'Python version {major}.{minor} is no longer supported! {PYTHON_MSG}'
# Temporary until Windows builds use 3.14, which will drop support for Win8.x and 2012Server
if detect_variant() in ('win_exe', 'win_x86_exe'):
# Do not inappropriately warn for unofficial/third-party binaries
if not ORIGIN.startswith('yt-dlp/'):
return None
platform_name = platform.platform()
if any(platform_name.startswith(f'Windows-{name}') for name in ('8', '2012Server')):
return (
'Support for Windows 8.x and Windows Server 2012 has been deprecated. '
'See https://github.com/yt-dlp/yt-dlp/issues/16917 for details.\n'
'You may stop receiving updates on this version at any time!')
return None
return f'Support for Python version {major}.{minor} has been deprecated. {PYTHON_MSG}'