From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0056615800F for ; Sat, 11 Feb 2023 09:16:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3EF7DE0825; Sat, 11 Feb 2023 09:16:21 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E35D8E0809 for ; Sat, 11 Feb 2023 09:16:20 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 1/7] pypi.eclass: Use pypi_sdist_url to generate the default SRC_URI Date: Sat, 11 Feb 2023 10:16:08 +0100 Message-Id: <20230211091614.879528-2-mgorny@gentoo.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230211091614.879528-1-mgorny@gentoo.org> References: <20230211091614.879528-1-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: fccb097a-e049-4596-8f56-1f5384953b2e X-Archives-Hash: 4dbc3b08d91a197ddab3275d1434f18c Signed-off-by: Michał Górny --- eclass/pypi.eclass | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/eclass/pypi.eclass b/eclass/pypi.eclass index e9d3eec1268b..d00b1171fd16 100644 --- a/eclass/pypi.eclass +++ b/eclass/pypi.eclass @@ -34,10 +34,6 @@ esac if [[ ! ${_PYPI_ECLASS} ]]; then _PYPI_ECLASS=1 -SRC_URI=" - https://files.pythonhosted.org/packages/source/${PN::1}/${PN}/${P}.tar.gz -" - # @FUNCTION: pypi_sdist_url # @USAGE: [ [ []]] # @DESCRIPTION: @@ -132,4 +128,6 @@ pypi_wheel_url() { fi } +SRC_URI="$(pypi_sdist_url)" + fi -- 2.39.1