From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tanguy Le Carrour Subject: Questions about packaging Date: Wed, 9 Oct 2019 11:56:33 +0200 Message-ID: <20191009095633.qlhnq2yvtp7dbrrf@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]:54277) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iI8hy-00078m-ID for guix-devel@gnu.org; Wed, 09 Oct 2019 05:56:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iI8hx-0008HM-Er for guix-devel@gnu.org; Wed, 09 Oct 2019 05:56:38 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:42911) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iI8hx-0008H7-8U for guix-devel@gnu.org; Wed, 09 Oct 2019 05:56:37 -0400 Received: from localhost (176-159-32-89.abo.bbox.fr [176.159.32.89]) (Authenticated sender: tanguy@bioneland.org) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 7490F20000C for ; Wed, 9 Oct 2019 09:56:33 +0000 (UTC) Content-Disposition: inline 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.org@gnu.org Sender: "Guix-devel" To: Guix Hi Guix I'm currently working on packaging python-poetry and, unsurprisingly, I have questions! :-) I guess some of them have already been answered somewhere, so don't hesitate to point me to a previous thread or post… 1) Updating a package What am I suppose to do when updating a package to a different minor or major version? This could break depending packages if they have strict depedencies. For instance, when I run: ./pre-inst-env guix build python-poetry I get: error: Could not find suitable distribution for Requirement.parse('cachecontrol[filecache]<0.13.0,>=0.12.4') So I would have to update python-cachecontrol from 0.11.6 to 0.12.5. Should I create a python-cachecontrol-0.11.6 and fix all the packages that depend on it? Only the one that would break? Btw, python-cachecontrol seems to be broken. I'll work on that. But before I'll have to find an answer to question 3. 2) Getting archive from pypi This one has been bothering me for a long time, and was confirmed few days ago by a comment I read in the package definition of python-cachecontrol: "Pypi does not have tests". Has I understand it, to make sure that a package works with the dependencies provided by the distrubution (Guix), tests must pass! Most of the time, tests are not in the python package downloaded from pypi. Actually, I think that they should not be. They should be in a `tests/` folder in the sources. But that's a different topic. So I guess that one should always make sure that the tests can be executed from the Pypi download, or use Git to get the sources. Any thoughts? 3) Deactivating tests on purpose In my case, python-poetry depends on python-cachecontrol which tests depend (for some weird reasons) on Cherrypy. Cherrypy is a (large) web framework and has a lot of dependencies! In that case, is it OK to disable python-cachecontrol's tests? Or would it be better to ask one of the project to drop one of the dependency?! (Poetry dropping CacheControl, or CacheControl dropping CherryPy) 4) Submitting an incomplete patch series Having run into those problems, I'm a bit stuck with a pile of patches. Some of them could be submitted. Should I submit them separatly? I'm really looking forward to reading your answers! -- Tanguy