chore(docker): run on Python 3.12 - #176
Merged
Merged
Conversation
yt-dlp 2026.8.19 raised its recommended interpreter to Python 3.11
(update.py: `MIN_SUPPORTED, MIN_RECOMMENDED = (3, 10), (3, 11)`), so every
`!yt` / `!yts` now prints
Deprecated Feature: Support for Python version 3.10 has been deprecated.
Please update to Python 3.11 or above
`YoutubeDL.deprecated_feature()` writes this straight to stderr and honours
neither `quiet` nor `no_warnings`, and URLInfo builds a fresh `YoutubeDL`
per call so yt-dlp's once-per-process guard never kicks in - the line
repeats on every lookup. The next yt-dlp bump of `MIN_SUPPORTED` to 3.11
would break the YouTube path outright.
Move the image (and the lint/type/format toolchain) to Python 3.12, the
newest interpreter every pinned dependency still ships wheels for
(pillow 10.2.0 / lxml 5.1.0 have no cp313 wheels). No operator config
change - this is a patch bump.
- Dockerfile: python:3.10-{,slim-}bookworm -> 3.12, refreshed digests
- pyproject.toml: requires-python >=3.12, classifier, ruff target-version,
mypy python_version
- .github/workflows/lint.yml: CI matrix 3.10 -> 3.12
- README.md: stated requirement
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Running
!yt/!ytsprints a yt-dlp deprecation notice:yt-dlp
2026.8.19raised its recommended interpreter to 3.11:YoutubeDL.deprecated_feature()writes the message straight to stderr and honours neitherquietnorno_warnings(both already set inURLInfo.get_url_youtube_info). Because a freshYoutubeDLis built per call, yt-dlp's once-per-process guard never applies — the line repeats on every lookup (and every retry inget_first_valid_entry).The image currently runs
python:3.10-bookworm/python:3.10-slim-bookworm. 3.10 is stillMIN_SUPPORTED, so!ytsworks today, but the next yt-dlp bump ofMIN_SUPPORTEDto 3.11 would break the YouTube path outright.Change
Move to Python 3.12 — the newest interpreter every pinned dependency still ships wheels for (
pillow==10.2.0/lxml==5.1.0have no cp313 wheels).Dockerfile:python:3.10-{,slim-}bookworm→3.12, digests refreshed to the current multi-arch indexespyproject.toml:requires-python = ">=3.12",3.12classifier, rufftarget-version = "py312", mypypython_version = "3.12".github/workflows/lint.yml: CI matrix3.10→3.12README.md: stated requirementdistutils,imp,asynchat, …) is present insrc/No operator config change —
VERSIONbumped1.8.25→1.8.26as a patch. If #173-line geoip PR lands first and also claims1.8.26, this needs a rebase bump to1.8.27.🤖 Generated with Claude Code