Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1914046rbb; Tue, 27 Feb 2024 05:26:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW66K/VFjbT5iSGRmF1V6TzNZyjN2eYj03zLqvX7MTOHmdAuZDQwxrHa54x5s6ruIN1I84FCWQEt67hbFHLS48dKoB5iIigcpslKCXg6w== X-Google-Smtp-Source: AGHT+IGJq49jl5r7qvgU1fBhtjl37Be10VfcNM41lOlGvpTS2bZzuy7PyGU22Ky8EpYpeM/wfQ2S X-Received: by 2002:a1f:cac7:0:b0:4d1:3f59:5c79 with SMTP id a190-20020a1fcac7000000b004d13f595c79mr5706344vkg.15.1709040382161; Tue, 27 Feb 2024 05:26:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709040382; cv=pass; d=google.com; s=arc-20160816; b=mypP/6lo+NIX/rtdrOUOCsQCsl29lEmNdCa8G0nVTESeCTIha46TqO9eUL3mhvAJOA Eof3SXPZvfGwW0RYlKodaPurPlJXrA8yuOplKdFwuQ/5T0P2j2D9kys8anh2y7xU1OkZ 2lArby+aELk5Yw5wvSlKLaY1ziCHyVgkTAfSTukUZZqHAuPWWQadBkP8oxGMsSR+iaBb bSWPVfDvYFYUFdULMFMQnRYYxtV5E+tfTPWqY0adHCeRDKcUldbjiEGcOjRz58SBzQYH HIhnHIsDlNXzUMqwQ27sDP4v9Yt/mne8S51sK5HxLOWn12KpzdQL+uOzzKsG8wHp6cE8 NSKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=7mfy+8kAD4Sg5cY1crfDT7qIqsKPJZTTBHdCAQaHu3Q=; fh=S5rU6sxo3ubNdi2j/TKC62bI0rsQgUeYr0R8HGIFEmQ=; b=CnxPLSBAEYVzlpN38BY1lkXtHedvZVvIg1Gwj2OSeV8AMNliG0rFFCpk3B06OMWWk6 hgyZ68e7eS132et9Waok1Vxlq/V7bc/yCLHiss+WV8GAB/90ZI/XUcYw/bQYk3JpP5ix ZIfvBKpm5PqCo/0SYeDvEiT5+xXFiihvtqdt3eeUH0OA+RIrCqvOMmoeoyC/8yOOSKR2 3pgmBuqREnOBDXD3o1222Y3SpGk6zq6Kr3/e8prCbBNB4IJjEImF/nWKCigq9mewwo8V NL9FfzNO4NN1lnbks079jAiA+M5nOV9GyaGc31RIBXDVEgqDgDNT6qqqUosKOZnrcbnf JAog==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=P41mkqlZ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-83310-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83310-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g19-20020ac870d3000000b0042e70186acbsi7079820qtp.260.2024.02.27.05.26.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 05:26:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83310-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=P41mkqlZ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-83310-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83310-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 033291C21C6D for ; Tue, 27 Feb 2024 13:25:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C946013B2AD; Tue, 27 Feb 2024 13:25:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="P41mkqlZ" Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6244E54FA5; Tue, 27 Feb 2024 13:25:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709040318; cv=none; b=uv0GMVAYRD9h9pC5V4w1PyP6UfA/dIR95/vCW0gfaAo6P3pGvsoWulmiT7fvS1SlWSI1k0nSmAQjowmpd4iF8LCjt308scCD4ajNinVLpx1RTN+poI3NMlZNOfgM0ioI03W64sfj8POrlNXTmNU/Qg/tVw+fCpYt6KrjvOK44nE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709040318; c=relaxed/simple; bh=5sj9NXTrAoUjaPMj/9h4zOUnoupcAA5GHb0+0GioHCY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=n6Sd4d4UhDpLJy6/4L6CjQY9bQfLl/Ii86INS2xAH0jreYSPFNb4lbSJyXpNDde5uVLIl496SzT5ij4YyGA1R0LGk/FqwIHjZ7KIChqo2nQClB5cTUAfFGFsagqqTzHVwhMidzveyCogRtjISFj1+OL3lynp89gn2Oc38x7z3+0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=P41mkqlZ; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a3d5e77cfbeso757832666b.0; Tue, 27 Feb 2024 05:25:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709040314; x=1709645114; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7mfy+8kAD4Sg5cY1crfDT7qIqsKPJZTTBHdCAQaHu3Q=; b=P41mkqlZ+inwX5x4hn86zkOs1SUlx8S2XkeEtvxHHC7CES/72E6qUlIrV2/d4jxvhu nfT73dPMEZLcIw2B3kQeQzBvAB2mRQ8PJvULYL+g9uU/fv9/gLEA0MSI+PRQAuh9wSGM hc9p4vUu7UvDREh0MFvXuh1iRe+xG4LL6gX1s9UseUFyC0tqCKT5ZmmzUW4Y0LFh/GeQ qkF3ZKfYMB8kpaS0MXH99SUGadNimYccD+VzRKSm5BLtrfPT9Mubl/qmbZh5IyFhGhSn AKFMr72EGY/IF3xvG4/Y/ea5dLqKjMNimhZyuEsiYz2uPsRGI20cCC4Ct6dB9cppZGhg ojvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709040314; x=1709645114; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7mfy+8kAD4Sg5cY1crfDT7qIqsKPJZTTBHdCAQaHu3Q=; b=RZoI8uhjF0f8tn3nC6b7TEFOP/r3VRrQK9ynWfNDTY4I3vtZc9PUR4fIWsWMlQob34 MKmOPb3p1XGqs1vCDIXMApB+tEnMej2BWFxaI8vS8XPMe9OZsNx0QIsQtBSYuvqh2pSl QElF1B2R+t81z7m86ut0YGQXCLdPLkaZsZ8i2bA768EoSDCPpGRzj281N7BIDnXgdox4 sSNWwrBxs5hMeI/sryK9sIjeLmsSL1o+tg/DRHf46ANM20CAd0nUua34eVef4i4EXHGW bnD96T6qkjm/xinbE83OKT7C/TAlt4z/F8VcHrUTPCdpQgfC/tTl9ORgDZ5amK7Hwllj 0MVA== X-Forwarded-Encrypted: i=1; AJvYcCXiRugcD8T6ep/VQWVczvlzoBa3uy9Bs5gYQWW2u8VwIF4ZU5P7T+xTnFkuW8TqOUKk4FDiTaDJfEtGTV+A0e42Ttd5qqhPaj6a X-Gm-Message-State: AOJu0YzKopR3r3XVa+wl0xbwa/nA+Wgper/Rh+6K+jpf/8/rYHlhqQNF npOqAyAqijfYNXzMfDb7wA0zN4uwzVp98FM23jEFViOP6vnm/WDac3lZmu1BHSYsPHfC1MdK4ig HOYQwjOieGo4pliQ6SyuQ950hPqE= X-Received: by 2002:a17:906:2417:b0:a3e:ec63:8fa9 with SMTP id z23-20020a170906241700b00a3eec638fa9mr9324108eja.16.1709040314372; Tue, 27 Feb 2024 05:25:14 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240227131410.35269-1-lukas.bulwahn@gmail.com> In-Reply-To: <20240227131410.35269-1-lukas.bulwahn@gmail.com> From: Lukas Bulwahn Date: Tue, 27 Feb 2024 14:25:03 +0100 Message-ID: Subject: Re: [PATCH] docs: drop the version constraints for sphinx and dependencies To: Jonathan Corbet , Mauro Carvalho Chehab , Vegard Nossum , Akira Yokosawa , Jani Nikula , Randy Dunlap , linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 27, 2024 at 2:14=E2=80=AFPM Lukas Bulwahn wrote: > > 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. > Then, the sphinx-pre-install script will fail though with: > > Can't get default sphinx version from ./Documentation/sphinx/requiremen= ts.txt at ./scripts/sphinx-pre-install line 305. > > The script simply expects to parse a version constraint with Sphinx in th= e > 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.bulw= ahn@gmail.com/ > > Signed-off-by: Lukas Bulwahn Oops, I was a bit quick on sending this out, I wanted to add those remarks for the patch discussion: This change seems to work for my setup, but I have really only dipped my toes into the waters of this sphinx-pre-install script. I only dropped the version constraints, but possibly one can even drop some of the packages in the requirements.txt, as they are pulled in automatically by Sphinx dependencies. So, I am happy to get your feedback, but I am well aware about its potential to be improved and the lack of my deep knowledge about the script. I hope, though, you can test it in your setup and confirm if it works as expected and then we can discuss the details (e.g., naming). Lukas