From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cJVQBE4rVmEkSwEAgWs5BA (envelope-from ) for ; Thu, 30 Sep 2021 23:25:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id qAcPAE4rVmFCTAAA1q6Kng (envelope-from ) for ; Thu, 30 Sep 2021 21:25:34 +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 94251A6D6 for ; Thu, 30 Sep 2021 23:25:33 +0200 (CEST) Received: from localhost ([::1]:56738 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mW3Ya-0002WS-Oi for larch@yhetil.org; Thu, 30 Sep 2021 17:25:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38400) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mW3Y7-0002W0-93 for guix-patches@gnu.org; Thu, 30 Sep 2021 17:25:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42673) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mW3Y6-0005Xo-NJ for guix-patches@gnu.org; Thu, 30 Sep 2021 17:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mW3Y6-0006iN-Dx for guix-patches@gnu.org; Thu, 30 Sep 2021 17:25:02 -0400 Subject: bug#50854: [PATCH 0/2] Make the PyPI importer honor the =?UTF-8?Q?=E2=80=98upstream-name=E2=80=99?= package property Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Thu, 30 Sep 2021 21:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 50854 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Xinglu Chen Cc: 50854-done@debbugs.gnu.org Mail-Followup-To: 50854@debbugs.gnu.org, ludo@gnu.org, public@yoctocell.xyz Received: via spool by 50854-done@debbugs.gnu.org id=D50854.163303706225756 (code D ref 50854); Thu, 30 Sep 2021 21:25:02 +0000 Received: (at 50854-done) by debbugs.gnu.org; 30 Sep 2021 21:24:22 +0000 Received: from localhost ([127.0.0.1]:54218 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mW3XS-0006hM-II for submit@debbugs.gnu.org; Thu, 30 Sep 2021 17:24:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mW3XR-0006hA-8K for 50854-done@debbugs.gnu.org; Thu, 30 Sep 2021 17:24:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60778) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mW3XL-0004wN-Gs; Thu, 30 Sep 2021 17:24:15 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=36452 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mW3XK-0006aZ-LL; Thu, 30 Sep 2021 17:24:15 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Thu, 30 Sep 2021 23:24:12 +0200 In-Reply-To: (Xinglu Chen's message of "Mon, 27 Sep 2021 22:09:21 +0200") Message-ID: <87h7e121vn.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1633037133; 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-to: 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; bh=AAFMnNdBRdMbj8B9kuNtKSMpVg9uvWj9S0IN9MnevLk=; b=pgnBR2192Zb6P0CAUnpiwOVmEn6pO7hafls3jyxZhFVyAoiQUEeyuOm7IyCO9hkqFeI8bD oDT3Uv19c3H0ZTZOWzwYQIJH5OCP9rC15MuaIWchFmWGBgl3yX9vq9nZoBCc78Iw3DzjMx ykWdjzUbhQ9pcAaIY4pYxJQnGkbTyK0CxrzvnqkEAgW5WiWM/SEr1UEN6V2soiIURhKQWx EDWsGeDecizpdSp/9qbpPsPpAdF95wxhQ7uXB7b/jfonuXudYuYqwBjkRBG4IpowEa0dgI 2ush97oOiHddy1rbfhJkV7VAvjwtw5jPSfwu5qY05OA+WWiSVHVIVegRuVnb4g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633037133; a=rsa-sha256; cv=none; b=I9P6V1SWSS8vpTcj0DAsU25lE49Dpwonl4OfG1mSudMLm3BPpGtR1g4/yTW8URhDU7NLDV E/rDGAiUj+KfPXpctMCx4d5w194EfA4g1pkyr8R4c0Xl/9gq5epMQSWozJlicuzwzYq/tD zCzhskYXCOmzuXi2nIPz3yX14TOqEce5M5iYgeVByJ3XsyFn8zGOLUuyHf56MVMkiUim0E NzTNdkLsrZ6kasC4S/pR02lB5WFxeESysbhoHo0aYlKaslwj/PslRrE0wklTfz3XPexJVK usWYyYTxuJ4b1snBN9JRma38RopnpgehJA5LdX42dZQV/4rt3dKjB+PSRB6wig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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-Spam-Score: -2.90 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: 94251A6D6 X-Spam-Score: -2.90 X-Migadu-Scanner: scn0.migadu.com X-TUID: kHCW9iL5QSWR Xinglu Chen skribis: > If a PyPI package contains a =E2=80=9C-=E2=80=9D followed by one or more = digits, e.g., > =E2=80=9CAV-98=E2=80=9D, the PyPI importer/updater will think that the di= gits after the > =E2=80=9C-=E2=80=9D is the version of the package, and instead of trying = to update > =E2=80=9CAV-98=E2=80=9D it will try to update =E2=80=9CAV=E2=80=9D. > > $ ./pre-inst-env guix refresh av-98 > following redirection to `https://pypi.org/pypi/av/json'... > /home/yoctocell/src/guix/gnu/packages/web-browsers.scm:914:13: av-98 woul= d be upgraded from 1.0.1 to 8.0.3 > > The first patch makes the PyPI importer honor the =E2=80=98upstream-name= =E2=80=99 > property; it will also generate a package with an =E2=80=98upstream-name= =E2=80=99 > property if the package name contains a =E2=80=9C-=E2=80=9D followed by o= ne or more > digits. > > The second patch sets the =E2=80=98upstream-name=E2=80=99 property for th= e =E2=80=98av-98=E2=80=99 > package. Nice. > Xinglu Chen (2): > import: pypi: Honor the 'upstream-name' package property. > gnu: av-98: Set 'upstream-name' property. Applied, thanks! Ludo'.