GNU bug report logs - #69997
Should ‘guix import pypi’ get dependencies from pyproject files?

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Ludovic Courtès <ludovic.courtes@HIDDEN>; dated Mon, 25 Mar 2024 16:16:05 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 69997 <at> debbugs.gnu.org:


Received: (at 69997) by debbugs.gnu.org; 28 Mar 2024 18:10:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 28 14:10:08 2024
Received: from localhost ([127.0.0.1]:41109 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rpuCW-0002B7-86
	for submit <at> debbugs.gnu.org; Thu, 28 Mar 2024 14:10:08 -0400
Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:33500)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludovic.courtes@HIDDEN>) id 1rpuCS-0002AQ-9z
 for 69997 <at> debbugs.gnu.org; Thu, 28 Mar 2024 14:10:06 -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=3/SNHcMnJx6C4m1IYiJq8pZK5SRZQHCUdk9jF7Qc1R4=;
 b=Vw4r3Ww/46uk52XZDapp8utiSx1RDOC4jnQaQQO4DvQnugNKJuVZnepb
 D/DWO5gIZWtHXOcj7kxMbwyH88+zQfNaYFlKE4q0mRBrLMCTaCE3FE9Gc
 qus27BE9aY6iTZihFlSa9F+lVP8RtXCCnqSUtj3ZtHCZFm07nPskCSXHb U=;
Authentication-Results: mail3-relais-sop.national.inria.fr;
 dkim=none (message not signed) header.i=none;
 spf=SoftFail smtp.mailfrom=ludovic.courtes@HIDDEN;
 dmarc=fail (p=none dis=none) d=inria.fr
X-IronPort-AV: E=Sophos;i="6.07,162,1708383600"; d="scan'208";a="83372674"
Received: from unknown (HELO ribbon) ([89.207.171.88])
 by mail3-relais-sop.national.inria.fr with
 ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2024 19:09:51 +0100
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludovic.courtes@HIDDEN>
To: Tanguy LE CARROUR <tanguy@HIDDEN>
Subject: Re: bug#69997: Should =?utf-8?Q?=E2=80=98guix?= import
 =?utf-8?Q?pypi=E2=80=99?= get dependencies from pyproject files?
In-Reply-To: <171147212395.13452.3553266600176809571@HIDDEN> (Tanguy LE
 CARROUR's message of "Tue, 26 Mar 2024 17:55:23 +0100")
References: <877chqtvsk.fsf@HIDDEN>
 <171143965734.4362.8405481724513962855@HIDDEN>
 <87o7b1ou6z.fsf@HIDDEN>
 <171147212395.13452.3553266600176809571@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: Nonidi 9 Germinal an 232 de la =?utf-8?Q?R=C3=A9volu?=
 =?utf-8?Q?tion=2C?= jour de l'Aulne
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: Thu, 28 Mar 2024 19:09:49 +0100
Message-ID: <87msqikz2q.fsf@HIDDEN>
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-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 69997
Cc: Sharlatan Hellseher <sharlatanus@HIDDEN>,
 Munyoki Kilyungi <me@HIDDEN>, Lars-Dominik Braun <lars@HIDDEN>,
 jgart <jgart@HIDDEN>, Marius Bakke <marius@HIDDEN>, 69997 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,

Tanguy LE CARROUR <tanguy@HIDDEN> skribis:

> Quoting Ludovic Court=C3=A8s (2024-03-26 17:04:52)

[...]

>> But then I mean, we could offer, say, =E2=80=98guix import upstream http=
s://=E2=80=A6=E2=80=99,
>> and that thing could parse =E2=80=98setup.py=E2=80=99 or similar to prod=
uce a package
>> definition from that.
>
> I=E2=80=99m not against a good-old-generic-solution=C2=AE, but this one m=
ight be
> a bit=E2=80=A6 too generic. It contains no mention to Python, so the next=
 logical step
> would be `guix import URL`. Not that I would not like it, though! =F0=9F=
=98=81

Well, this has been on my mind for a long time.  Such a tool could
provide at least a useful package skeleton even for software using CMake
or Autotools.

> 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.

Looks like consensus among you Pythonistas has yet to be reached
regarding whether =E2=80=98pyproject.toml=E2=80=99 data would be a useful a=
ddition.  :-)

We=E2=80=99ll see!

Ludo=E2=80=99.

PS: I hear more and more long-time Python developers dismayed by the sad
    state of packaging and code evolution in Python.  In Guile land, we
    say: refugees welcome!  Come discover a great language and a great
    community (together with their own set of problems).




Information forwarded to bug-guix@HIDDEN:
bug#69997; Package guix. Full text available.

Message received at 69997 <at> debbugs.gnu.org:


Received: (at 69997) by debbugs.gnu.org; 27 Mar 2024 06:49:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 27 02:49:41 2024
Received: from localhost ([127.0.0.1]:35609 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rpN6T-0005NT-5K
	for submit <at> 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 <lars@HIDDEN>) id 1rpN6P-0005N7-QV
 for 69997 <at> 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 <lars@HIDDEN>
To: Ludovic =?iso-8859-1?Q?Court=E8s?= <ludovic.courtes@HIDDEN>
Subject: Re: bug#69997: Should =?utf-8?B?4oCYZ3Vp?=
 =?utf-8?Q?x_import_pypi=E2=80=99?= get dependencies from pyproject files?
Message-ID: <ZgPBd4TjMRz8q6lq@HIDDEN>
References: <877chqtvsk.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <877chqtvsk.fsf@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 69997
Cc: Tanguy Le Carrour <tanguy@HIDDEN>,
 Munyoki Kilyungi <me@HIDDEN>, jgart <jgart@HIDDEN>,
 Marius Bakke <marius@HIDDEN>, Sharlatan Hellseher <sharlatanus@HIDDEN>,
 69997 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

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





Information forwarded to bug-guix@HIDDEN:
bug#69997; Package guix. Full text available.

Message received at 69997 <at> debbugs.gnu.org:


Received: (at 69997) by debbugs.gnu.org; 26 Mar 2024 17:14:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 26 13:14:22 2024
Received: from localhost ([127.0.0.1]:34875 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rpANR-0000rz-VH
	for submit <at> 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 <tanguy@HIDDEN>) id 1rpANN-0000ra-CL
 for 69997 <at> 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@HIDDEN>
 <171143965734.4362.8405481724513962855@HIDDEN>
 <87o7b1ou6z.fsf@HIDDEN>
 <171147212395.13452.3553266600176809571@HIDDEN>
Subject: Re: bug#69997: Should =?utf-8?q?=E2=80=98guix_import_pypi=E2=80=99?=
 get dependencies from pyproject files?
From: Tanguy LE CARROUR <tanguy@HIDDEN>
To: Ludovic =?utf-8?q?Court=C3=A8s?= <ludovic.courtes@HIDDEN>
In-Reply-To: <171147212395.13452.3553266600176809571@HIDDEN>
Date: Tue, 26 Mar 2024 18:14:10 +0100
Message-ID: <171147325018.15415.4526491903307851998@HIDDEN>
User-Agent: alot/0.10
X-Infomaniak-Routing: alpha
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 69997
Cc: Sharlatan Hellseher <sharlatanus@HIDDEN>,
 Munyoki Kilyungi <me@HIDDEN>, Lars-Dominik Braun <lars@HIDDEN>,
 jgart <jgart@HIDDEN>, Marius Bakke <marius@HIDDEN>, 69997 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

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 <tanguy@HIDDEN> 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




Information forwarded to bug-guix@HIDDEN:
bug#69997; Package guix. Full text available.

Message received at 69997 <at> debbugs.gnu.org:


Received: (at 69997) by debbugs.gnu.org; 26 Mar 2024 16:55:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 26 12:55:37 2024
Received: from localhost ([127.0.0.1]:34815 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rpA5J-0005mY-46
	for submit <at> debbugs.gnu.org; Tue, 26 Mar 2024 12:55:37 -0400
Received: from smtp-1908.mail.infomaniak.ch ([2001:1600:4:17::1908]:59459)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tanguy@HIDDEN>) id 1rpA5E-0005lu-PQ
 for 69997 <at> debbugs.gnu.org; Tue, 26 Mar 2024 12:55:34 -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 4V3wsT2rD3zYxw;
 Tue, 26 Mar 2024 17:55:25 +0100 (CET)
Received: from unknown by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA
 id 4V3wsS4XZDzMpnPl; Tue, 26 Mar 2024 17:55:24 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bioneland.org;
 s=20230804; t=1711472125;
 bh=lRGdHJVUAM5ntWp4HS4IH1MYtLKupir4lV3jjlCiSio=;
 h=References:Subject:From:Cc:To:In-Reply-To:Date:From;
 b=IAdXgdeM4JmVVdttNBjUs19Vz6FGEDXVg9/y+B9EvvLKL9vxQZiTlAkuasOLqpZew
 iaILv88Z6+zLMkNzSorid61SBOfLBC7wk/uLtotczWGra8bb6gkIIN22KzLbE2VBTu
 330sssu0k3MOJ88evCEmLJD4uRE8p7dsMPMMS4VDhqG5UjCeecRx4aF5zTUFxtZhVn
 +CJJz3LayPNxKBsstZc6e4DaruBmjYtAtRF5Yy2Nj/Fa0utrq99vXqj41uWe6YCLGS
 oveXEOcHclzO4zvW2ccWHwrydhYTC+FVDLjtX1cbg6L+edNuc3Up/9rrA4o/BvAdS+
 7SB/1aWdByZXw==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
References: <877chqtvsk.fsf@HIDDEN>
 <171143965734.4362.8405481724513962855@HIDDEN>
 <87o7b1ou6z.fsf@HIDDEN>
Subject: Re: bug#69997: Should =?utf-8?q?=E2=80=98guix_import_pypi=E2=80=99?=
 get dependencies from pyproject files?
From: Tanguy LE CARROUR <tanguy@HIDDEN>
To: Ludovic =?utf-8?q?Court=C3=A8s?= <ludovic.courtes@HIDDEN>
In-Reply-To: <87o7b1ou6z.fsf@HIDDEN>
Date: Tue, 26 Mar 2024 17:55:23 +0100
Message-ID: <171147212395.13452.3553266600176809571@HIDDEN>
User-Agent: alot/0.10
X-Infomaniak-Routing: alpha
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 69997
Cc: Sharlatan Hellseher <sharlatanus@HIDDEN>,
 Munyoki Kilyungi <me@HIDDEN>, Lars-Dominik Braun <lars@HIDDEN>,
 jgart <jgart@HIDDEN>, Marius Bakke <marius@HIDDEN>, 69997 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,


Quoting Ludovic Court=C3=A8s (2024-03-26 17:04:52)
> Tanguy LE CARROUR <tanguy@HIDDEN> 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 more!=
 =F0=9F=98=85
>=20
> It does!
>=20
> 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 produ=
ce a package
> definition from that.

I=E2=80=99m not against a good-old-generic-solution=C2=AE, but this one mig=
ht be
a bit=E2=80=A6 too generic. It contains no mention to Python, so the next l=
ogical step
would be `guix import URL`. Not that I would not like it, though! =F0=9F=98=
=81

So I would say=E2=80=A6 let=E2=80=99s wait and see what the others think. I=
n the
meantime, I=E2=80=99ll have to dive deeper in the PEP and the actual import=
er
code.


> Maybe that=E2=80=99s what you had in mind: import straight from upstream =
rather than via PyPI?

I actually had nothing in mind! I blacked out after sending this email.
Too many emotions at once, I guess! I had no clue it was such a mess. =F0=
=9F=98=85

--=20
Tanguy




Information forwarded to bug-guix@HIDDEN:
bug#69997; Package guix. Full text available.

Message received at 69997 <at> debbugs.gnu.org:


Received: (at 69997) by debbugs.gnu.org; 26 Mar 2024 16:05:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 26 12:05:04 2024
Received: from localhost ([127.0.0.1]:34670 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rp9IN-0003ed-Pl
	for submit <at> 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 <ludovic.courtes@HIDDEN>) id 1rp9IJ-0003dj-23
 for 69997 <at> 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=;
Authentication-Results: mail2-relais-roc.national.inria.fr;
 dkim=none (message not signed) header.i=none;
 spf=SoftFail smtp.mailfrom=ludovic.courtes@HIDDEN;
 dmarc=fail (p=none dis=none) d=inria.fr
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: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludovic.courtes@HIDDEN>
To: Tanguy LE CARROUR <tanguy@HIDDEN>
Subject: Re: bug#69997: Should =?utf-8?Q?=E2=80=98guix?= import
 =?utf-8?Q?pypi=E2=80=99?= get dependencies from pyproject files?
In-Reply-To: <171143965734.4362.8405481724513962855@HIDDEN> (Tanguy LE
 CARROUR's message of "Tue, 26 Mar 2024 08:54:17 +0100")
References: <877chqtvsk.fsf@HIDDEN>
 <171143965734.4362.8405481724513962855@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: Septidi 7 Germinal an 232 de la =?utf-8?Q?R=C3=A9vol?=
 =?utf-8?Q?ution=2C?= 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@HIDDEN>
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-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 69997
Cc: Sharlatan Hellseher <sharlatanus@HIDDEN>,
 Munyoki Kilyungi <me@HIDDEN>, Lars-Dominik Braun <lars@HIDDEN>,
 jgart <jgart@HIDDEN>, Marius Bakke <marius@HIDDEN>, 69997 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hello!

Tanguy LE CARROUR <tanguy@HIDDEN> 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.




Information forwarded to bug-guix@HIDDEN:
bug#69997; Package guix. Full text available.

Message received at 69997 <at> debbugs.gnu.org:


Received: (at 69997) by debbugs.gnu.org; 26 Mar 2024 13:45:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 26 09:45:43 2024
Received: from localhost ([127.0.0.1]:33117 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rp77W-0000is-UX
	for submit <at> debbugs.gnu.org; Tue, 26 Mar 2024 09:45:43 -0400
Received: from smtp-8faf.mail.infomaniak.ch ([83.166.143.175]:39813)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tanguy@HIDDEN>) id 1rp77T-0000iZ-QT
 for 69997 <at> debbugs.gnu.org; Tue, 26 Mar 2024 09:45:41 -0400
Received: from smtp-3-0001.mail.infomaniak.ch (smtp-3-0001.mail.infomaniak.ch
 [10.4.36.108])
 by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4V3hs70MFRzC8R;
 Tue, 26 Mar 2024 08:54:19 +0100 (CET)
Received: from unknown by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA
 id 4V3hs60PMzzMppNC; Tue, 26 Mar 2024 08:54:17 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bioneland.org;
 s=20230804; t=1711439658;
 bh=XtuLI7Helujucr9pXDbh1ywuVGpMzEi1NzSbHrs7e30=;
 h=References:Subject:From:Cc:To:In-Reply-To:Date:From;
 b=QXb6alwbCcLKmuN46/GlhULOOG8vmmEU0IoAcWfd9uu+iQytDoZ0ykIEsAvACHSyE
 pKc3Zb7mIVVbKO2E3C7tBPdd4qFCAuZXlqFosTFMtFKsl2zD6eyuNvRQUnAr6ipk2X
 38Si9wYMWwlCj7s/cQoEdMeYhGrY+mgvXE/vtTNZEPEaQNqJ9oegdN88sVNoHF3lmv
 4HWaYsaIxzMC+vhoE8KaT0Q3kFhDWyaHMfA0opUVzC5FtgqZESyJH1ZqdyFsl7r1MX
 4Rqm4PKsuV0SJ1aScX4a45HzeK2UEsjKCm75JXpilk/qQfUCMBOlP54GPLOcoEsuZC
 Izzy2p52GllGA==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
References: <877chqtvsk.fsf@HIDDEN>
Subject: Re: bug#69997: Should =?utf-8?q?=E2=80=98guix_import_pypi=E2=80=99?=
 get dependencies from pyproject files?
From: Tanguy LE CARROUR <tanguy@HIDDEN>
To: 69997 <at> debbugs.gnu.org,
 Ludovic =?utf-8?q?Court=C3=A8s?= <ludovic.courtes@HIDDEN>
In-Reply-To: <877chqtvsk.fsf@HIDDEN>
Date: Tue, 26 Mar 2024 08:54:17 +0100
Message-ID: <171143965734.4362.8405481724513962855@HIDDEN>
User-Agent: alot/0.10
X-Infomaniak-Routing: alpha
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 69997
Cc: Munyoki Kilyungi <me@HIDDEN>,
 Sharlatan Hellseher <sharlatanus@HIDDEN>, Lars-Dominik Braun <lars@HIDDEN>,
 jgart <jgart@HIDDEN>, Marius Bakke <marius@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Hi Ludo=E2=80=99,


Quoting Ludovic Court=C3=A8s (2024-03-25 12:06:51)
> Should =E2=80=98guix import pypi=E2=80=99 attempt to get dependency infor=
mation from
> =E2=80=98pyproject.toml=E2=80=99, in addition to =E2=80=98requirements.tx=
t=E2=80=99 and wheel =E2=80=98METADATA=E2=80=99
> as it already does?
>=20
> It might be more complicated than we=E2=80=99d like: in some cases, that =
file
> seems to be used as a =E2=80=9Ctrampoline=E2=80=9D to Poetry.  For instan=
ce, in
> python-pypugjs, the =E2=80=98requires=E2=80=99 bit delegates everything t=
o Poetry:

Short answer: no! =F0=9F=98=81

I=E2=80=99m pretty sure you know everything that I=E2=80=99m about to write=
, but better
say it out loud=E2=80=A6

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 abl=
e 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 s=
ame 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_re=
quire`.

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 more! =F0=
=9F=98=85

Regards,

--=20
Tanguy




Information forwarded to bug-guix@HIDDEN:
bug#69997; Package guix. Full text available.

Message received at 69997 <at> debbugs.gnu.org:


Received: (at 69997) by debbugs.gnu.org; 25 Mar 2024 19:28:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 25 15:28:50 2024
Received: from localhost ([127.0.0.1]:36318 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1roq02-0004EI-Cn
	for submit <at> debbugs.gnu.org; Mon, 25 Mar 2024 15:28:50 -0400
Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]:61785)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sharlatanus@HIDDEN>) id 1roq00-0004E5-QH
 for 69997 <at> debbugs.gnu.org; Mon, 25 Mar 2024 15:28:49 -0400
Received: by mail-lj1-x22f.google.com with SMTP id
 38308e7fff4ca-2d4360ab3daso77720511fa.3
 for <69997 <at> debbugs.gnu.org>; Mon, 25 Mar 2024 12:28:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1711394923; x=1711999723; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=KrFLanmuJE59K/oGOuoQM3U8AJhz++I6tfIbUCdEMUg=;
 b=btvE5xRtWaKXNB0wfFxKVlMTBz25CmhrKecAhNsh7wrNlCfuiWDYSDx9NJw2SbpHHG
 bka2QqUKajPin9I6nKoMgYxnw93bVZfutX4P7aUAu+TwO0mmUJbt07mabx9HvqohgzS4
 Q/IU1QkLx4wK8manKpZUPEjnyrj7Ynzj8bBNmh4bGYhBCRBoQv+WBuOBADGnupC2HAyD
 YXIjB4iNUcI3D+8Twy7hsdYhfpHNVmAUVRVgbc+shWgwtAeE7Jbpz4vSjwk+W29Mi7M9
 o58QjK0I1D8eia/lySqpBeXpLIBqheoFDwb+EisRzB9XDU0Rd7D01hg2f8fh2r4yliaz
 PmIA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1711394923; x=1711999723;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=KrFLanmuJE59K/oGOuoQM3U8AJhz++I6tfIbUCdEMUg=;
 b=VYV2q9pDxs9fFxQ/N1ZLm0X1NDjTCdSYDiX+KkIlY+G705SI7kAkLxDnun2pdXXIkq
 AmjzULQFKqAvIds5sL2mnCrZRtH6O9yNiUgEQIqUK8ilHCkywcSP8zo2vzDh+asvHD+2
 eYD9QSIGvMK5lyBOKfdafMBbMTuPGyDJUbAjdOinfyAWvrb6Sr+c0wMu+We5qTVJ+Qrs
 aaJRogHz0ydmlw+q+I7uB0LDNo9vwMBBKGiHrTB0knh1AnVbVuXbyE/Tf4fRS1DeZtOE
 IBwO3Dp3k9XOEIPgn0iR/j6VO90IDEBwvLxhbjwRQH3ZC2mNG6j7hGSTOZbVRVKp++N/
 Skbw==
X-Gm-Message-State: AOJu0YzQf5i2QXN8+KuxuMENKJr0aP3Y9+tYVPtHpywKEoZMjXQFm+RX
 QLCqAOA3yD0TRsPoIDY/p0ivovBJEu3bUqAG5ZgSOYCUx/dCGBjHsXVUhGzO99BuzeAszGQOdKh
 KTsti9GsExCXZcvqqGCmEqK+NEmA=
X-Google-Smtp-Source: AGHT+IGv9GIx5TGm1tFAn3avNGehuvDJaE2VaE3ueHHZU0SjZT0HAhOW0jdnBUAQHpdMEnIAnaZupZcZ5GfNtkVT3FI=
X-Received: by 2002:a2e:959a:0:b0:2d6:a5f6:c8d3 with SMTP id
 w26-20020a2e959a000000b002d6a5f6c8d3mr5030259ljh.27.1711394922900; Mon, 25
 Mar 2024 12:28:42 -0700 (PDT)
MIME-Version: 1.0
References: <877chqtvsk.fsf@HIDDEN>
In-Reply-To: <877chqtvsk.fsf@HIDDEN>
From: Sharlatan Hellseher <sharlatanus@HIDDEN>
Date: Mon, 25 Mar 2024 19:28:31 +0000
Message-ID: <CAO+9K5o4xpKnhXcBX81LQ3ct6oS+1y-7mr5JVT=4fVwLE9QkMA@HIDDEN>
Subject: =?UTF-8?Q?Re=3A_bug=2369997=3A_Should_=E2=80=98guix_import_pypi=E2=80=99_get_dep?=
 =?UTF-8?Q?endencies_from_pyproject_files=3F?=
To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludovic.courtes@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000007333630614812ec6"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 69997
Cc: 69997 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--0000000000007333630614812ec6
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Lido!

> Should =E2=80=98guix import pypi=E2=80=99 attempt to get dependency
> information fromn=E2=80=98pyproject.toml=E2=80=99, in addition to
> =E2=80=98requirements.txt=E2=80=99 and wheel =E2=80=98METADATA=E2=80=99 a=
s it already does?

It's quite a common practice in modern Python just to include
 pyproject.toml, that fact makes importing long chains problematic.

It would be nice to have common yaml/toml parser for that task.

Oleg

--0000000000007333630614812ec6
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">Hi Lido!<div dir=3D"auto"><br></div><div dir=3D"auto"><di=
v dir=3D"auto">&gt; Should =E2=80=98guix import pypi=E2=80=99 attempt to ge=
t dependency=C2=A0</div><div dir=3D"auto">&gt; information fromn=E2=80=98py=
project.toml=E2=80=99, in addition to=C2=A0</div><div dir=3D"auto">&gt; =E2=
=80=98requirements.txt=E2=80=99 and wheel =E2=80=98METADATA=E2=80=99 as it =
already does?</div><div dir=3D"auto"><br></div><div dir=3D"auto">It&#39;s q=
uite a common practice in modern Python just to include</div><div dir=3D"au=
to">=C2=A0pyproject.toml, that fact makes importing long chains problematic=
.</div><div dir=3D"auto"><br></div><div dir=3D"auto">It would be nice to ha=
ve common yaml/toml parser for that task.</div><div dir=3D"auto"><br></div>=
<div dir=3D"auto">Oleg</div></div></div>

--0000000000007333630614812ec6--




Information forwarded to bug-guix@HIDDEN:
bug#69997; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Mar 2024 16:15:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 25 12:15:51 2024
Received: from localhost ([127.0.0.1]:35874 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1romzH-00073m-2g
	for submit <at> debbugs.gnu.org; Mon, 25 Mar 2024 12:15:51 -0400
Received: from lists.gnu.org ([2001:470:142::17]:33816)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludovic.courtes@HIDDEN>) id 1romzE-00072v-Tg
 for submit <at> debbugs.gnu.org; Mon, 25 Mar 2024 12:15:50 -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 <ludovic.courtes@HIDDEN>)
 id 1roiAS-00043J-GE
 for bug-guix@HIDDEN; Mon, 25 Mar 2024 07:07:04 -0400
Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludovic.courtes@HIDDEN>)
 id 1roiAP-0004yS-UL
 for bug-guix@HIDDEN; Mon, 25 Mar 2024 07:07:04 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc;
 h=from:to:subject:date:message-id:mime-version:
 content-transfer-encoding;
 bh=MlsJG22EjqsWwnPJoqxdluhvQUrY1kcRZOG7Vh2x4D0=;
 b=Ht7YCvCYC2iDyTBZwIfc0T+LwoN26UcQc0KDOyoZ4ebynBUS/jb9sEZO
 Q9iPIipzRu5uhPVwwzE4zY3N5BeCgdk9yX2NpFSqt7MBrtgbUzODhppqw
 H4iEmxKND6WOdsYCmFM1SiqGpjHN6C38bHErnDTea4B3e9R/jTPzQpbZr E=;
Authentication-Results: mail3-relais-sop.national.inria.fr;
 dkim=none (message not signed) header.i=none;
 spf=SoftFail smtp.mailfrom=ludovic.courtes@HIDDEN;
 dmarc=fail (p=none dis=none) d=inria.fr
X-IronPort-AV: E=Sophos;i="6.07,153,1708383600"; d="scan'208";a="83012992"
Received: from unknown (HELO ribbon) ([89.207.171.77])
 by mail3-relais-sop.national.inria.fr with
 ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2024 12:06:54 +0100
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludovic.courtes@HIDDEN>
To: bug-guix@HIDDEN
Subject: Should =?utf-8?Q?=E2=80=98guix?= import =?utf-8?Q?pypi=E2=80=99?=
 get dependencies from pyproject files?
X-Debbugs-Cc: Lars-Dominik Braun <lars@HIDDEN>, Marius Bakke
 <marius@HIDDEN>, Munyoki Kilyungi <me@HIDDEN>, Sharlatan
 Hellseher <sharlatanus@HIDDEN>, Tanguy Le Carrour
 <tanguy@HIDDEN>, jgart <jgart@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: Sextidi 6 Germinal an 232 de la =?utf-8?Q?R=C3=A9vol?=
 =?utf-8?Q?ution=2C?= jour de la Blette
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: Mon, 25 Mar 2024 12:06:51 +0100
Message-ID: <877chqtvsk.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=192.134.164.104;
 envelope-from=ludovic.courtes@HIDDEN;
 helo=mail3-relais-sop.national.inria.fr
X-Spam_score_int: 12
X-Spam_score: 1.2
X-Spam_bar: +
X-Spam_report: (1.2 / 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, RCVD_IN_MSPIKE_H3=-0.01,
 RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 3.6 (+++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Hello Python team! Should ‘guix import pypi’ attempt to
    get dependency information from ‘pyproject.toml’, in addition to ‘requirements.txt’
    and wheel ‘METADATA’ as it already does? 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 t [...] 
 
 Content analysis details:   (3.6 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  3.6 RCVD_IN_SBL_CSS        RBL: Received via a relay in Spamhaus SBL-CSS
                             [89.207.171.77 listed in zen.spamhaus.org]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
  0.0 T_SPF_PERMERROR        SPF: test of record failed (permerror)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 2.6 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Hello Python team! Should ‘guix import pypi’ attempt to
    get dependency information from ‘pyproject.toml’, in addition to ‘requirements.txt’
    and wheel ‘METADATA’ as it already does? 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 t [...] 
 
 Content analysis details:   (2.6 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
  3.6 RCVD_IN_SBL_CSS        RBL: Received via a relay in Spamhaus SBL-CSS
                             [89.207.171.77 listed in zen.spamhaus.org]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
  0.0 T_SPF_PERMERROR        SPF: test of record failed (permerror)
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager

Hello Python team!

Should =E2=80=98guix import pypi=E2=80=99 attempt to get dependency informa=
tion from
=E2=80=98pyproject.toml=E2=80=99, in addition to =E2=80=98requirements.txt=
=E2=80=99 and wheel =E2=80=98METADATA=E2=80=99
as it already does?

It might be more complicated than we=E2=80=99d like: in some cases, that fi=
le
seems to be used as a =E2=80=9Ctrampoline=E2=80=9D to Poetry.  For instance=
, in
python-pypugjs, the =E2=80=98requires=E2=80=99 bit delegates everything to =
Poetry:

--8<---------------cut here---------------start------------->8---
[tool.poetry]
name =3D "pypugjs"
version =3D "5.9.4"
description =3D ""
authors =3D ["Andy Grabow <andy@HIDDEN>"]
license =3D "MIT"

[tool.poetry.dependencies]
python =3D "^3.8"
Jinja2 =3D "^3.1.1"
Mako =3D "^1.1.3"
tornado =3D "^6.0.4"
six =3D "^1.15.0"
coverage =3D "^6.3.2"
nose =3D "^1.3.7"
Flask =3D "^2.1.1"
charset-normalizer =3D "^2.1.0"
flake8 =3D "^4.0.1"

[tool.poetry.dev-dependencies]

[build-system]
requires =3D ["poetry-core>=3D1.0.0"]
build-backend =3D "poetry.core.masonry.api"
--8<---------------cut here---------------end--------------->8---

Thoughts?

Ludo=E2=80=99.




Acknowledgement sent to Ludovic Courtès <ludovic.courtes@HIDDEN>:
New bug report received and forwarded. Copy sent to lars@HIDDEN, marius@HIDDEN, me@HIDDEN, sharlatanus@HIDDEN, tanguy@HIDDEN, jgart@HIDDEN, bug-guix@HIDDEN. Full text available.
Report forwarded to lars@HIDDEN, marius@HIDDEN, me@HIDDEN, sharlatanus@HIDDEN, tanguy@HIDDEN, jgart@HIDDEN, bug-guix@HIDDEN:
bug#69997; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 28 Mar 2024 18:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.