From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0H2AGBuykV+NbAAA0tVLHw (envelope-from ) for ; Thu, 22 Oct 2020 16:23:55 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +NnZEhuykV+zIgAAbx9fmQ (envelope-from ) for ; Thu, 22 Oct 2020 16:23:55 +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 1069094014A for ; Thu, 22 Oct 2020 16:23:55 +0000 (UTC) Received: from localhost ([::1]:48096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVdNa-00009e-0D for larch@yhetil.org; Thu, 22 Oct 2020 12:23:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVdNP-00007t-Ep for guix-devel@gnu.org; Thu, 22 Oct 2020 12:23:43 -0400 Received: from mira.cbaines.net ([2a01:7e00:e000:2f8:fd4d:b5c7:13fb:3d27]:41499) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVdNN-0004HV-DK for guix-devel@gnu.org; Thu, 22 Oct 2020 12:23:43 -0400 Received: from localhost (92.41.179.191.threembb.co.uk [92.41.179.191]) by mira.cbaines.net (Postfix) with ESMTPSA id F2F0E27BBEE; Thu, 22 Oct 2020 17:23:39 +0100 (BST) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id a616082e; Thu, 22 Oct 2020 16:23:37 +0000 (UTC) References: <20201022151520.mmq6pyqjc6kxevre@rafflesia> User-agent: mu4e 1.4.13; emacs 27.1 From: Christopher Baines To: Tanguy Le Carrour Subject: Re: Packaging Python projects managed with Poetry In-reply-to: <20201022151520.mmq6pyqjc6kxevre@rafflesia> Date: Thu, 22 Oct 2020 17:23:35 +0100 Message-ID: <87blgugrg8.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a01:7e00:e000:2f8:fd4d:b5c7:13fb:3d27; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/22 12:23:40 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-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-devel@gnu.org 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: -3.11 X-TUID: ZnviEXWRI9Oy --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Tanguy Le Carrour writes: > I've been happily working with Poetry to manage my Python projects, but > now, for the first time, I would like to package one of those projects > for Guix. > > The Python packages I build do not contain any tests or specs, because > to me, they don't belong there. But, I need those tests to make sure > that my package works with the versions of the dependencies available on > Guix. > > The problem is that the source code that I fetch from the git repository > contains the test, but does not contain a `setup.py` file =E2=80=93becaus= e Poetry > does not use it!=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! > Just put the d**n tests in the Python package? This would look like a > failure to me! :-( > > Any thought, help, guidance welcome! Thanks! :-) My first thought, is what would it require for the existing python-build-system to detect and support building the things you describe? I haven't used Poetry myself, have you got a project that can be used as an example? It looks like the python-build-system already has some functionality that's dependent on the use-setuptools? argument. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl+RsgdfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9XdmihAAmCVWu261Y/EJnvS6Y3R96JY07/LSBGck nHFEQLp8Z82RzrV8243kX94hKU3SEwfdnK+RntY0u+a0TKgP5tNosvkXwDyXNTt3 9qYvGm/zAifhJebXs6EPUKw/zCLxJbipjCc8YV6gGTgtp/byiRqwFKWGmPapqRhH hy0OijelQIHgFaKP83r/hBbs9g7VqfNyeXNehE8y1Lz+Fr4pmET0cw5a7tNAxzre VtDWEyH7loYzYGj6LKSh5PKp1BkPTk09EO1eF0xk/rCt8vHQ5W0+1lFBhsska4Ga 4KvN9mYnpG8KJN7oUSiz0iRoMY6S2dEfh+gwB4mbR9hX1wm3giRYI2Pd1F0vJ5Fv MVKpvwx41QMpthJERuBaxXXnmVwpd8p+4NggekZhp/RtpJAcLm5S64rSYTlCSgUT 7mHcRFw9nBHto+o3fGYyQ19JOr7g53q7npYjvj/FRLj67kaveJEyFvGZSRMmrOGL ewO0cXar1NyNFXnIagPdW6btIq3P9x2F2MQDgHGaE5F5fxfysWTdOOFaM7DbozXB tpXaWjAAQwK7HsDfiPqzSWo5IEA9L9baDClAuycLybv/w64IjxD5ZiRuiNP+1ePE k5tsPoDbLWB2GAXVcSThHxjn1l0M5dl69XrjgRcaUMJK6RWN9lzsmETnxcSclxw3 mxSDIlepLzI= =Jzu9 -----END PGP SIGNATURE----- --=-=-=--