From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qJJ3EeaKll9oYQAA0tVLHw (envelope-from ) for ; Mon, 26 Oct 2020 08:37:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id mGM9DeaKll+OfAAAB5/wlQ (envelope-from ) for ; Mon, 26 Oct 2020 08:37:58 +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 D631F940416 for ; Mon, 26 Oct 2020 08:37:57 +0000 (UTC) Received: from localhost ([::1]:39006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWy0q-0006xl-Pw for larch@yhetil.org; Mon, 26 Oct 2020 04:37:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWpRh-0005cN-5o for bug-guix@gnu.org; Sun, 25 Oct 2020 19:29:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54635) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kWpRg-0002y1-Rl for bug-guix@gnu.org; Sun, 25 Oct 2020 19:29:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kWpRg-00025K-PX for bug-guix@gnu.org; Sun, 25 Oct 2020 19:29:04 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#44030: guix import pypi foo@1.2.3 breaks References: <86wnzqz3h8.fsf@gmail.com> In-Reply-To: <86wnzqz3h8.fsf@gmail.com> Resent-From: Lulu Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 25 Oct 2020 23:29:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44030 X-GNU-PR-Package: guix X-GNU-PR-Keywords: easy To: "44030@debbugs.gnu.org" <44030@debbugs.gnu.org> Received: via spool by 44030-submit@debbugs.gnu.org id=B44030.16036685277940 (code B ref 44030); Sun, 25 Oct 2020 23:29:04 +0000 Received: (at 44030) by debbugs.gnu.org; 25 Oct 2020 23:28:47 +0000 Received: from localhost ([127.0.0.1]:37941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWpRO-00023u-5M for submit@debbugs.gnu.org; Sun, 25 Oct 2020 19:28:47 -0400 Received: from mout-p-101.mailbox.org ([80.241.56.151]:20218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWmyR-0006ab-Ku for 44030@debbugs.gnu.org; Sun, 25 Oct 2020 16:50:44 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4CK98s2cw0zQl95 for <44030@debbugs.gnu.org>; Sun, 25 Oct 2020 21:50:37 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id m1NgxHA1VhhP for <44030@debbugs.gnu.org>; Sun, 25 Oct 2020 21:50:32 +0100 (CET) Date: Sun, 25 Oct 2020 23:50:32 +0300 (TRT) From: Lulu Message-ID: <1850369330.68130.1603659032091@office.mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-MBO-SPAM-Probability: X-Rspamd-Score: -2.95 / 15.00 / 15.00 X-Rspamd-Queue-Id: 146BF15 X-Rspamd-UID: f822a1 X-Spam-Score: -0.7 (/) X-Mailman-Approved-At: Sun, 25 Oct 2020 19:28:42 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.7 (-) X-Mailman-Approved-At: Mon, 26 Oct 2020 04:35:21 -0400 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 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-Spam-Score: -1.01 X-TUID: I4U3RK3qNLl/ I just sent in a patch to fix this for the pypi importer, although ideally we'd want versioning support for all importers with a uniform syntax. I poked and prodded at the RubyGems API to see if it can do what PyPI can. It's unfortunately much more limited: API v1 provides a method for querying all versions of a gem [1] and v2 provides a method for querying specific versions of a gem [2], although neither of them provides information about dependency versions, so we can't rely on it for recursive imports (since it would try to import latest versions of all dependencies). There's a method that fetches dependency and versioning info for all versions of all given gems but (probably due to the verbosity of JSON/YAML) it's in binary Ruby serialisation format [3]. I can try to hack a parser that surgically extracts dependency info from a given gem version. What do you think? ELPA runs into a similar problem in that it provides tarballs/files for older versions but dependency info is only provided in the repo file. (MELPA tries to directly peg all packages to their respective Git repos' trunks.) I presume it's much simpler with the gnu importer, as it's only a matter of pointing the FTP fetch in the right direction, although I couldn't confirm it, as the gnu importer doesn't work for me since my ISP blocks PGP keyserver ports. I need to take a closer look at CRAN, CPAN, TeXLive and opam. -- Lulu [1]: https://guides.rubygems.org/rubygems-org-api/#gem-version-methods [2]: https://guides.rubygems.org/rubygems-org-api-v2/ [3]: https://guides.rubygems.org/rubygems-org-api/#misc-methods