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 ms11 with LMTPS id 0JONMW/0ll82aQAA0tVLHw (envelope-from ) for ; Mon, 26 Oct 2020 16:08:15 +0000 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 QCVoLW/0ll/uFgAAbx9fmQ (envelope-from ) for ; Mon, 26 Oct 2020 16:08:15 +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 5C85F9403D5 for ; Mon, 26 Oct 2020 16:08:15 +0000 (UTC) Received: from localhost ([::1]:49442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kX52c-00007j-Ag for larch@yhetil.org; Mon, 26 Oct 2020 12:08:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kX4ui-0000wC-Am for bug-guix@gnu.org; Mon, 26 Oct 2020 12:00:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57656) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kX4ug-0005Qm-Ot for bug-guix@gnu.org; Mon, 26 Oct 2020 12:00:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kX4ug-0000Iw-Mw for bug-guix@gnu.org; Mon, 26 Oct 2020 12:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#44030: guix import pypi foo@1.2.3 breaks Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 26 Oct 2020 16:00:02 +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: Lulu , "44030@debbugs.gnu.org" <44030@debbugs.gnu.org> Received: via spool by 44030-submit@debbugs.gnu.org id=B44030.16037279491078 (code B ref 44030); Mon, 26 Oct 2020 16:00:02 +0000 Received: (at 44030) by debbugs.gnu.org; 26 Oct 2020 15:59:09 +0000 Received: from localhost ([127.0.0.1]:40969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kX4tp-0000HK-Bu for submit@debbugs.gnu.org; Mon, 26 Oct 2020 11:59:09 -0400 Received: from mail-wm1-f50.google.com ([209.85.128.50]:40197) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kX4tn-0000Gt-9b for 44030@debbugs.gnu.org; Mon, 26 Oct 2020 11:59:07 -0400 Received: by mail-wm1-f50.google.com with SMTP id k18so12995696wmj.5 for <44030@debbugs.gnu.org>; Mon, 26 Oct 2020 08:59:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-transfer-encoding; bh=LDT+F+VKGt2MKBIWTD7BV2VxDX1umE+w4lyMKk/JWZc=; b=Yiq9wpnBRmUVSFpA5+59r6Bo9PxFhs33YYlH3MRoSroKXfgpDtxEdiI8u9O8r29jBz 9qqcNmDdun5LmefoCxN/viXL5kc4gIt0S9ebcb1sQjaa0mw7f9cyXNQllaeYowXwrtbH 6/mYiG4gEKsACBNK9G+98r6PGedTujB3ICTxLyn8Aw1JBReK2BuAjvQtmLXZ3KpHApvm XmcfxdGXGnv+mg2w8sXCHD/QYFcU0YRps3LNcHvX01zzOn/wdcrlMZoTswXmAQ3P6ASr HCyOWLD5X88+CkYvHLuawDAow0vGA7tOXBw5ZkTsT98bhc48TtT9CFlhmfZ1SVn/eqnB 4aew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=LDT+F+VKGt2MKBIWTD7BV2VxDX1umE+w4lyMKk/JWZc=; b=reTWPFLh/fXGrdMTnguXjoVhvuwkEjD/zmKpbj/+5JRuaoRtdrT8rpHBCFM53hfEh6 6p5/7X3k34TIjM39QwO5H7GG3C3vqGAS0kyCjf+5sVCqSjg3Fc25Qbq/t8jAmnLmMx1g HHVYn9qFfj4ktQfTk/EpBtYU28+9mx/Hw6DqtIfn2WMC80QP7SVSYwhSLsuLr1aWxd8m 2ifpF/o72iZEEM2GssaLRWMAOV0VWvPDHO7vOXe272EFPmmn64yV0mgYSPOzxF3R3kEs aiOhL2tL9sBsQs3qm4WINHHjLfCLKKAmBhFpE5vJ/avWLJwBI7FWKqEmNZHdih5KO0bB b32g== X-Gm-Message-State: AOAM532gJMZ52qcps0G2QTKaPLfocthP6GFyhYMyKJaLEcnhC76OnSMd acj5ibYiWaMzmiLMwA0RzFv/FLTkCAA= X-Google-Smtp-Source: ABdhPJyRbv1Yk99Z4pkG+nYrW3vpcPOVEO25hyHklJrAp9lNY155MCrkvB6hjTy8UwDxUz2+f9xYUw== X-Received: by 2002:a1c:e244:: with SMTP id z65mr17375493wmg.40.1603727941171; Mon, 26 Oct 2020 08:59:01 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id l26sm20289358wmi.41.2020.10.26.08.58.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 08:59:00 -0700 (PDT) From: zimoun In-Reply-To: <1850369330.68130.1603659032091@office.mailbox.org> References: <86wnzqz3h8.fsf@gmail.com> <1850369330.68130.1603659032091@office.mailbox.org> Date: Mon, 26 Oct 2020 16:58:58 +0100 Message-ID: <86v9ex3rnh.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=Yiq9wpnB; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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-Spam-Score: 0.09 X-TUID: GILX87fRsUFA Hi, On Sun, 25 Oct 2020 at 23:50, Lulu wrote: > 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. The uniform syntax is =E2=80=99@=E2=80=99. However, it is importer by impo= rter (case by case) since the external API is different. AFAIU. Speaking about =E2=80=9Cguix import pypi=E2=80=9D, the =E2=80=9C--recursive= =E2=80=9D options still ungracefully fails; even with you patch. > 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. Hum? You are discussing this bug [1], right? So please could you discuss overthere. 1: All the best, simon