From 25f00bfb264a3197ac91c41cdec15036fd8401f1 Mon Sep 17 00:00:00 2001
From: m-aciek <maciej.olko@gmail.com>
Date: Mon, 28 Mar 2022 19:05:01 +0200
Subject: [PATCH] bpo-47138: Fix documentation build by pinning Jinja version
 to 3.0.3 (GH-32111)

---
 Doc/Makefile                                                    | 2 +-
 .../next/Documentation/2022-03-28-12-39-20.bpo-47138.TEZRwC.rst | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 100644 Misc/NEWS.d/next/Documentation/2022-03-28-12-39-20.bpo-47138.TEZRwC.rst

diff --git a/Doc/Makefile b/Doc/Makefile
index 1393bcb5250..1b8cbfa479e 100644
--- a/Doc/Makefile
+++ b/Doc/Makefile
@@ -127,7 +127,7 @@ clean:
 
 venv:
 	$(PYTHON) -m venv $(VENVDIR)
-	$(VENVDIR)/bin/python3 -m pip install -U Sphinx==2.3.1 blurb docutils==0.17.1
+	$(VENVDIR)/bin/python3 -m pip install -U Sphinx==2.3.1 blurb docutils==0.17.1 Jinja2==3.0.3
 	@echo "The venv has been created in the $(VENVDIR) directory"
 
 dist:
diff --git a/Misc/NEWS.d/next/Documentation/2022-03-28-12-39-20.bpo-47138.TEZRwC.rst b/Misc/NEWS.d/next/Documentation/2022-03-28-12-39-20.bpo-47138.TEZRwC.rst
new file mode 100644
index 00000000000..aa3ed79d5e2
--- /dev/null
+++ b/Misc/NEWS.d/next/Documentation/2022-03-28-12-39-20.bpo-47138.TEZRwC.rst
@@ -0,0 +1 @@
+Pin Jinja to a version compatible with Sphinx version 2.3.1.
-- 
GitLab