From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tanguy Le Carrour Subject: Re: WIP gnu: poetry: Update to 1.0.3. Date: Wed, 5 Feb 2020 18:13:56 +0100 Message-ID: <20200205171356.fm522biune6ewk4w@rafflesia> References: <20200203153122.llccmfho2fwtr7o7@rafflesia> <20200204084857.uxmbpch6rnyqevwe@rafflesia> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:36069) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izOFV-0003EF-Tl for guix-devel@gnu.org; Wed, 05 Feb 2020 12:14:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1izOFU-0002dk-IW for guix-devel@gnu.org; Wed, 05 Feb 2020 12:14:01 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:45193) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1izOFU-0002OO-Ay for guix-devel@gnu.org; Wed, 05 Feb 2020 12:14:00 -0500 Content-Disposition: inline In-Reply-To: <20200204084857.uxmbpch6rnyqevwe@rafflesia> 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+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: =?utf-8?B?R8OhYm9y?= Boskovits Cc: Guix Hi Gui, hi Gábor! Le 02/04, Tanguy Le Carrour a écrit : > Le 02/03, Gábor Boskovits a écrit : > > Tanguy Le Carrour ezt írta (időpont: 2020. > > febr. 3., H, 16:31): > > > I'm working on updating Poetry to version 1.0.3 and I have a problem > > > with the version of a dependency. > > > > […] > > > [1]: attempt to patch setup.py > > > - (arguments `(#:tests? #f)) ; tests depend on dbus service > > > + (arguments > > > + `(#:tests? #f ;; Pypi does not have tests. > > > + #:phases > > > + (modify-phases %standard-phases > > > + (add-after 'unpack 'change-dependencies > > > + (lambda _ > > > + ;; Guix has version 21.0.0 of python-keyring > > > + (invoke "sed" "-i" "-e" > > > + "s/keyring>=20.0.1,<21.0.0/keyring>=20.0.1,<22.0.0/" > > > + "setup.py") > > > + #t))))) > > > > > > > What did not work in this case? > The `setup.py` file was not modified! > > Also, do you think that you could replace invoke sed with substitute*? > > I'll definitively give it a try! Thanks! This worked perfectly! Thanks! I've just submitted the first 3 patches (trivial updates) required to update Poetry, but I'm still struggling with the update of python-cachy. I've a `fakeredis: unable to find libc or equivalent` error, so for the time being, I deactivated the tests. I might have to start a new thread on guix-devel, if I fail to figure out a way to make it work. I'll also have to work on my commit message for poetry as quite a lot is happening: ``` WIP gnu: poetry: Update to 1.0.3. * gnu/packages/python-xyz.scm (poetry): Update to 1.0.3. [propagated-inputs] remove python-glob2, add python-clikit, add python-importlib-metadata, remove python-msgpack, remove python-pathlib2, add python-keyring. [home-page] update URL. [arguments/#:phases/modify-phases] remove patch. ``` Thanks again for your help! -- Tanguy