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 8J7AGcprfGE4wAAAgWs5BA (envelope-from ) for ; Fri, 29 Oct 2021 23:46:50 +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 WAZBFcprfGENPAAAbx9fmQ (envelope-from ) for ; Fri, 29 Oct 2021 21:46:50 +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 301A536337 for ; Fri, 29 Oct 2021 23:46:50 +0200 (CEST) Received: from localhost ([::1]:40730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgZi5-0007bK-9s for larch@yhetil.org; Fri, 29 Oct 2021 17:46:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgZSq-0000Oy-3T for guix-patches@gnu.org; Fri, 29 Oct 2021 17:31:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44579) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgZSo-0000dW-I7 for guix-patches@gnu.org; Fri, 29 Oct 2021 17:31:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mgZSo-00064D-FO for guix-patches@gnu.org; Fri, 29 Oct 2021 17:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51493] [PATCH 0/5] Improvements to the pypi, cran, and "print" importers Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 29 Oct 2021 21:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51493 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51493@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163554300223153 (code B ref -1); Fri, 29 Oct 2021 21:31:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Oct 2021 21:30:02 +0000 Received: from localhost ([127.0.0.1]:56121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgZRq-000617-1n for submit@debbugs.gnu.org; Fri, 29 Oct 2021 17:30:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:51950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgZRo-00060Y-7f for submit@debbugs.gnu.org; Fri, 29 Oct 2021 17:30:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgZRn-000823-Vd for guix-patches@gnu.org; Fri, 29 Oct 2021 17:30:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57576) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgZRn-00080F-8K; Fri, 29 Oct 2021 17:29:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=CVFiMYlhBWcQELWdBUEgnpyg5RrNdIqIexdFErioOuM=; b=q/Wjh8VOl2cNFC k+KAdnl2kau3KHcOmlyQwdNQuu8f+dU3LhRSfQtX23nkg+Oj/ClMsdmGoF6zdwgrUwMRfghh4KxMf OlUctpUCyhUN9vS+WsMcopYDShlK2+gtUceELyMQxV8mLQ3np6F5xLyEQhC77Fx4fYBhML80hUMSk h1LxJkboIgQ0THyScYhXIgaPWkBapzDpeRPWd0u1JGSoazEpgirTwBzIQui9/EMtFubyozilE8NY8 34nBuaKZ68m9QGRaD170WuBIqAZiLbRvxurTCdpAK3dUJ+hXylB9+sTimpjaRgsKMLr2CpFbfiods jBzaLSO/Z6OcI4T/i4ig==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:55460 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgZRm-0001XP-PY; Fri, 29 Oct 2021 17:29:59 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Fri, 29 Oct 2021 23:29:48 +0200 Message-Id: <20211029212948.30148-1-ludo@gnu.org> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635544010; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=CVFiMYlhBWcQELWdBUEgnpyg5RrNdIqIexdFErioOuM=; b=Hn98CLaa64SVTPoX6XQJ6YuDjxiyHxU5PCnlRxFYDxE/1rt+Sn6KqoY3g3eAtiOrp4tYtF TcmECRl1v01IXjC1Ju/SXv8RuDL6mZ+braHZhwWGcka9AwKkBNd2tse7WI1HOtbInnLosT ddWY2Co788fCk4bVKk4Ynot9nK3yhMqiv7UBKgfI5Z18PL04awNveHV3bkPKN4RpkcDbGJ TEKPZGezE/atVeAkFLm06IEP2V2fsAlxENw5uC/wrB62AhWcmAQxKOaX89lEOECGwH6/Ek DvD24Zy4ftjnKZXQYIuYsQfxBbzRlm8eP0ydQbXAvG+Ssgj+TrE8w8KCW+uzwQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635544010; a=rsa-sha256; cv=none; b=SGDKgyegKhD/o5E7BminaZ4pBCnHTRgvfVC5NSWUCnJyPwZb9yiWm64Z5dXsC7AaKzR2Eq sah2gi+D4lqt/YNfDaKFK5MulYFodoReT/wdlADAZ7xaK+3UcfWtXAZEBarIuHHrW6ESya hf9TRpOEzjEPA8LgyKSW4HR2LZ+UXMDYoKjzehCohdtduehIskHR2dlvKkyFU8dp94WSFJ tpPR2A/q4r/ISm5qSL6x+h/fYbkrIv2OpNYLeiyu0d3KtrdzbBaOFNTfoKy8vftEwC2y0Z GWIljLKdlS9rq93rS12WLQdpeQVUwCtoi44L0+J3htC0BA68tc4gHd95b1c6Kg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="q/Wjh8VO"; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="q/Wjh8VO"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 301A536337 X-Spam-Score: -1.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: HkEOVO1ejqtf Hi! These changes were prompted by the need to be able to import specific versions of packages so I could estimate importer/repository accuracy: https://lists.gnu.org/archive/html/guix-devel/2021-10/msg00258.html Feedback welcome! Ludo’. Ludovic Courtès (5): import: pypi: Allow imports of a specific version. import: cran: Allow imports of a specific version. import: print: Properly render packages with origins as inputs. import: print: Correctly handle URI lists. import: print: Handle patches that are origins. doc/guix.texi | 16 ++++++- guix/import/cran.scm | 89 +++++++++++++++++++++++------------- guix/import/print.scm | 36 ++++++++++++--- guix/import/pypi.scm | 47 ++++++++++--------- guix/scripts/import/cran.scm | 35 +++++++------- guix/scripts/import/pypi.scm | 32 +++++++------ tests/print.scm | 61 ++++++++++++++++++++++++ tests/pypi.scm | 12 +++-- 8 files changed, 232 insertions(+), 96 deletions(-) base-commit: 7dbd5339d7e9c572afa0aa051dd304abe702cb7d -- 2.33.0