From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 6JYmAK8CA2bf2QAAqHPOHw:P1 (envelope-from ) for ; Tue, 26 Mar 2024 18:15:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 6JYmAK8CA2bf2QAAqHPOHw (envelope-from ) for ; Tue, 26 Mar 2024 18:15:27 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bioneland.org header.s=20230804 header.b=UYzA8jku; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711473326; 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: content-transfer-encoding:content-transfer-encoding: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=6Rvm1MpHFPiDnEOEpMApJ7ZXTfG0Wv52wMZ/1nacFyE=; b=udrkig4GzYsAkdNERyb6L/cBwgWZujK8lYcdmKXP/YirYRRkf/o8kQXNg7pBXxotVm7WiF OcNBFaMGRXBhASNR2p69CsIWWiLgwX07kwD7ubwAxW7JxP0mWdX9rs77gBqhsebABCkGNA iD76P2QqYXMRnLNBzHMRXPgA8PEvK1eFiNg2RRen2YMk4+aeqfL5LmxI2EXgaG7vWQ0HJd Z3d4eLSzfo6/eEyynOrBBbGq7TeJIoCe5vHk61apzoFdRztyV6FELw41N435cXtXcnfc30 nlEpY1yXP2dGRdhU2omNhGRFHDsAAu5aOd6pq3Hoc6QX9mK80afWNrr6KO88tQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bioneland.org header.s=20230804 header.b=UYzA8jku; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711473326; a=rsa-sha256; cv=none; b=G3rdJeS/895Z6l+SQ+a1Zp5ceNpNPRuF/uKbcD5Og8X+tDkXxW9AJvvQJLTvLwQNr5REVj 169u6wRGjycGcAmyQbj20X87sP3eg2oj3RwKglercowQGpW/DXfZREfW3kkXr7Hr/G1cmq I9+OLNf2kNcxpkAJEOz/AnA2UX8ebJ1T48dhmXdAcNMWgDwEQIYsihCdMWcw/1Pun1Dy5W 33VCAWWMlcJb9jU82TiHW8vuASc9lJL5QmULfkBRRNCem6ONxV97XeKnBWHwFfhhENSwsl RUkGY367YdPfDnUt5WXKGS04AnhwE4jdQ6XgQZbwkOOtqiEkCS9g2pt2RpV4xA== 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 BF3F67CF80 for ; Tue, 26 Mar 2024 18:15:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpAOH-0002jz-Mp; Tue, 26 Mar 2024 13:15:15 -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 1rpAO7-0002gI-0j for bug-guix@gnu.org; Tue, 26 Mar 2024 13:15:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rpAO6-00081K-JH for bug-guix@gnu.org; Tue, 26 Mar 2024 13:15:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rpAO6-0000tp-4X for bug-guix@gnu.org; Tue, 26 Mar 2024 13:15:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#69997: Should =?UTF-8?Q?=E2=80=98guix?= import =?UTF-8?Q?pypi=E2=80=99?= get dependencies from pyproject files? Resent-From: Tanguy LE CARROUR Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 26 Mar 2024 17:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69997 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Sharlatan Hellseher , Munyoki Kilyungi , Lars-Dominik Braun , jgart , Marius Bakke , 69997@debbugs.gnu.org Received: via spool by 69997-submit@debbugs.gnu.org id=B69997.17114732623352 (code B ref 69997); Tue, 26 Mar 2024 17:15:02 +0000 Received: (at 69997) by debbugs.gnu.org; 26 Mar 2024 17:14:22 +0000 Received: from localhost ([127.0.0.1]:34875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpANR-0000rz-VH for submit@debbugs.gnu.org; Tue, 26 Mar 2024 13:14:22 -0400 Received: from smtp-190a.mail.infomaniak.ch ([2001:1600:4:17::190a]:36305) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpANN-0000ra-CL for 69997@debbugs.gnu.org; Tue, 26 Mar 2024 13:14:20 -0400 Received: from smtp-3-0001.mail.infomaniak.ch (smtp-3-0001.mail.infomaniak.ch [10.4.36.108]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4V3xH72MH5zW7Y; Tue, 26 Mar 2024 18:14:11 +0100 (CET) Received: from unknown by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4V3xH65VV9zMpnPg; Tue, 26 Mar 2024 18:14:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bioneland.org; s=20230804; t=1711473251; bh=6Rvm1MpHFPiDnEOEpMApJ7ZXTfG0Wv52wMZ/1nacFyE=; h=References:Subject:From:Cc:To:In-Reply-To:Date:From; b=UYzA8jkusHrsDMaRI5G/59XncLaX9FdGW35j/lri2jWfjCWpP3Gy3Uuc9/eopkNWB JuGFXfFli82N5sasKEfrgHHgmq/3lbhrnHIBkxTK/Qx4oQIMqHBg5+lvqtGy5MnIdr ZH7urPDWM6FtTDuW5mFx4+10YG/Zv0qflYyKRU6hBERPOtt26LeOEJvxeJBFkKLPir jaNiaB+sZksssDaL6zjG6SGGFf7+Yoh+7Ca30Jay1GzzDiujXWAxMOfPz+qk/d+c95 Z0egaLYwlMPNIpBV6Hmj11YIhbBGB4EbmIAJS/koB/HU+p0HkOA25Yr7Wa8wvzjIi2 +tcRRU/1C36cA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable References: <877chqtvsk.fsf@inria.fr> <171143965734.4362.8405481724513962855@bioneland.org> <87o7b1ou6z.fsf@inria.fr> <171147212395.13452.3553266600176809571@bioneland.org> From: Tanguy LE CARROUR In-Reply-To: <171147212395.13452.3553266600176809571@bioneland.org> Date: Tue, 26 Mar 2024 18:14:10 +0100 Message-ID: <171147325018.15415.4526491903307851998@bioneland.org> User-Agent: alot/0.10 X-Infomaniak-Routing: alpha X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: BF3F67CF80 X-Spam-Score: -2.89 X-Migadu-Spam-Score: -2.89 X-Migadu-Scanner: mx10.migadu.com X-TUID: NGj8UhRJi/t7 Hi, Quoting Tanguy LE CARROUR (2024-03-26 17:55:23) > Quoting Ludovic Court=C3=A8s (2024-03-26 17:04:52) > > Tanguy LE CARROUR skribis: > > > So, my answer would be: do not import from PyPI! Yes, I know, it=E2= =80=99s radical! =F0=9F=98=85 > > > But if you have to, rely on the wheel=E2=80=99s `METADATA` file. > > > > > > I hope this make sense. =E2=80=A6 I=E2=80=99m not really sure any mor= e! =F0=9F=98=85 > >=20 > > It does! > >=20 > > But then I mean, we could offer, say, =E2=80=98guix import upstream htt= ps://=E2=80=A6=E2=80=99, > > and that thing could parse =E2=80=98setup.py=E2=80=99 or similar to pro= duce a package > > definition from that. > [=E2=80=A6] > So I would say=E2=80=A6 let=E2=80=99s wait and see what the others think.= In the > meantime, I=E2=80=99ll have to dive deeper in the PEP and the actual impo= rter > code. According to PEP 427 [1] a.k.a. Binary distribution format [2], if you go for packaged/PyPI then we should go for `METADATA`. [1]: https://peps.python.org/pep-0427/ [2]: https://packaging.python.org/en/latest/specifications/binary-distribut= ion-format/#the-dist-info-directory But, as stated earlier, we should build from source, to make sure we can run the test suite. Active projects should slowly migrate to PEP 517 [3] `pyproject.toml`. But, this is not a solution! =F0=9F=98=B1 This is actuall= y yet another problem! =F0=9F=98=B5 [3]: https://peps.python.org/pep-0517/ Each build system relies on it=E2=80=99s own file organization. For instanc= e, Poetry looks for a `[tool.poetry.dependencies]` section in the file. So the importer should be "build system aware", which leads us to=E2=80=A6 `guix i= mport poetry URL`!? Not really generic any more! =F0=9F=98=9E I guess we should sleep on it=E2=80=A6 --=20 Tanguy