Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1377209lqg; Sun, 3 Mar 2024 07:18:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV1boAOCG2h9vZxZ4OCuM/zjrAWe/v+yysGmWcjfgR68G4X9Pu6De9OHZxLoc4QUIpLMBNgrvz70Yvkh2haf1iRahbpGuDv3+OnuUtl3g== X-Google-Smtp-Source: AGHT+IGQpL5qWIdKp3pr8KZ2jcMUIJTMfBE5FqDCeiIKnpGxai2PaGBR2AY5bGlP3Y7OlKT5Om/a X-Received: by 2002:a17:906:b88f:b0:a45:2ee4:2be3 with SMTP id hb15-20020a170906b88f00b00a452ee42be3mr720713ejb.18.1709479093468; Sun, 03 Mar 2024 07:18:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709479093; cv=pass; d=google.com; s=arc-20160816; b=cZHRGU+DNh2wKEvDrZ59iedT1HcKSuawgDZ42/eZXSgojoy8EbM/N/GiIm+WQXorui dIl0O0JZbuFtB/N8rTxSh/YCi6xIKRiLTxzD+htap+8qW6sRK4n4XTCLNdSQloXEiEUZ NcOlnjciCrYjIrn77Ec5dH3Kz1BWW1wrDUaPnidkbxa4G2SstJm/mMrD/NQCV0uhdNTt XP1UFEuVKPNUwsAzVSCZTkhwrdfayDnYPuyzX6Hm95B5Sehv/8oFlZdODBdmqYLNqmVl Ljdx/BjB7qpJoffY7pc669aAhFJKDldOMA0Po5tPnHpV18AXcjQHqfIGflyYteulVeOF q+2Q== ARC-Message-Signature: i=2; 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=tppw+lgGjMZp8U83win4SSdLcazQsKVrmLJiu1b3yCQ=; fh=TBx3lPDzQeCCj1YXhOneWLzg2A8JlGMgT9fXnTNWgAo=; b=v+U0pv80Voy1fcaxig0AwEorLBCrsNwie2iKPZwx3yTZ9oUoDcBDDGEBzuVhOmIRKE ngWpXzNZaxqkoGu07IjA67RkXrVi8wfUsUNKU+jkmlrp0YSLn4JoKNTUu/MG0M6Ynr1m EYKlRRc4LDuiUp3twp0YHNttMX4APtTR9LmVpNo6vFQAfomDgVEHt0L+ui4cCwGf8qYO KviLWRjD1UOlj/noaO6xzoetovXtg5oh1oYVWf72WL5H8Al8Rd8J2Vdkvy9Q59N1fX08 2nr7Q1B9kMOc4pexX0WhJpM3Zt1+W2d0PG+DpWsTpXpAB6ezGh/1fMWD5SfmIrvAtZPl FqVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=haAhgkiu; arc=pass (i=1 spf=pass spfdomain=lwn.net dkim=pass dkdomain=lwn.net dmarc=pass fromdomain=lwn.net); spf=pass (google.com: domain of linux-kernel+bounces-89795-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89795-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lwn.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t13-20020a1709066bcd00b00a3e854a98basi3130755ejs.235.2024.03.03.07.18.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 07:18:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89795-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=haAhgkiu; arc=pass (i=1 spf=pass spfdomain=lwn.net dkim=pass dkdomain=lwn.net dmarc=pass fromdomain=lwn.net); spf=pass (google.com: domain of linux-kernel+bounces-89795-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89795-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lwn.net 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 367911F21C8B for ; Sun, 3 Mar 2024 15:18:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D3A0567C40; Sun, 3 Mar 2024 15:18:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b="haAhgkiu" 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 6028B59B64; Sun, 3 Mar 2024 15:18:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.79.88.28 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709479085; cv=none; b=XvzdJABm3FzqdM7BPSVMe34jxnFwCLdperNiIYqhOr9hnQqDdq6Uz4Es3BR1XeY3kpEx0BdWgaMMy+zplMCWz7Q75HPimKyJMrHwQXYImO4vwBlkYKRWQN79PfPoPauCFHrFEt4G0S8Yf9f0aPquB5eivzHlP3970J72k9QR6jk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709479085; c=relaxed/simple; bh=VdelDbsA2ZNySY6RHIIrxK8D2M27bvjac4Unpg8R/s8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=ooQnZcjG/+nNeOshOXZTeCLi9QKux7486OYNnzLMCFLxhCP/qK+Zw83hcCUthuL3vjMaAaLbtuyODrHYdxlXdwkp53nczcW7IBb69XgSAvTIx3S2WTxL0daHnfJJFWI/zsBCXkavsAa8qhTBYMrsd40yg0kRDWrPcXfUKfwOah8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net; spf=pass smtp.mailfrom=lwn.net; dkim=pass (2048-bit key) header.d=lwn.net header.i=@lwn.net header.b=haAhgkiu; arc=none smtp.client-ip=45.79.88.28 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lwn.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lwn.net DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 6961C418B6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1709479080; bh=tppw+lgGjMZp8U83win4SSdLcazQsKVrmLJiu1b3yCQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=haAhgkiud3Ph/pRBQhGKVz4pc7KHteynpczh/F5R5kEjSVQCPGs1bxmeqhK52tzJS 8ZJRubgY73/MVa6QrdEKfx+xcW1kd91mGO/MIX2GulZSJE6M6sU1hCWdAr1a3L5K9m XoJiJq54FhmdGLHkoAUcmNfvkVoI1QVoF1vkiQkkXSKYar28fIW0Q7y/uEQzzzaw3V smid1OiCLavssfI9xk+FM0iFxrAxZbrveAvCJsOanjRmiwKrNr/mMh00Q1tTDlk5gJ msfVosTXcd5SJYMQ27FX9lEvjRYyRN+av6ox5F3jjhweqNpjxfH9pkDTEaadEIxsIw I7dKDA2zpy2ZA== Received: from localhost (mdns.lwn.net [45.79.72.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 6961C418B6; Sun, 3 Mar 2024 15:18:00 +0000 (UTC) From: Jonathan Corbet To: Lukas Bulwahn , Mauro Carvalho Chehab , Vegard Nossum , Akira Yokosawa , Jani Nikula , Randy Dunlap , linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lukas Bulwahn Subject: Re: [PATCH v2] docs: drop the version constraints for sphinx and dependencies In-Reply-To: <20240301141800.30218-1-lukas.bulwahn@gmail.com> References: <20240301141800.30218-1-lukas.bulwahn@gmail.com> Date: Sun, 03 Mar 2024 08:17:59 -0700 Message-ID: <87jzmjz6mw.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 Lukas Bulwahn writes: > As discussed (see Links), there is some inertia to move to the recent > Sphinx versions for the doc build environment. > > As first step, drop the version constraints and the related comments. As > sphinx depends on jinja2, jinja2 is pulled in automatically. So drop that. > Then, the sphinx-pre-install script will fail though with: > > Can't get default sphinx version from ./Documentation/sphinx/requirements.txt at ./scripts/sphinx-pre-install line 305. > > The script simply expects to parse a version constraint with Sphinx in the > requirements.txt. That version is used in the script for suggesting the > virtualenv directory name. > > To suggest a virtualenv directory name, when there is no version given in > the requirements.txt, one could try to guess the version that would be > downloaded with 'pip install -r Documentation/sphinx/requirements.txt'. > However, there seems no simple way to get that version without actually > setting up the venv and running pip. So, instead, name the directory with > the fixed name 'sphinx_latest'. > > Finally update the Sphinx build documentation to reflect this directory > name change. > > Link: https://lore.kernel.org/linux-doc/874jf4m384.fsf@meer.lwn.net/ > Link: https://lore.kernel.org/linux-doc/20240226093854.47830-1-lukas.bulwahn@gmail.com/ > Reviewed-by: Akira Yokosawa > Tested-by: Vegard Nossum > Signed-off-by: Lukas Bulwahn > --- > v1 -> v2: > drop jinja2 as suggested by Vegard. > add tags from v1 review > > Documentation/doc-guide/sphinx.rst | 11 ++++++----- > Documentation/sphinx/requirements.txt | 7 ++----- > scripts/sphinx-pre-install | 19 +++---------------- > 3 files changed, 11 insertions(+), 26 deletions(-) I've applied this - thanks. jon