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 eGBvDf6OCmDxHQAA0tVLHw (envelope-from ) for ; Fri, 22 Jan 2021 08:38:22 +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 mExECf6OCmAvIwAA1q6Kng (envelope-from ) for ; Fri, 22 Jan 2021 08:38:22 +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 3A2519402D6 for ; Fri, 22 Jan 2021 08:38:21 +0000 (UTC) Received: from localhost ([::1]:42756 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2rxU-0005j8-1B for larch@yhetil.org; Fri, 22 Jan 2021 03:38:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2rxL-0005j2-LH for guix-devel@gnu.org; Fri, 22 Jan 2021 03:38:11 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:35923) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2rxJ-0006hI-5a for guix-devel@gnu.org; Fri, 22 Jan 2021 03:38:11 -0500 X-Originating-IP: 176.185.184.238 Received: from localhost (static-176-185-184-238.axione.abo.bbox.fr [176.185.184.238]) (Authenticated sender: tanguy@bioneland.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 9811D6000A; Fri, 22 Jan 2021 08:38:03 +0000 (UTC) Date: Fri, 22 Jan 2021 09:38:01 +0100 From: Tanguy LE CARROUR Subject: Re: Questions regarding Python packaging To: Lars-Dominik Braun , Guix References: <20201108142717.lmud5h4gh44vtjc6@melmoth> <1609946775.8blxygrg9p.astroid@rafflesia.none> In-Reply-To: <1609946775.8blxygrg9p.astroid@rafflesia.none> MIME-Version: 1.0 User-Agent: astroid/0.15.0 (https://github.com/astroidmail/astroid) Message-Id: <1611303651.35tpgtn1z1.astroid@melmoth.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: none client-ip=217.70.183.195; envelope-from=tanguy@bioneland.org; helo=relay3-d.mail.gandi.net 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.35 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-Migadu-Queue-Id: 3A2519402D6 X-Spam-Score: -2.35 X-Migadu-Scanner: scn0.migadu.com X-TUID: J3StXFUHMK2j Hi Guix, hi Lars, Excerpts from Tanguy LE CARROUR's message of January 6, 2021 4:32 pm: > Excerpts from Lars-Dominik Braun's message of January 5, 2021 11:25 am: >>> So, I've tried packaging `python-keyring` with those two=E2=80=A6 >>>=20 >>> `pep517` keeps on trying to download dependencies, which won't work. >>>=20 >>> `build` crashes with "ZIP does not support timestamps before 1980", >>> which, I guess is related to the fact that everything in the store is >>> timestamped to January 1st 1970. >> have you been looking into a python-build-system using `build`[1]? I=E2= =80=99ve >> had the same issue with egg versions set to 0.0.0 and think in the long >> run moving to a PEP 517-style build is the way forward. >=20 > I agree! Unfortunately, I haven't had much time (so far) to work on it! := -( >=20 > I'll revive the thread as soon as I've made progress=E2=80=A6 Done! :-) I've eventually succeeded in ("properly") packaging a software managed with Poetry. And I've learned quite a lot on the way! Following Efraim's presentation on Guix Day, I've added a `guix.scm` file to one of my pet projects. Any Guix user should be able to build it. ```bash $ git clone https://gitlab.com/TanguyEE/nowty.git Cloning into 'nowty'... [=E2=80=A6] $ cd nowty/ $ guix build --file=3Dguix.scm [=E2=80=A6] successfully built /gnu/store/[=E2=80=A6]-nowty-0.1.0a0+2d656ef.drv /gnu/store/[=E2=80=A6]-nowty-0.1.0a0+2d656ef $ /gnu/store/[=E2=80=A6]-nowty-0.1.0a0+2d656ef/bin/nowty 'High Hopes' from album 'Pray for the Wicked' by 'Panic! at the Disco'. ``` Regarding the package definition: - the `build` phase updates the package version in `pyproject.toml`=C2=A0; - the `install` phase uses `pip` which in turn uses the build system from `poetry-core`. I know that the phase names don't make much sense! =E2=80=A6 but it's a work in progress=C2=A0! :-) Any comment welcome. Regards, --=20 Tanguy