Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6763627rdb; Fri, 15 Dec 2023 07:46:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IGO9bsuBL+wXYdYQWAz7/X9EHxf/UWoyNOmmN9N2ftCJKbbsKSmJ/1j+sf0oZCMiSit66jZ X-Received: by 2002:a50:9559:0:b0:551:ce1f:ecd with SMTP id v25-20020a509559000000b00551ce1f0ecdmr3031586eda.29.1702655175143; Fri, 15 Dec 2023 07:46:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702655175; cv=none; d=google.com; s=arc-20160816; b=zio9Sxz8ZQdtAlwNIU9Qx0XxeknqcZaULqoKIWZ4SYhzDziNH9BUh+PwuG083b5Kjm HgMI2Deg4E8q1Oc8jo4BjPl3fK3gD+WHMNgt0eeRhpQpgh2bIbmFiey5zzb647AqYTy2 t6J//htmrx3YYu5hvzhp6sm7jbJvoxV0BZ1K5nWQre3k6NJXIBMnAVLdJWxWSo7m/VtG H0VUAPKfhTFlp3nzNNoXhBwM92/plpL4vW5TqYiFwskNoeynLiAYy8YGw7gFljsot303 8umG3MdzL7hZDMRsAdIzCw7IOGyjuO3WphTwf2wVCeQdNK+2yaTX8YovxAtDyNpVhOng c32Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature:dkim-filter; bh=0z7tbYu86nQ9SX1OTqU2DL4AXEXhHB+guJ/OzNfBsgY=; fh=35mHT14Ra6lnISsGskz5H1lSSt9r9JHPPrWogVdmFIE=; b=eV5zbcCmhGDxjo2tVpGZWmtl/5+b67Lrs1CtaXBMGtg8azKilvTMtlb6EI5Pg298kF mXB/74wCW7rnytIldTokBdzk+cV8aeQvztMmWmUWzjkxVMKWFtr2BFozMLxfGTdcFRe3 qzfn8zfElT/veAer9jlkdK8ceVpi+EswY6amzjd3gzI836NgSNm0VJkj++lK4OMKeiln cWxeCQQgBPPWzmuFwtWpNgD1yf5wTvdap8nvpnnzkNXMuqTqiqtJPyW2Gk829grHUeZW /cCt7SzGBg8mNRBE/vCL+7feKh4Beac2wbViOGPHUWcBHb6E2YZb5l1VLAkzoi/4cWHD R6Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=FduCbGYA; spf=pass (google.com: domain of linux-kernel+bounces-1226-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1226-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id di25-20020a056402319900b005527cda0dcasi1444481edb.84.2023.12.15.07.46.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 07:46:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1226-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=FduCbGYA; spf=pass (google.com: domain of linux-kernel+bounces-1226-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1226-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DECDA1F2312A for ; Fri, 15 Dec 2023 15:46:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D73EC381B3; Fri, 15 Dec 2023 15:46:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b="FduCbGYA" X-Original-To: linux-kernel@vger.kernel.org Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E0FD36AF3; Fri, 15 Dec 2023 15:46:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lwn.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lwn.net Received: from localhost (unknown [IPv6:2601:280:5e00:7e19::646]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 67DD146A; Fri, 15 Dec 2023 15:36:07 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 67DD146A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1702654567; bh=0z7tbYu86nQ9SX1OTqU2DL4AXEXhHB+guJ/OzNfBsgY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=FduCbGYAwm9ZD8xBLalG4d6x8noYSA2T+QJHE4CzhwmF+Qp0vbp3IOeqom0tkJYiQ kEfm9kCetJM8xfZc5aGSkCTRWGMlJdNTgqcY6ARsS6Xg4AVV9+7bczTwjLq2PE4XUs nfww1DGPd0LWG3+0V2rqRYtaacVxdLIRk8G6CHfKCbx8FpRgdjtttmY8rOcKXOKC2L Tjgz8FQDKJVu5fhU/3OXRfo5AsXHtk5CGw6E+kZzofg8hvgJ0K3YTQNSybis+K/tc/ fYuS6HF+8eSmeN/hjmqeB82tPbUoZWU4Sh93SiQz0YjKBPhNFSm00jS+3nObPmyDJ3 QIW7lyc3F9ndw== From: Jonathan Corbet To: Akira Yokosawa , linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Mauro Carvalho Chehab , Akira Yokosawa Subject: Re: [PATCH v2] docs: Raise the minimum Sphinx requirement to 2.4.4 In-Reply-To: <50830030-dca7-4c43-bcc8-449c7cfa9fbb@gmail.com> References: <874jgs47fq.fsf@meer.lwn.net> <50830030-dca7-4c43-bcc8-449c7cfa9fbb@gmail.com> Date: Fri, 15 Dec 2023 08:36:06 -0700 Message-ID: <87sf43qxzt.fsf@meer.lwn.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Akira Yokosawa writes: > With this patch applied, I get a confusing looking warning from > "make htmldocs" on a machine where the Sphinx version is 2.4.5: > > -------- > Warning: It is recommended at least Sphinx version 3.4.3. > To upgrade Sphinx, use: > > /home/akira/sphinx-2.4.5/bin/python3 -m venv sphinx_2.4.4 > . sphinx_2.4.4/bin/activate > pip install -r ./Documentation/sphinx/requirements.txt > > If you want to exit the virtualenv, you can use: > deactivate > -------- > > Looks like we need to update requirements.txt as well so that it > installs Sphinx 3.4.3. Appended below is a fixup patch to that > effect. So I can apply this, certainly, but it makes me feel like perhaps we need to reconsider our approach a bit. It's kind of weird that we have a minimum supported version, then a semi-random "recommended" version that is still pretty old. Is there a reason to suggest to people that they should run something other than current sphinx, especially if they are updating it anyway? So our "recommended version" is really "recommended *minimum* version"? > ----8<---- > From: Akira Yokosawa > Subject: [PATCH] docs: sphinx/requirement.txt: Reflect recommended Sphinx version > > sphinx_pre_install parses the version of Sphinx in requirements.txt > and emits messages based on it. > Update requirements.txt so that it installs Sphinx 3.4.3, as well as > the examples in documentation. > > Signed-off-by: Akira Yokosawa > --- > Documentation/doc-guide/sphinx.rst | 14 +++++++------- > Documentation/sphinx/requirements.txt | 4 +++- > 2 files changed, 10 insertions(+), 8 deletions(-) > > diff --git a/Documentation/doc-guide/sphinx.rst b/Documentation/doc-guide/sphinx.rst > index 3d125fb4139d..5227a2611026 100644 > --- a/Documentation/doc-guide/sphinx.rst > +++ b/Documentation/doc-guide/sphinx.rst > @@ -48,13 +48,13 @@ or ``virtualenv``, depending on how your distribution packaged Python 3. > on the Sphinx version, it should be installed separately, > with ``pip install sphinx_rtd_theme``. > > -In summary, if you want to install Sphinx version 2.4.4, you should do:: > +In summary, if you want to install Sphinx version 3.4.3, you should do:: > > - $ virtualenv sphinx_2.4.4 > - $ . sphinx_2.4.4/bin/activate > - (sphinx_2.4.4) $ pip install -r Documentation/sphinx/requirements.txt > + $ virtualenv sphinx_3.4.3 > + $ . sphinx_3.4.3/bin/activate > + (sphinx_3.4.3) $ pip install -r Documentation/sphinx/requirements.txt Here we could take version numbers out entirely; otherwise we'll always be updating this. > -After running ``. sphinx_2.4.4/bin/activate``, the prompt will change, > +After running ``. sphinx_3.4.3/bin/activate``, the prompt will change, > in order to indicate that you're using the new environment. If you > open a new shell, you need to rerun this command to enter again at > the virtual environment before building the documentation. > @@ -118,8 +118,8 @@ command line options for your distro:: > You should run: > > sudo dnf install -y texlive-luatex85 > - /usr/bin/virtualenv sphinx_2.4.4 > - . sphinx_2.4.4/bin/activate > + /usr/bin/virtualenv sphinx_3.4.3 > + . sphinx_3.4.3/bin/activate > pip install -r Documentation/sphinx/requirements.txt > > Can't build as 1 mandatory dependency is missing at ./scripts/sphinx-pre-install line 468. > diff --git a/Documentation/sphinx/requirements.txt b/Documentation/sphinx/requirements.txt > index 335b53df35e2..89329e67e788 100644 > --- a/Documentation/sphinx/requirements.txt > +++ b/Documentation/sphinx/requirements.txt > @@ -1,3 +1,5 @@ > # jinja2>=3.1 is not compatible with Sphinx<4.0 > jinja2<3.1 > -Sphinx==2.4.4 > +# docutils>=0.18 is not compatible with 3.0 <= Sphinx < 4.0 > +docutils<0.18 > +Sphinx==3.4.3 I'd forgotten about the docutils fun. I wonder of our recommended minimum should actually be 4.0, then here we could put simply: Sphinx>4.0 ? Thanks, jon