From 4a11c4091adb83a1d66cd72c8ff8e2303014416e Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Thu, 10 Oct 2024 18:36:15 +0100 Subject: [PATCH] Simplify `Version.requirements` --- build_docs.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/build_docs.py b/build_docs.py index 6541070..ffae5be 100755 --- a/build_docs.py +++ b/build_docs.py @@ -110,10 +110,8 @@ def requirements(self): """ if self.name == "3.5": return ["jieba", "blurb", "sphinx==1.8.4", "jinja2<3.1", "docutils<=0.17.1"] - if self.name in ("3.7", "3.6", "2.7"): + if self.name in {"3.7", "3.6", "2.7"}: return ["jieba", "blurb", "sphinx==2.3.1", "jinja2<3.1", "docutils<=0.17.1"] - if self.name == ("3.8", "3.9"): - return ["jieba", "blurb", "sphinx==2.4.4", "jinja2<3.1", "docutils<=0.17.1"] return [ "jieba", # To improve zh search.