From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iMzGB7EuJ2KBjQAAgWs5BA (envelope-from ) for ; Tue, 08 Mar 2022 11:23:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yOOGBLEuJ2KMeAEAauVa8A (envelope-from ) for ; Tue, 08 Mar 2022 11:23:45 +0100 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 E7D612A984 for ; Tue, 8 Mar 2022 11:23:44 +0100 (CET) Received: from localhost ([::1]:45380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRX0K-0007vR-2G for larch@yhetil.org; Tue, 08 Mar 2022 05:23:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRWze-0007d2-GL for bug-guix@gnu.org; Tue, 08 Mar 2022 05:23:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33221) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRWze-0002At-7s for bug-guix@gnu.org; Tue, 08 Mar 2022 05:23:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nRWze-0001Lf-4M for bug-guix@gnu.org; Tue, 08 Mar 2022 05:23:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#35673: pypi importer returns the wheel hash when it fails to find a proper source. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 08 Mar 2022 10:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35673 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Jack Hill Received: via spool by 35673-submit@debbugs.gnu.org id=B35673.16467349525133 (code B ref 35673); Tue, 08 Mar 2022 10:23:02 +0000 Received: (at 35673) by debbugs.gnu.org; 8 Mar 2022 10:22:32 +0000 Received: from localhost ([127.0.0.1]:55351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRWz9-0001Kj-VA for submit@debbugs.gnu.org; Tue, 08 Mar 2022 05:22:32 -0500 Received: from mail-wm1-f47.google.com ([209.85.128.47]:35672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRWz7-0001JW-0D for 35673@debbugs.gnu.org; Tue, 08 Mar 2022 05:22:31 -0500 Received: by mail-wm1-f47.google.com with SMTP id v2-20020a7bcb42000000b0037b9d960079so1111134wmj.0 for <35673@debbugs.gnu.org>; Tue, 08 Mar 2022 02:22:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=Jsidx4crxj1E3aHOeUHh9OnCpTpg0YxWOCJ5GkI9/TA=; b=gyrrPe4+XRhfuLcZfaKuNFd2puBIHQUZBAlLr7Q1AbBM2gsYk+I024rOFlhN5FscDl x4wT2/kD37vur5GV9P8sL5s5BQW1rLUv60t9jeaNsLSVqvN2mTfefpdXIF/Dl+zPpvly kNVDM2Sz4p7qh3S30Ql3opqz/JI18WyB2oXQcfSi2roEIefhC0m2wcP+wcIhr3tNLfU1 n09nS0fyZBTEOKnu+FEceMAU7ljvVMkMVJ++qhAf1G/Cs/C9SoX2sLZNwc/dcSGskaTb 0P5K4QoK1AVFqhOyU+2GW152U05YnrY3cg49CS1eYE2QY5mJbmZeAB8p8dgwidWx7TS5 ZGBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=Jsidx4crxj1E3aHOeUHh9OnCpTpg0YxWOCJ5GkI9/TA=; b=1plXUqfIKRBK3VTBr6kl9pK5Ss8Ux+bn6VudeX3AhgghXJavjo19KyAQQfSY3wp9K5 OVgA+jAx0hXFvIVSkph3FlabHSFSNtUJF+P3go0PviNuentVrVN0rCFB1+pOD6CjLlh4 Uq1eT2lb+ov41e/1Pmzv0ND+3BjoewCXAWxNOD8heEf48kwzm0eKcb1jRHUHBncjpHfO 3GEHyH6JlPADZOw6wrQwTvMjpL8uYJBdop3zwq6YbbfJ0D3UDomoQdoRC91VPa9vHjEL s03y/CBhN9c10cBMJZDJar9zMVMY69Baon6krNkM+D24tN9Ggd+hwNUtQUGCYashA83h L90g== X-Gm-Message-State: AOAM5322kGhRxmyefrKDRwwKyIoR+ae/zqD/TPD8rj9ndP6XaZaEqYys 41sImxTHykS0mJO6JyS2M+DO+b32a6w= X-Google-Smtp-Source: ABdhPJxOYGpGNzQvFnyCUfDLqh1RWwaloxBlrKoVtFTL+Ru1itaGaHb/ZS5PXeS0Fg4cUUzctuTvMA== X-Received: by 2002:a05:600c:3ac3:b0:389:adb4:e7a1 with SMTP id d3-20020a05600c3ac300b00389adb4e7a1mr2984242wms.136.1646734943481; Tue, 08 Mar 2022 02:22:23 -0800 (PST) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id l1-20020a05600c4f0100b00387369f380bsm1981778wmq.41.2022.03.08.02.22.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 02:22:23 -0800 (PST) From: zimoun References: Date: Tue, 08 Mar 2022 11:19:03 +0100 In-Reply-To: (Jack Hill's message of "Fri, 10 May 2019 14:41:23 -0400 (EDT)") Message-ID: <87bkyg4ui0.fsf@gmail.com> 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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 35673@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646735025; 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=Jsidx4crxj1E3aHOeUHh9OnCpTpg0YxWOCJ5GkI9/TA=; b=rr5+SeW3tPHZyZ8WVI7I5E/IX3HMBAtu30mM+gRqpc0VaUbphgW95Uo/eG6ygWufK9F2sO wlLYfs72WJX+hOJA8vzpCblT4tdB2MWEcJnLuUkoqjBBoGR3Me7eVg1aleo1/PpHjZ6vfG tGoIXSYrMyi7AG/kUD4EwPzntNdnR+YAJEDZSHlIBoqsP1jpuzgGeHd2Qm7+PiZrNGOmG6 GkOEmzT2M3XTuqgJjifwzNI8FNi/SFa6fi9s4OW013czP2LFXLgb8OwYOBWDwOgIUBA5Ye 4/gbpd17Vwsj6Z+P0gSdh9d6gRueZe0n5pXiHD3PC0hGO0c0CAkt91vbIxPlpQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646735025; a=rsa-sha256; cv=none; b=ZnVElmxqoSJWh9QGzj+zY9+unjHKLjSTgOPqXB3SPGwzkusjjzMPIyfRwjtEqHF344Dmcd AK2v6WArkSqLIaV3V3ht5vBgnFLDLTydYHfIUVUnoZTLTK22h/VPOjhfjlSTqkAQuaAtXl Wkg9fEUQJsyFo8W8/i9TQMiL8uetXOFi+yh1O0sSJOcrU1s1A40OqUedaLBwnB5OJNEqwE RnOceruiO0qe8kvjBPafYN1ZqTQVyg9zrONW83f/EXOKC1tRy/tK0T+9o7r96h2hnWQcdv 7y6qgUOn+MAVfGseUdu5pGXKZDFmmxMS8EQtEtE0TEofxzYUMMFLHR1aKKxBnw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=gyrrPe4+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 4.88 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=gyrrPe4+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E7D612A984 X-Spam-Score: 4.88 X-Migadu-Scanner: scn0.migadu.com X-TUID: qiGGlarOSw2T Hi, On ven., 10 mai 2019 at 14:41, Jack Hill wrote: > As discussed on guix-devel[0] the pypi importer should probably not fill = in > the hash with that of the wheel if a proper source archive is not found on > pypi. > > [0] https://lists.gnu.org/archive/html/guix-devel/2019-05/msg00209.html Now the importer displays some warnings and hint, for instance: --8<---------------cut here---------------start------------->8--- $ guix import pypi PyPortfolioOpt following redirection to `https://pypi.org/pypi/pyportfolioopt/json'... Starting download of /tmp/guix-file.6rSGsS >From https://files.pythonhosted.org/packages/97/c2/c7569f2773f3e942367e90dc= ca15a235af3d3330ac8abfcbfbe67a8ba8dd/PyPortfolioOpt-1.5.1.tar.gz... =E2=80=A6t-1.5.1.tar.gz 56KiB 8.2MiB/s 00:00 [#############= #####] 100.0% Starting download of /tmp/guix-file.MFmUSK >From https://files.pythonhosted.org/packages/90/98/3906835b783ba39cfc613c7b= 0c0fde9c758c729ff3406d45f1c2a1116961/PyPortfolioOpt-1.5.1-py3-none-any.whl.= .. =E2=80=A6.1-py3-none-any.whl 60KiB 45.2MiB/s 00:00 [#############= #####] 100.0% guix import: warning: Failed to extract file: PyPortfolioOpt-1.5.1.dist-inf= o/METADATA from wheel. guix import: warning: Cannot guess requirements from source archive: no req= uires.txt file found. guix import: warning: project name pyportfolioopt does not appear verbatim = in the PyPI URI hint: The PyPI URI is: `https://files.pythonhosted.org/packages/97/c2/c7569f2773f3e942367e90dcca15 a235af3d3330ac8abfcbfbe67a8ba8dd/PyPortfolioOpt-1.5.1.tar.gz'. You should review the pypi-uri declaration in the generated package. You may need to replace "pyportfolioopt" with a substring of the PyPI URI that identifies the package. (package (name "python-pyportfolioopt") (version "1.5.1") (source (origin (method url-fetch) (uri (pypi-uri "pyportfolioopt" version)) (sha256 (base32 "162d6jyvba0xk2blssbp52rrjqpjv011h988k150p1fg7x7nzbs9")))) (build-system python-build-system) (home-page "https://github.com/robertmartin8/PyPortfolioOpt") (synopsis "Financial portfolio optimization in python") (description "Financial portfolio optimization in python") (license license:expat)) --8<---------------cut here---------------end--------------->8--- If it is not enough, could you provide an example? Cheers, simon