From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eHECN+/Z0WDAiAAAgWs5BA (envelope-from ) for ; Tue, 22 Jun 2021 14:39:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 8F2dMu/Z0WAcSgAAbx9fmQ (envelope-from ) for ; Tue, 22 Jun 2021 12:39:11 +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 036121C3A1 for ; Tue, 22 Jun 2021 14:39:11 +0200 (CEST) Received: from localhost ([::1]:37966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvfgL-00022V-P9 for larch@yhetil.org; Tue, 22 Jun 2021 08:39:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvfgE-00022L-F2 for bug-guix@gnu.org; Tue, 22 Jun 2021 08:39:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54727) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lvfgE-0005Sy-7K for bug-guix@gnu.org; Tue, 22 Jun 2021 08:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lvfgE-000767-5L for bug-guix@gnu.org; Tue, 22 Jun 2021 08:39:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#49168: =?UTF-8?Q?=E2=80=98guix?= import =?UTF-8?Q?pypi=E2=80=99?= misses package dependencies Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 22 Jun 2021 12:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49168 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 49168-submit@debbugs.gnu.org id=B49168.162436548627213 (code B ref 49168); Tue, 22 Jun 2021 12:39:02 +0000 Received: (at 49168) by debbugs.gnu.org; 22 Jun 2021 12:38:06 +0000 Received: from localhost ([127.0.0.1]:38040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvffG-00074o-UX for submit@debbugs.gnu.org; Tue, 22 Jun 2021 08:38:06 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:4583) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvffD-00074E-PC for 49168@debbugs.gnu.org; Tue, 22 Jun 2021 08:38:01 -0400 Received: from nijino.local (62-116-34-49.adsl.highway.telekom.at [62.116.34.49]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4G8Qsc0G34z3wFM; Tue, 22 Jun 2021 14:37:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1624365476; bh=D69xdNC/vF1Fzfo+dpe/fjuwzAu/G6IMreoYk6GMgI8=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=khcUkVHDaZAWu6IbO0hFM2xwmbfCiuTdrZKQd4QLq+YvBT4iSF32Ra1x1pCYtNaBy a/twnO5lINXaFh1Jsj/6a2cv+/g8vKgrY9BfzruU8qguu3CWttCnNnFyuvvGcOps12 g+mqh5MhfVBQqbmboLx0KwYNH7zhB+nA52vL0qcI= Message-ID: From: Leo Prikler Date: Tue, 22 Jun 2021 14:37:55 +0200 In-Reply-To: <87eecu3wqh.fsf@inria.fr> References: <877dim5psf.fsf@inria.fr> <992e746ed43c5ae7def7b35996ed44743fef85bf.camel@student.tugraz.at> <87eecu3wqh.fsf@inria.fr> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 49168@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624365551; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=D69xdNC/vF1Fzfo+dpe/fjuwzAu/G6IMreoYk6GMgI8=; b=HQfiidTlXQdTeEfZ1NN3GU0py3x19loXAGq8W5M7/aGhaB7D1C86i9oOu8KSZu0nH4n/G2 8QzFcmUsfpMPzBgKyXFtIK05JWgtEhXOQ05PISTRC5mIPcjwMj6R3Re7Ju2IlEIodkuHt6 LD3GLoPcbV0YyWCBY2tFiLGxyvAi6DtJZ0yM/Kcm9c180lqtIwSiucJa7VvXICyzLv9RF2 XX1EHSmnXcEST+54GY+VVX95ADCcFcydV4AEN7zfa/kMzVyIFwFKrMPZrV/98dX/mA9Mju alZFJc8GIfyIOQNvsSRezOY5Pr/WEeCr3+b5xpbQMg5f/1RNxXs3RBYagJxiKQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624365551; a=rsa-sha256; cv=none; b=N9vN/U13WhcXc/QyM0KIVyx/n4lfAMUiPk8u3pLcNVnw/OB0v5YtbIlFRc5RWV4u4F5lUA oc9C1nt5LWoCDjIroH8Qzj5/Hy0wnfRgFruMtbhLjckwJLpt2odyCynJGHz56HKTDXoij5 VEkoA6K0I+h6y3pr19Sfh/kqEoS/ZTnxFEKT3QjGc6RYqL+ZxmGK2cpd5TlYHVPy8fJnCy FhCRwLElpsrnwaWGtAGN+DpGeVDLbGjHD4bkBrnDmoEYrPwggwU8DWCQeNqWTOQbQfW7Hn BwkDcs1PX+76kVrjpJSVyS3aJ/y/Yvpf0nacEaYnS5cvkG0BK53z4Fu3uv8iQQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=khcUkVHD; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=khcUkVHD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 036121C3A1 X-Spam-Score: -1.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: eEUTrlyraXiJ Am Dienstag, den 22.06.2021, 14:33 +0200 schrieb Ludovic Courtès: > Hi, > > Leo Prikler skribis: > > > > Here, some of tablib’s dependencies are missing; the same problem > > > seems > > > to happen with python-django-import-export itself. > > > > > > Are we failing to parse some of the PyPI metadata? > > I don't think so, rather it appears as though the requires.txt is > > somehow malformed or ill-suited for importing. It basically marks > > all > > inputs as optional. > > Oh. So that’s first and foremost a bug of the PyPI package, right? > > Actually > < > https://files.pythonhosted.org/packages/fe/9d/4e15b2e74044ee051b6939c1b3ff716b0106e8f72d78eab8e08212eab44c/tablib-3.0.0.tar.gz > > > does not have a ‘requirements.txt’ file, and > < > https://files.pythonhosted.org/packages/16/85/078fc037b15aa1120d6a0287ec9d092d93d632ab01a0e7a3e69b4733da5e/tablib-3.0.0-py3-none-any.whl > > > doesn’t have much metadata, so I don’t even get where were get that > info. It does, but it's well hidden in the src tree. I peeked into the guix import code to find it. > > Perhaps we could instruct the importer to emit comments for > > optional > > inputs like so > > ;; Optional inputs by section > > ;; -- [SECTION] > > ;; ("python-some-package" ,python-some-package) > > ;; ("python-some-other-package" ,python-some-other-package) > > Maybe add a command line switch to toggle these comments or a way > > of > > assuming some section, e.g. [cli] to be the thing we want to build > > for > > a package. > > A CLI switch to include optional dependencies would be nice. > > As for emitting comments, the (not-so-) pretty printer written for > ‘guix > style’¹ could come in handy for importers and more generally in any > place where we need to emit comments. Indeed, I wasn't thinking about that when I wrote this reply, but I see what you mean. Should we strive to have such a pretty-printer in Guile as well or do we keep it to ourselves for now? :) > Thanks, > Ludo’. > > ¹ https://issues.guix.gnu.org/49169