From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id p7gqB5kQdmDbuwAAgWs5BA (envelope-from ) for ; Tue, 13 Apr 2021 23:43:53 +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 UL2TO5gQdmA/SwAAbx9fmQ (envelope-from ) for ; Tue, 13 Apr 2021 21:43:52 +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 112591BD5D for ; Tue, 13 Apr 2021 23:43:52 +0200 (CEST) Received: from localhost ([::1]:38014 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWQp4-0000L7-MY for larch@yhetil.org; Tue, 13 Apr 2021 17:43:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58306) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWQlO-0005TB-0h for bug-guix@gnu.org; Tue, 13 Apr 2021 17:40:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49494) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWQlN-00060e-OC for bug-guix@gnu.org; Tue, 13 Apr 2021 17:40:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWQlN-0006VC-Lo for bug-guix@gnu.org; Tue, 13 Apr 2021 17:40:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47746: pypi importer generates wrong pypi-uri without underscore Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 13 Apr 2021 21:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47746 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Xinglu Chen Received: via spool by 47746-submit@debbugs.gnu.org id=B47746.161834998524961 (code B ref 47746); Tue, 13 Apr 2021 21:40:01 +0000 Received: (at 47746) by debbugs.gnu.org; 13 Apr 2021 21:39:45 +0000 Received: from localhost ([127.0.0.1]:32807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWQl6-0006UX-U0 for submit@debbugs.gnu.org; Tue, 13 Apr 2021 17:39:45 -0400 Received: from sender4-of-o50.zoho.com ([136.143.188.50]:21035) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWQl5-0006UO-1r for 47746@debbugs.gnu.org; Tue, 13 Apr 2021 17:39:43 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1618349978; cv=none; d=zohomail.com; s=zohoarc; b=fzX3o55g1T6L6UnfKPcoOnfvFLQw0ARMe8w5EgnJ24IjfBB2+TFQAjxcKU1jTfFfWiFwHziCsOB5lYqyftRQdySO5DJMRqqmxJI+pODCQYxh0efWQx7TaKF0YwFB1gLdFqrLGvPAUIlygiQAKyRPP1hiP2clYbEcRctD7YWgYA8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1618349978; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=OnAHQPvYwafgeWJmqrJVCFzwxVNiE8KVae5iyipoX+M=; b=bMFYE30IJbqAEuGAWwj+55LoW6F9n0mwbzAEr/gxI/xzreCsV4MEnUcRCouHWFuqloKqeTqzC/k6NeMUYGo3KBfxwRtlakWnmsP2EuPQHQvYRqX3QrvROTYJZEXPxLvtH0n7qBnj+MEE0wFsoOEGJoVL13LavXA705urN3/lyxg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1618349978; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=OnAHQPvYwafgeWJmqrJVCFzwxVNiE8KVae5iyipoX+M=; b=InCppcmKTxc3TJ+XRwqMzr+aZdgVjgLoSdq+d1QuSGG1cByxkUkLsVVNgijiExHI 9L21/Cg9MU1+tN13Xx5yi7Rp5oCxbGNgUF0mog1JN2Hid1s23RurxCzyR29sD+r1VzZ w5+SQDzOJHd/zYOaAv6fvCKbiXh2y5geTN2RlFBc= Received: from localhost (p54ad4d62.dip0.t-ipconnect.de [84.173.77.98]) by mx.zohomail.com with SMTPS id 1618349976262589.7481458616595; Tue, 13 Apr 2021 14:39:36 -0700 (PDT) References: <87pmyytx8d.fsf@elephly.net> <87y2dmf20v.fsf@yoctocell.xyz> User-agent: mu4e 1.4.15; emacs 27.2 From: Ricardo Wurmus In-reply-to: <87y2dmf20v.fsf@yoctocell.xyz> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Tue, 13 Apr 2021 23:39:32 +0200 Message-ID: <87h7k9uanf.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External 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: 47746@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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618350232; 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:dkim-signature; bh=OnAHQPvYwafgeWJmqrJVCFzwxVNiE8KVae5iyipoX+M=; b=KVCpHNlC1Pw5zDjqirh0Spq8Pitaga1xCxtEgrSAFLmkdzYOihbeabr55axkH0SLSZ/dgT HajVdyrOkCrqY9mWzJuKFDh2IsnS/Rmb8RMBJW4gTpeldMzxcNKFwGnRF77/3oXjPp1Abd iymhA+X9THjVjt9BKDXes2m1aBVpxg4ourVoodjVAxhA7REcQ0Pw0p5zQGr+B82VnQ/qPs fhm4iCj/WDaERJbiGHln+IeO9ZOMx9I+ahWakdvCfX2/d1b53pm1YFGc/yppct5jUWF2kS l0oWJrcLycgkGAQRYe2uxpYux110KqV3m+HLWa13BOgsNr30HGVCummhogQPqQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1618350232; a=rsa-sha256; cv=fail; b=eMi4rDWtTy66Rn6IORgmHVku4/ydbufO1QiaEa63TYeKGBVa27ErWi6VMGAl6s0cwWBXJE segyR+ayo7XwNCmLiTSzGNHqHjG6HPQSjFWg+oremtZkOcaEKCN5wNR66yQkH6zW5ZU+DD PP2k7kUgROOHUXsJBOxc5cag8UMt15Ld1z0dxtEu1VJ0oW0A/7SWEETnjLJXFFA09iwSdK 0KF7duPCBMg9rmZv45ZZr8XK1ezEP3NexCuNYTq6uPN255/jiQGLmW4xo2SATfW3jNtJe/ 3e7UVPf3svsoTr7Hhxr6BEG9n39gqLgjhoUTi7araRO/CnKsrJr8lfglAbMPCA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=InCppcmK; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); 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.87 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b=InCppcmK; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); 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: 112591BD5D X-Spam-Score: 2.87 X-Migadu-Scanner: scn0.migadu.com X-TUID: MFkpOzTXqzsh Xinglu Chen writes: > On Tue, Apr 13 2021, Ricardo Wurmus wrote: > >> When importing a package from Pypi whose name includes an=20 >> underscore, the importer will generate a pypi-uri expression=20 >> where=20 >> the underscore has been replaced with a dash. > > Hmm, I just grabbed a random package from PyPi, and the URI=20 > seems fine > to me. [=E2=80=A6] > How would I reproduce the bug? You=E2=80=99re right, this only affects some packages. Here are two=20 examples: --8<---------------cut here---------------start------------->8--- ./pre-inst-env guix import pypi -r jupyterlab_widgets following redirection to=20 `https://pypi.org/pypi/jupyterlab-widgets/json'... [=E2=80=A6] (uri (pypi-uri "jupyterlab-widgets" version)) [=E2=80=A6] --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- ./pre-inst-env guix import pypi -r jupyter_packaging following redirection to=20 `https://pypi.org/pypi/jupyter-packaging/json'... [=E2=80=A6] (uri (pypi-uri "jupyter-packaging" version)) [=E2=80=A6] --8<---------------cut here---------------end--------------->8--- They both have a redirection in common, but the pypi-uri is=20 incorrect as it needs to have the underscore. --=20 Ricardo