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 ms0.migadu.com with LMTPS id mFeMFcnY0WDJhgAAgWs5BA (envelope-from ) for ; Tue, 22 Jun 2021 14:34:17 +0200 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 cNlKEcnY0WC5SgAAbx9fmQ (envelope-from ) for ; Tue, 22 Jun 2021 12:34:17 +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 947381D947 for ; Tue, 22 Jun 2021 14:34:16 +0200 (CEST) Received: from localhost ([::1]:34266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvfbb-0007WH-5p for larch@yhetil.org; Tue, 22 Jun 2021 08:34:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34216) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvfbP-0007UA-K6 for bug-guix@gnu.org; Tue, 22 Jun 2021 08:34:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54719) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lvfbO-0003ee-TD for bug-guix@gnu.org; Tue, 22 Jun 2021 08:34:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lvfbO-0006yX-E0 for bug-guix@gnu.org; Tue, 22 Jun 2021 08:34: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 22 Jun 2021 12:34: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: Leo Prikler Received: via spool by 49168-submit@debbugs.gnu.org id=B49168.162436519926756 (code B ref 49168); Tue, 22 Jun 2021 12:34:02 +0000 Received: (at 49168) by debbugs.gnu.org; 22 Jun 2021 12:33:19 +0000 Received: from localhost ([127.0.0.1]:38032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvfah-0006xU-1x for submit@debbugs.gnu.org; Tue, 22 Jun 2021 08:33:19 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:31007) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvfaf-0006xE-JN for 49168@debbugs.gnu.org; Tue, 22 Jun 2021 08:33:18 -0400 IronPort-HdrOrdr: A9a23:iMVknqsZGbZpHt/SoBOcXKcd7skDqtV00zEX/kB9WHVpm62j5ruTdZEgviMc5wx+ZJhNo7290eq7MBfhHOdOgLX5ZI3DYOCEghrLEGgB1/qb/9SIIUSXnNK1s50QFpSWY+eeMbEVt6rHCUaDYrEdKXS8gcaVrPab5U1ECSttb7hk7w9/AAreKEtrXwNLbKBJd6Z0ovA33gadRQ== X-IronPort-AV: E=Sophos;i="5.83,291,1616454000"; d="scan'208";a="516036485" Received: from 91-160-117-201.subs.proxad.net (HELO ribbon) ([91.160.117.201]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Jun 2021 14:33:11 +0200 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <877dim5psf.fsf@inria.fr> <992e746ed43c5ae7def7b35996ed44743fef85bf.camel@student.tugraz.at> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 4 Messidor an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 22 Jun 2021 14:33:10 +0200 In-Reply-To: <992e746ed43c5ae7def7b35996ed44743fef85bf.camel@student.tugraz.at> (Leo Prikler's message of "Tue, 22 Jun 2021 10:34:26 +0200") Message-ID: <87eecu3wqh.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1624365257; 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; bh=PCH6P5PjLZs2IGyS8RUD529wm3AIHDy0yIALuNwDnhY=; b=eaSrtynYZ5U27KyU8ZA4dDuqv1a1HMmliXcYStHvFaMpNWg2XWGaQbmRYLWpeKImGxaBVS qETuXtpruqZVFGGcBlWuYI/l8YmYZ5LVjpwjCk45MLm6t82lRvwP4/I6ucp11mPvJGjbIB m8XeOuGKMFpYuSspl3X6UzGebGOijzUdWaeR54gaMx1Qix3uM0BV2FhOzS8mhW6W1zjWKi gUsq+LGsL+7f4JqwV0XFb5mAgHQCINPgC4IxY3ecSmIvEtbal/iSEGzvvaQKp7eYVFT8GD Q0GQupsPYFXoSqTqfHvQTh9NvqRPXeK1CGM8EeaWaYj4cGRcIgYxkveustMO3A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624365257; a=rsa-sha256; cv=none; b=q9BmdK2dsidW9c0TGJ5bFoNcnO2t2sjCck92bWfWkJwl7+iUHSAFBLkyurVTKWHwGkeSFe Zv/01evOwGpnzbmoIl9b35/jzr53UYjsADsc58HXHxfW15TGkyjZmqUiKppZwp/pWEdxVM 5nDCZWME+LT2vwKAQ4rCtv4j2urn7rc19a5mQyeMJDJ4jtYeJXDp2nO/k/rfRaTDZ/OkFv kMIh1d1TQDPSMFwoRltK6hI6odHOCSGQFSCt2enIU/db1pzSQQWvuSS+BrSRHBtveC57BA qgxgwd4tgb5fSW4XL1Lti3DZ82VrHg+soiFpDF7i0w7psOuxR/2WNj7giNg5fg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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-Spam-Score: -2.42 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: 947381D947 X-Spam-Score: -2.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4chNinOhL6Bz Hi, Leo Prikler skribis: >> Here, some of tablib=E2=80=99s dependencies are missing; the same problem >> seems >> to happen with python-django-import-export itself. >>=20 >> 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=E2=80=99s first and foremost a bug of the PyPI package, right? Actually does not have a =E2=80=98requirements.txt=E2=80=99 file, and doesn=E2=80=99t have much metadata, so I don=E2=80=99t even get where were = get that info. > 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)=20 > 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 =E2=80= =98guix style=E2=80=99=C2=B9 could come in handy for importers and more generally i= n any place where we need to emit comments. Thanks, Ludo=E2=80=99. =C2=B9 https://issues.guix.gnu.org/49169