From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aG83ACC3kV9NGQAA0tVLHw (envelope-from ) for ; Thu, 22 Oct 2020 16:45:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IAErNh+3kV+bDgAA1q6Kng (envelope-from ) for ; Thu, 22 Oct 2020 16:45:19 +0000 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 4871B94042E for ; Thu, 22 Oct 2020 16:45:19 +0000 (UTC) Received: from localhost ([::1]:55754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVdiH-0007ah-WF for larch@yhetil.org; Thu, 22 Oct 2020 12:45:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58048) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVdi3-0007Wt-4I for guix-devel@gnu.org; Thu, 22 Oct 2020 12:45:03 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:38826) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVdi0-0007Hn-JM for guix-devel@gnu.org; Thu, 22 Oct 2020 12:45:02 -0400 Received: from localhost (80-110-126-103.cgn.dynamic.surfer.at [80.110.126.103]) by dd26836.kasserver.com (Postfix) with ESMTPSA id A4DF93365550; Thu, 22 Oct 2020 18:44:55 +0200 (CEST) Date: Thu, 22 Oct 2020 18:44:52 +0200 From: Danny Milosavljevic To: Tanguy Le Carrour Subject: Re: Packaging Python projects managed with Poetry Message-ID: <20201022184232.6459b56a@scratchpost.org> In-Reply-To: <20201022151520.mmq6pyqjc6kxevre@rafflesia> References: <20201022151520.mmq6pyqjc6kxevre@rafflesia> X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/4EgcAb03EDAUz=l4WOCG+Ly"; protocol="application/pgp-signature"; micalg=pgp-sha512 Received-SPF: none client-ip=85.13.145.193; envelope-from=dannym@scratchpost.org; helo=dd26836.kasserver.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/22 12:44:56 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.11 X-TUID: WZKeuQ4eO0oY --Sig_/4EgcAb03EDAUz=l4WOCG+Ly Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, On Thu, 22 Oct 2020 17:15:20 +0200 Tanguy Le Carrour wrote: > does not contain a `setup.py` file =E2=80=93because Poetry does not use i= t!=E2=80=94, and >the `python-build-system` fails. > I haven't wrap my head around this yet and I'm not sure what would be > the proper way to do it? >Write a `python-poetry-build-system`? I hope not! Why not? According to https://github.com/python-poetry/poetry they took inspiration from existing build systems like cargo, and they just replaced setup.py by pyproject.toml. So what you could do is create a poetry-build-system that is just like python-build-system (probably even inherits from it) but uses "poetry" instead of "python setup.py". If the author of a package replaces the build system used in his actual project, he has to expect to also have to replace the build-system reference in the guix package. Why is that weird? Or you could try to add it to the existing python-build-system--but the poetry website doesn't sound like it's designed like that (it rather sounds like they want to replace all other python build systems). > Just put the d**n tests in the Python package? This would look like a > failure to me! :-( If the end user doesn't need the tests, the tests shouldn't make it into the derivation of your package. But they are there while the package is buildi= ng the derivation--so just run the tests then. --Sig_/4EgcAb03EDAUz=l4WOCG+Ly Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl+RtwQACgkQ5xo1VCww uqVSbggAiY11fW20dN39+hnonIaC0DUqP32AWxU6b0BVl5fplu2PkAxQCZiXi4h9 uFF3Ys+TLlL3FlmX3saJerRwOp2mAWeJ+WIfiNCK+HK6oIDKsKuJpR5DUzTgGmDe R64w6Nj4tUkFoO4XM0fVbRseIqhTqB/3mflyBNgkBSvxKTMgpWofn4ngb6vlBi3x bDb0/pkOHZ1ohnUAoTfKVMQj6R6AKpWWsf1FVX/b/bBcR4DNIWwFEM4EenA98AJD B8sNEG0a5rWi8fBYy//s6Mp/aC++CfT5fVNDaylZY3JY55/QGcjeMifBXtRPtml2 RBBPbPVDZKzKijBlugEWUZFDqWlQug== =hYlG -----END PGP SIGNATURE----- --Sig_/4EgcAb03EDAUz=l4WOCG+Ly--