Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 1/7] pypi.eclass: Use pypi_sdist_url to generate the default SRC_URI
Date: Sat, 11 Feb 2023 09:16:44
Message-Id: 20230211091614.879528-2-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/7] pypi.eclass: Filename and version normalization by "Michał Górny"
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 ---
3 eclass/pypi.eclass | 6 ++----
4 1 file changed, 2 insertions(+), 4 deletions(-)
5
6 diff --git a/eclass/pypi.eclass b/eclass/pypi.eclass
7 index e9d3eec1268b..d00b1171fd16 100644
8 --- a/eclass/pypi.eclass
9 +++ b/eclass/pypi.eclass
10 @@ -34,10 +34,6 @@ esac
11 if [[ ! ${_PYPI_ECLASS} ]]; then
12 _PYPI_ECLASS=1
13
14 -SRC_URI="
15 - https://files.pythonhosted.org/packages/source/${PN::1}/${PN}/${P}.tar.gz
16 -"
17 -
18 # @FUNCTION: pypi_sdist_url
19 # @USAGE: [<project> [<version> [<suffix>]]]
20 # @DESCRIPTION:
21 @@ -132,4 +128,6 @@ pypi_wheel_url() {
22 fi
23 }
24
25 +SRC_URI="$(pypi_sdist_url)"
26 +
27 fi
28 --
29 2.39.1