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 AH8bM7HBA2YZPQAA62LTzQ:P1 (envelope-from ) for ; Wed, 27 Mar 2024 07:50:25 +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 AH8bM7HBA2YZPQAA62LTzQ (envelope-from ) for ; Wed, 27 Mar 2024 07:50:25 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=6xq.net header.s=MBO0001 header.b=nVgIQXlW; 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=6xq.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711522225; 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=EQYeJM8EpU3YoNRu/+mnnxTRKPqw7Efl5WjZzZxCeIk=; b=FAhqq/4w/MZWmSLv8w5mAXefIEno5GbKAYHkkkxC7sHFTnMMXh6iBqmZGnY3dIRVWqRmnD PYOdYZikGZib6kguRuX+yF1NX+wz+Y6nFJu26Z8YQpaw1h7ZJjyB7xV9BHMEIV1utfY6Ja Jis1mZTIrLOunmLQYyH8JX4n6A0W4YNDqebEwk4oC+B/bBwfK+WLhaZVP0ljz89rmg1jV6 or/thzNX+Cp/S05Rl+p2XYQdzhDCspJ8ktcnOq9YiAqcyXrq0vJCuqHkNLE7uoNBxD5hHO qcYYO/BdOzWyXn0QuJNpHDOPiO4e8mOm/1Fr/97WNT0M5I12z2qpcN8GcXVk5w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=6xq.net header.s=MBO0001 header.b=nVgIQXlW; 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=6xq.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711522225; a=rsa-sha256; cv=none; b=NA2/G5lKosXQnT616tBWJRk+r4TiWqxaNol11N50OtHcYaGOak5G79c1K+1NKNrAeNWqWg p8qdNKA911hL4tx7YuuNd5JrSe00FWt7TJVWwJ/rrCV3tGSkLOQ8U5sI1CvfR14joMFc2e g0uP1ui6BucO/cYjJmD8lOwqfFl3hy0rzjhnnnpDt8EDpdGoZYNZS0H2lTHbWCQbA4b8Vk 0id7nZbNAdPaky5XMb2RuIpRvU/jSgGqOX6Yq9DyKCSlRdOlRg4bUH0cbvwEeHOo+vGu0j pcEWO+ZyW4Wxdxo8BEy7GpV2HiAd9U7CWCjejsiNriGdC3AuCo7ejztihrXW8Q== 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 923A023E61 for ; Wed, 27 Mar 2024 07:50:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpN6s-0000tb-BS; Wed, 27 Mar 2024 02:50:06 -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 1rpN6p-0000tP-Qd for bug-guix@gnu.org; Wed, 27 Mar 2024 02:50:04 -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 1rpN6p-0004bi-Gh for bug-guix@gnu.org; Wed, 27 Mar 2024 02:50:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rpN6p-0005Oo-5B for bug-guix@gnu.org; Wed, 27 Mar 2024 02:50:03 -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: Lars-Dominik Braun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 27 Mar 2024 06:50:03 +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: Tanguy Le Carrour , Munyoki Kilyungi , jgart , Marius Bakke , Sharlatan Hellseher , 69997@debbugs.gnu.org Received: via spool by 69997-submit@debbugs.gnu.org id=B69997.171152218120679 (code B ref 69997); Wed, 27 Mar 2024 06:50:03 +0000 Received: (at 69997) by debbugs.gnu.org; 27 Mar 2024 06:49:41 +0000 Received: from localhost ([127.0.0.1]:35609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpN6T-0005NT-5K for submit@debbugs.gnu.org; Wed, 27 Mar 2024 02:49:41 -0400 Received: from mout-p-102.mailbox.org ([2001:67c:2050:0:465::102]:33828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpN6P-0005N7-QV for 69997@debbugs.gnu.org; Wed, 27 Mar 2024 02:49:39 -0400 Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4V4HMt11Wbz9sXk; Wed, 27 Mar 2024 07:49:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6xq.net; s=MBO0001; t=1711522170; h=from:from: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: in-reply-to:in-reply-to:references:references; bh=EQYeJM8EpU3YoNRu/+mnnxTRKPqw7Efl5WjZzZxCeIk=; b=nVgIQXlWqhsqAEzLqR9tVQ7FIc9JbAtaubBuWcK76uMoCeNvSQPUvSExOlVxXojo/rROvV eqeiIhEcwDWJ4gSqxojsVhabM4KOC7EGF2hbAheJlbPcTrh1sPvHT0fW8EyZQO4eRMUGaB jv7BCPBl2x+6yJfZR5/Kkn/iM6GBkkf/FZ1+e8W/HlzBIdOKDCMWGYvb6vK5sp0qobfyt1 igBTjriz9VtY11Oy8rzK1HVLelenHy4hjBC9b4UwJFpi+jLyTTMsC5Yq7M6Flwai0PNCNG H/PbO6Piu0azpooVuxGd5/ulV9GuE93fRW6wadT/HegRMgx6GFXZ/T7UMKZmKQ== Date: Wed, 27 Mar 2024 07:49:27 +0100 From: Lars-Dominik Braun Message-ID: References: <877chqtvsk.fsf@inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <877chqtvsk.fsf@inria.fr> 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: 923A023E61 X-Spam-Score: -4.26 X-Migadu-Spam-Score: -4.26 X-Migadu-Scanner: mx10.migadu.com X-TUID: tJ1FhJ2U0Rwd Hey Ludo, > Should ‘guix import pypi’ attempt to get dependency information from > ‘pyproject.toml’, in addition to ‘requirements.txt’ and wheel ‘METADATA’ > as it already does? yes it should. It’s the next logical step after having a pyproject-build-system. The python-team branch (not sure whether Ricardo had time to merge it yet) adds a TOML parser to Guix as a first step. > It might be more complicated than we’d like: in some cases, that file > seems to be used as a “trampoline” to Poetry. For instance, in > python-pypugjs, the ‘requires’ bit delegates everything to Poetry: The file is always a trampoline to other build systems, like setuptools or poetry. That’s (unfortunately) by design, see the [build-system] section. > [tool.poetry.dependencies] > python = "^3.8" > Jinja2 = "^3.1.1" > Mako = "^1.1.3" > tornado = "^6.0.4" > six = "^1.15.0" > coverage = "^6.3.2" > nose = "^1.3.7" > Flask = "^2.1.1" > charset-normalizer = "^2.1.0" > flake8 = "^4.0.1" That’s unfortunate, because the specification includes a common field for dependencies: https://packaging.python.org/en/latest/specifications/pyproject-toml/#dependencies-optional-dependencies I guess we’ll have to deal with these idiosyncracies as well :( Lars