From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 KLe7N5LyAmZ3fQAA62LTzQ:P1 (envelope-from ) for ; Tue, 26 Mar 2024 17:06:43 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id KLe7N5LyAmZ3fQAA62LTzQ (envelope-from ) for ; Tue, 26 Mar 2024 17:06:43 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=GFeZOzDW; 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=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711469202; 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=DBZ22Pwq27UX5og+vGsdPslI1R6HoMDy/vW0W64Lqdw=; b=dHUWnb2csERDUVdOkWSHXmIjRFrEuOTVrbUzY2kOanD0IZ19U9/AJNd9kGOi3nDHoce/2a OogIsr037jd6daVT2h5VQDj+KUUfwis879v4F3FPx7wFEhvp9H4IqafYw+TuXEfIbw3eQv 4QYrQRvGdT1ttvjsPpyF/0KYK53AjjQJSQNQp06VL93sV96Y8EkkWkEdanzU8tUIwtxKyu ILjjUd3qvvcwSSx6wO6eyx8Kw03QRcgedQWORqenqjkKyHKsl+sDzX9Ocubj7yWja9br3b qtuArqD1xB3RHx8uKmxDOqUYD9IMTLMlTXfiu319N81MFWdJqQaBzGnZIQ5s7w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=GFeZOzDW; 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=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711469202; a=rsa-sha256; cv=none; b=gBm/1QFMV8lPcB0XNLia6RNN5/M7xk6S5kUmd/35yALbZCLBhg7kPqvpsDBXU9Kjs3olOa YwbtuohbGhbySnQWX+BM81fcSWNw6c11LNcASwBRJD5XYiJXpKtTg5qNIhS3/COsUHkvf4 R3i7yI+V6AvRylPBWeSuX8KEKKNfDKE8KGsz6ZzEZNrRJRrojVWL1GuL9tbF74e/FY0z42 0hSi6usSjPjsuErthDLV5XAe7hw4WevTZ19k+sDDJauHK2qNjuzX3oPXWrtLTElKF0r99E +CqFwODB7AG3CUq483jjmCzr6QTC7yzBTvyQfVqWNUXS17CK2IhLytPN2khoHw== 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 ABBEB74307 for ; Tue, 26 Mar 2024 17:06:42 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rp9Je-00011L-Oy; Tue, 26 Mar 2024 12:06:22 -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 1rp9JS-0000vH-1D for bug-guix@gnu.org; Tue, 26 Mar 2024 12:06:14 -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 1rp9JL-00068x-C2 for bug-guix@gnu.org; Tue, 26 Mar 2024 12:06:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rp9JK-0003gr-FZ for bug-guix@gnu.org; Tue, 26 Mar 2024 12:06: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 26 Mar 2024 16:06: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: Tanguy LE CARROUR 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.171146910414055 (code B ref 69997); Tue, 26 Mar 2024 16:06:02 +0000 Received: (at 69997) by debbugs.gnu.org; 26 Mar 2024 16:05:04 +0000 Received: from localhost ([127.0.0.1]:34670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rp9IN-0003ed-Pl for submit@debbugs.gnu.org; Tue, 26 Mar 2024 12:05:04 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:38980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rp9IJ-0003dj-23 for 69997@debbugs.gnu.org; Tue, 26 Mar 2024 12:05:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=DBZ22Pwq27UX5og+vGsdPslI1R6HoMDy/vW0W64Lqdw=; b=GFeZOzDWJhA9xAw0FV2bOgL0565C42UvMIh3dCymANvT6NWM5T7DDxsF UqZgZSu0qlQS5WNTqt7szAS2ZaUBIZfQHNv9DRbWq7qk+qHP0V4Tv7O8C IkSFGxItUyW1n1DZad04NmfBR4R3tijNfjTGroZH7QCCkpU8R41TMS3tg E=; X-IronPort-AV: E=Sophos;i="6.07,156,1708383600"; d="scan'208";a="158584611" Received: from eduroam-115027.grenet.fr (HELO ribbon) ([130.190.115.27]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2024 17:04:54 +0100 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <171143965734.4362.8405481724513962855@bioneland.org> (Tanguy LE CARROUR's message of "Tue, 26 Mar 2024 08:54:17 +0100") References: <877chqtvsk.fsf@inria.fr> <171143965734.4362.8405481724513962855@bioneland.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Septidi 7 Germinal an 232 de la =?UTF-8?Q?R=C3=A9volution, ?= jour du Bouleau X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 26 Mar 2024 17:04:52 +0100 Message-ID: <87o7b1ou6z.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: ABBEB74307 X-Spam-Score: -2.46 X-Migadu-Spam-Score: -2.46 X-Migadu-Scanner: mx10.migadu.com X-TUID: JMibgliqGPZd Hello! Tanguy LE CARROUR skribis: > I=E2=80=99m pretty sure you know everything that I=E2=80=99m about to wri= te, but better > say it out loud=E2=80=A6 Nope, I know nothing (I=E2=80=99ve just been told about using =E2=80=98pypr= oject.toml=E2=80=99 and it seemed to kinda make sense. :-)) > For a "standard modern" project managed with Poetry, the Python source > package contains `PKG-INFO` and `pyproject.toml ` that both contain > the run time dependencies. The wheel package only contains `METADATA` that > lists the dependencies. The source only contains a `pyproject.toml`. > To make the installed package as small as possible, tests files and > uncompiled assets are not (should not be) included. > From a Guix stand point, it=E2=80=99s better to build from source to be a= ble to > run the test suite. > > For the `python-pypugjs` you used as an example, we build from source, > so I guess the question does not arise. If we were to use the packages > available on PyPI, what I said above is *NOT* confirmed =F0=9F=98=B1: > - wheel (`.whl`) only contains `METADATA` with the dependencies; **BUT** > - source (`.tar.gz`) contains `PKG-INFO` (without dependency information), > `pyproject.toml` (with dep=E2=80=99) and `setup.py` (also with dep=E2= =80=99). > > =E2=80=A6 "fun" fact, the information in `pyproject.toml` are **NOT** the= same as > the one in `setup.py`!? =F0=9F=A4=AF `pyproject.toml` says that `nose` is= a run time > dependency (which it is not), but `setup.py` properly lists it in `tests_= require`. Oh my, such a mess. > So, my answer would be: do not import from PyPI! Yes, I know, it=E2=80=99= s 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 more! = =F0=9F=98=85 It does! But then I mean, we could offer, say, =E2=80=98guix import upstream https:/= /=E2=80=A6=E2=80=99, and that thing could parse =E2=80=98setup.py=E2=80=99 or similar to produce= a package definition from that. Maybe that=E2=80=99s what you had in mind: import straight from upstream rather than via PyPI? Thanks, Ludo=E2=80=99.