From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AK/1N/+5YmM/MwAAbAwnHQ (envelope-from ) for ; Wed, 02 Nov 2022 19:42:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wEEIN/+5YmMubAAAG6o9tA (envelope-from ) for ; Wed, 02 Nov 2022 19:42:07 +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 A49BC462 for ; Wed, 2 Nov 2022 19:42:07 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqIfj-0004tZ-DH; Wed, 02 Nov 2022 14:41:07 -0400 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 1oqIfg-0004qG-2M for guix-patches@gnu.org; Wed, 02 Nov 2022 14:41:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oqIff-00045b-Pi for guix-patches@gnu.org; Wed, 02 Nov 2022 14:41:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oqIR8-00067g-JB for guix-patches@gnu.org; Wed, 02 Nov 2022 14:26:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58310] [PATCH 04/14] gnu: Add python-hatchling-bootstrap. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 02 Nov 2022 18:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58310 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Garek Dyszel , 58310@debbugs.gnu.org Cc: jgart@dismail.de, lars@6xq.net Received: via spool by 58310-submit@debbugs.gnu.org id=B58310.166741354423480 (code B ref 58310); Wed, 02 Nov 2022 18:26:02 +0000 Received: (at 58310) by debbugs.gnu.org; 2 Nov 2022 18:25:44 +0000 Received: from localhost ([127.0.0.1]:47169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqIQq-00066X-0c for submit@debbugs.gnu.org; Wed, 02 Nov 2022 14:25:44 -0400 Received: from mail-wm1-f45.google.com ([209.85.128.45]:40681) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqIQo-00066A-NQ for 58310@debbugs.gnu.org; Wed, 02 Nov 2022 14:25:43 -0400 Received: by mail-wm1-f45.google.com with SMTP id v124-20020a1cac82000000b003cf7a4ea2caso1830033wme.5 for <58310@debbugs.gnu.org>; Wed, 02 Nov 2022 11:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=/bvIcfZgQLg4fhHY8bcV2EoyqL+mVNYHo+Zph4qIykM=; b=El9nCMPP1PmX9IS2bp/yYoRshCvB3oARQhAbOkHs4LKMcUgBchoIxAVRUDi+9giGTu qS8Pk9vUDKcJfrvIvggUCALeGgvjGLODDm1hU8iB8t4s7u7ASfb2zk4v9zwoP6kod6Zw glPucC38o1Xavam8h18jGGZlYmf29SYB1Kl5m2b5+xtyEs8RxEDJ9VGLQKlvMAqBUT59 SZzUdTEHiTRneNKEPLmU2ofIfbuYgYO86qKKMjJy7xXVzne6dfcQRlRlY9MJCvoMCb0V Cr0/WgqVnaDWpy118wMmba/aioOb7RA3i9njvrOMVCaLChhOttTbZl10IMBMF2fPII83 ADBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/bvIcfZgQLg4fhHY8bcV2EoyqL+mVNYHo+Zph4qIykM=; b=0M2ZFO7XCrS0VGT5diK0WCjPWIDEY60KN+kaITOWaxL473Vxn/4kTGQzIn1JSNl8MR lxxrVRBX/PxvdezVHHDzG0F6i9FOrjfb5gYxgFC82E4ygw3nPuFvYkrTwce7sbFBnLLT F+FFLr6gjAvGNW+cbmvvMAbcbPrvSv/5UJTN02IsZPH4YYy4dIoDQEC6N2ii32peroor G8OCBy/YNvcZ+/Z7ncqPEqI49rO+gHsuItwAT25P+bbKGIt4iMDot1jpfshErszkHDRN s7woHDJO6ZLnkXHwEW9nfCWLcWwQ23NGqz+bTLuLHjjl7Isj2UvO19CdWrcRiNoMRo+A O27A== X-Gm-Message-State: ACrzQf1VZCoX1WFpygw1F2gOnYu61KMa/hPMaOo6OfLD/ME36U/2HWIM Wep669uHkkcUu+FTn5SFQGg= X-Google-Smtp-Source: AMsMyM7KqbBXHL63LfQIOCZ59DatScNL+2haPTCE+VJ2CuQnxSOE8lcsNzgNex3nMxMnwslY1qHCpQ== X-Received: by 2002:a7b:cb56:0:b0:3b3:4ad8:9e31 with SMTP id v22-20020a7bcb56000000b003b34ad89e31mr16666325wmj.87.1667413537036; Wed, 02 Nov 2022 11:25:37 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id bs14-20020a056000070e00b0023647841c5bsm13725598wrb.60.2022.11.02.11.25.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Nov 2022 11:25:36 -0700 (PDT) From: zimoun In-Reply-To: <87czb6qiah.fsf@disroot.org> References: <87h70iqji2.fsf@disroot.org> <87czb6qiah.fsf@disroot.org> Date: Wed, 02 Nov 2022 18:11:26 +0100 Message-ID: <87leotcmdd.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Guix-patches" Errors-To: guix-patches-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=1667414527; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=/bvIcfZgQLg4fhHY8bcV2EoyqL+mVNYHo+Zph4qIykM=; b=sUAYQStHhs+L2d4ZM37oiZdpuL2hr/RxKnNXKE4oa+tPzwuS9jt+gFcO1n7pQAa8RTZNTf IVJtsF3YeeBhobzuFuURHYFdeeMZDPKD68D6MDuYaruFl43Jhhqa7jPeppNaU9U04YOivZ pj7YAR6bi07f3XwMN0rnG4jkjVmqX3bpR0w/zB0VRJ874E38kz08crIV7i//tBjrx0t3CT 4mSZbuUqlyK0clrPrKmpROXq9cuEzsF2n0wi55i4lPFL8jxs+NCdgG7JzoZycaO0LcA1k/ skiKtxHr50kZLiqEO8c4kblM0Xu+1A08S6BYdDS0bgWV4wSgrbqI4ry2tBWoXA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667414527; a=rsa-sha256; cv=none; b=Hz2l4kLW7n5HJdEAyxeXGIcHO01jTtL8WeKEh1u2/AWV/CzqCKfbUzT+CxvURbBKMT4Jod 4V71w3KiegDPHl4zwP/j0CMdqeHoKI/3l62P+MCZoBUxyU0gSup1F/NfTaTTqdPxPRhzpu tNVeaRmg6rNTH/KAfVZ8sWcc5B0Pmn19Nx45ABnzkMVFnQUSMAQ4YwmtTySzNmEGPJo7yY 8qmN1XVwwib2i6SEZZj8n3qBJmdM/0AOzTa3bV3+TsVDkZW47tBh804B5I5lhLcrreglKh hlXtDLsHFCucT/fYtBdufZiEOhrvm8c5p4k+r+t6hRg6csG1ro9vAnwrbYkgtw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=El9nCMPP; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.21 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=El9nCMPP; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A49BC462 X-Spam-Score: 5.21 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4nYqZqJv85UE Hi, CC: python team On mer., 05 oct. 2022 at 13:41, Garek Dyszel via Guix-patches via wrote: > * gnu/packages/python-build.scm (python-hatchling-bootstrap): New variable. > --- > gnu/packages/python-build.scm | 63 +++++++++++++++++++++++++++++++++++ > 1 file changed, 63 insertions(+) > > diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm > index e17cde16d9..f90d23874f 100644 > --- a/gnu/packages/python-build.scm > +++ b/gnu/packages/python-build.scm > @@ -516,3 +516,66 @@ (define-public python-editables > ``editable mode''. In other words, changes to the package source will be > reflected in the package visible to Python, without needing a reinstall.") > (license license:expat))) > + > +;; This depends on packages in python-xyz.scm: > +;; python-version, python-importlib-metadata, python-pathspec, > +;; python-pluggy-1.0, and python-platformdirs. > +(define-public python-hatchling-bootstrap > + (package > + (name "python-hatchling-bootstrap") > + (version "1.10.0") > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/pypa/hatch") > + (commit (string-append "hatchling-v" version)))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > + ;;"1q25kqw71g8mjwfjz9ph0iigdqa26zzxgmqm0v0bp0z1j8rcl237" > + "1yqkwck2aihfdm9ljv5q4nygmmqyp35xwyp8lqn2f4vq9p6njq3c")))) > + ;; python-pypa-build needed for bootstrapping. > + ;; Otherwise we get a circular reference: > + ;; python-hatchling trying to build itself, without > + ;; first having hatchling installed. > + (inputs (list python-pypa-build > + python-editables > + python-importlib-metadata > + python-version > + python-packaging-next > + python-pathspec > + python-pluggy-1.0 ;TODO: Not detected by pytest? > + python-tomli > + python-platformdirs)) The issue here is that many dependencies are from the module (gnu packages python-xyz). Well, moving this python-hatchling-bootstrap and the next patch adding python-hatch to python-xyz does not look like the correct home. And dragging these dependencies to python-build neither. What could be the best solution here? Cheers, simon