From patchwork Fri Oct 29 21:29:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 419 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8E5D127BBE4; Fri, 29 Oct 2021 22:46:53 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5270427BBE3 for ; Fri, 29 Oct 2021 22:46:53 +0100 (BST) Received: from localhost ([::1]:40730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgZi8-0007bK-8a for patchwork@mira.cbaines.net; Fri, 29 Oct 2021 17:46:52 -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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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