From f793f98cd678a73a4bf3b66be9df21afd323badd Mon Sep 17 00:00:00 2001 From: Maciej Olko Date: Mon, 30 Mar 2026 10:21:41 +0200 Subject: [PATCH 1/3] Add standard-imghdr for compatibility with Python 3.11+ --- Doc/requirements.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/requirements.txt b/Doc/requirements.txt index c6f768f82ed12a..14723a038aad04 100644 --- a/Doc/requirements.txt +++ b/Doc/requirements.txt @@ -10,6 +10,8 @@ sphinx==3.4.3 docutils==0.17.1 # Jinja version is pinned to a version compatible with Sphinx version <4.5. jinja2==3.0.3 +# Sphinx 3.4.3 uses imghdr which was removed from stdlib in Python 3.11 +standard-imghdr==3.13.0; python_version>3.10 blurb From 1dd6cd55dbce2de9dfa7c129c2c44da0a9dad878 Mon Sep 17 00:00:00 2001 From: Maciej Olko Date: Mon, 30 Mar 2026 10:24:27 +0200 Subject: [PATCH 2/3] Fix syntax for Python version condition in requirements --- Doc/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/requirements.txt b/Doc/requirements.txt index 14723a038aad04..a07ce667f4788e 100644 --- a/Doc/requirements.txt +++ b/Doc/requirements.txt @@ -11,7 +11,7 @@ docutils==0.17.1 # Jinja version is pinned to a version compatible with Sphinx version <4.5. jinja2==3.0.3 # Sphinx 3.4.3 uses imghdr which was removed from stdlib in Python 3.11 -standard-imghdr==3.13.0; python_version>3.10 +standard-imghdr==3.13.0; python_version>'3.10' blurb From 5d52bb6bac31e43ef776c62bd59253db30d45e13 Mon Sep 17 00:00:00 2001 From: Maciej Olko Date: Wed, 1 Apr 2026 10:08:46 +0200 Subject: [PATCH 3/3] Update standard-imghdr version condition for Python 3.13 --- Doc/requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/requirements.txt b/Doc/requirements.txt index a07ce667f4788e..835ef1706697f2 100644 --- a/Doc/requirements.txt +++ b/Doc/requirements.txt @@ -10,8 +10,8 @@ sphinx==3.4.3 docutils==0.17.1 # Jinja version is pinned to a version compatible with Sphinx version <4.5. jinja2==3.0.3 -# Sphinx 3.4.3 uses imghdr which was removed from stdlib in Python 3.11 -standard-imghdr==3.13.0; python_version>'3.10' +# Sphinx 3.4.3 uses imghdr which was removed from stdlib in Python 3.13 +standard-imghdr==3.13.0; python_version>'3.12' blurb