From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yDUNHUWuemPkqgAAbAwnHQ (envelope-from ) for ; Sun, 20 Nov 2022 23:46:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qCcyHEWuemN0BQEAG6o9tA (envelope-from ) for ; Sun, 20 Nov 2022 23:46:29 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2CA6E29199 for ; Sun, 20 Nov 2022 23:46:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owt4r-0001rS-Km; Sun, 20 Nov 2022 17:46:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1owt4p-0001qu-L9 for help-guix@gnu.org; Sun, 20 Nov 2022 17:46:15 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1owt4m-00029J-Py for help-guix@gnu.org; Sun, 20 Nov 2022 17:46:15 -0500 Received: by mail-wr1-x42e.google.com with SMTP id v1so17363498wrt.11 for ; Sun, 20 Nov 2022 14:46:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=z4xN9yIgBPugyHIEAQwV5UzZh55bc4nw7hxbz7pDd2Q=; b=Vtys8QdoxulfoZj6YLNINwrSynnG2N1+iPscUK3iwUamaAlI2cO48hMury682yOmHU AqLIv+urA0cjFXuPJvA5iDlt0nD5/WCn/GY1Hd3odUx/ztEj3QGjD7OTxrCKzIfqFILO uo8M4m+W56kAxD7Cdg3bHkUXzopMkQ/TQyqIlGVX/qQ7yfdR4pEOSQQw/lJb5yjxgXze VBsW6IoobOV21vkgEoEoWUBKMkPvfCEiMHCi7mLpn2Qg+Ma5+q4mDZ/AmlRsoRZyQ3lQ dnT3+SJJmjjX8SlCobb8zZLQwuMZp7jpHG7sQ+3QYZlK9LxB87EUVVkK1Yb6TFEAjL4V vxgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=z4xN9yIgBPugyHIEAQwV5UzZh55bc4nw7hxbz7pDd2Q=; b=SuoBKcBVFTk2u2eZE6+rGcUHYXYc2yK5xdRjaLAiBmTIQ8hUBTQXCpxOmoX+EFg6y+ RkYjqsCU0YlDIO/md+pdDQfK9fdpEatCz4zZFXizhRn+ovxBE9ONJEl2N88mFLLgRjP3 hFUz/IE+I1BcoHBbcjY0wUR6nJLY2NonpGiywg03PI3SzIGt63w6PbH2N7GeTV82weaE wWliccAsVFf2/gEMg4woyTgvIaJ5mU6FbrHvx2oauD+g9ygpdaaktHK2ro05xBR0y5LS k5awNrINtTKtEM5pHhCUrfyLaga6mXP8mskjaDcscQmcj5GXUAfSQHUOubLV2HS7ogQ3 uHTA== X-Gm-Message-State: ANoB5pkmzyCXRcMs23U5nm7y6zoCGyuFY/sLuzRmPk0C7dcUcaeQtjEv eJ40sQ6pZFeYoaRkdoc02jQf6yGfIKI= X-Google-Smtp-Source: AA0mqf7s3l2ZCxtHWWfXDrtun3T7I72UCBxcIEnKoybTtdzZrOC1i7c5hhn84XO8KvcDcthboGDrOw== X-Received: by 2002:adf:d4d0:0:b0:236:50ff:9544 with SMTP id w16-20020adfd4d0000000b0023650ff9544mr95114wrk.502.1668984370959; Sun, 20 Nov 2022 14:46:10 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id k21-20020a05600c1c9500b003cfa3a12660sm28074578wms.1.2022.11.20.14.46.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Nov 2022 14:46:10 -0800 (PST) From: zimoun To: jgart , Guix Help Subject: Re: guix refresh only python-* In-Reply-To: <20221120125648.GB16339@dismail.de> References: <20221120125648.GB16339@dismail.de> Date: Sun, 20 Nov 2022 23:44:48 +0100 Message-ID: <86zgcljlen.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668984389; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=z4xN9yIgBPugyHIEAQwV5UzZh55bc4nw7hxbz7pDd2Q=; b=ZiEpvpPegEXhZNceUbMv85QynUDtLVttgeTU60PaI4gjrUq86Gzv1fm0dkNwgv+/cq4fEd GWcK6xV2T0AQEizUGYbzGJwba5mGEUKMw+zYgh2RcQZADL4BpND3E0RDQb5jJhjcCT4+m8 55bGDxmfOzIH4JYQjKTVeoRyefWZLk6VLad1+4RN1mSVfBbT0Sxa53o1Z2SKHZcbK166cl qYGjCoMAnyaaaar2yaMc+blxZZdkMh3luoGFTPas2QnB/w9c2chaWHUCA3KZTOvbyv+INj HCqvkP2LOnJvzuwDPrk5Hh4QlE4QlidN8iQMaRR/uYXNSTvnIospZL2Ocr256Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668984389; a=rsa-sha256; cv=none; b=nLHEdN71mgRuVcEBi1Ek0RZdrTztfaaKifNdPg+WG3QxdU8OclYpyErPSSzVYuuz5JfBXl 0jZrkdfC5HyREzw0VpZh1h0vlY7RuldCxba1wjSqSBUu1I5iwZHvB4BhKu+ePAt3c+e++c HOqmyvvfhqwzEKPuqBV6R9lzbQ13Tuypx39C7psGL1hdPwANMVymma3/95RTOmTDPfb7Cx EuGazSS0UtptvlM5i/hGRwDZ98t2TMmvEpiU+IeKVsgouJXKKX3Mf/QI4jqWWmPMZVdAvR TBjJPQYEr9eQIZG/HGgsV3U2b9dHFeNCWUDO/c12SlD0HcEODkkz6epEyufRsw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Vtys8Qdo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.01 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=Vtys8Qdo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2CA6E29199 X-Spam-Score: -4.01 X-Migadu-Scanner: scn1.migadu.com X-TUID: HFL6iO4dB9ZH Hi, On Sun, 20 Nov 2022 at 12:56, jgart wrote: > hi, how can I see only what python packages can be updated with guix refr= esh? guix refresh -m python-packages.scm -u where python-packages.scm is adapted from [1], copied and pasted here: --8<---------------cut here---------------start------------->8--- (use-modules (gnu packages) (guix build-system pyproject) (guix build-system python) (guix packages)) (fold-packages (lambda (pkg count) (+ 1 count)) 0 #:select? (lambda (pkg) (and (not (hidden-package? pkg)) (member (package-build-system pkg) (list pyproject-build-system python-build-system))))) --8<---------------cut here---------------end--------------->8--- Instead of (lambda (pkg count) (+ 1 count)) something like (lambda (pkg python-packages) (cons pkg python-packages)) and the =E2=80=990=E2=80=99 initial value replaced by the empty list =E2=80= =99()=E2=80=99. Here you get all the python packages. Then, you just return a manifest, something like, (manifest (map package->manifest-entry (fold-packages =E2=80=A6 ))) 1: https://yhetil.org/guix/COD5P19YLOOM.286HAM1U8M8MZ@guix-framework> Cheers, simon