diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-02-10 14:31:15 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-02-12 20:00:43 +0100 |
commit | e08af0656e81cdcc02f9e05d2e83546ebf1673c5 (patch) | |
tree | efb9f492cf21b206b51ef9b16aa6795d6cb9f885 /eclass/pypi.eclass | |
parent | pypi.eclass: Add a name normalization function (diff) | |
download | gentoo-e08af0656e81cdcc02f9e05d2e83546ebf1673c5.tar.gz gentoo-e08af0656e81cdcc02f9e05d2e83546ebf1673c5.tar.bz2 gentoo-e08af0656e81cdcc02f9e05d2e83546ebf1673c5.zip |
pypi.eclass: Normalize wheel filenames
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/pypi.eclass')
-rw-r--r-- | eclass/pypi.eclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/pypi.eclass b/eclass/pypi.eclass index 3a37214f8977..c7b9604807eb 100644 --- a/eclass/pypi.eclass +++ b/eclass/pypi.eclass @@ -82,7 +82,8 @@ pypi_sdist_url() { # @DESCRIPTION: # Output the wheel filename for the specified project/version tuple. # -# If <package> is unspecified, it defaults to ${PN}. +# If <package> is unspecified, it defaults to ${PN}. The package name +# is normalized according to the wheel specification. # # If <version> is unspecified, it defaults to ${PV}. # @@ -97,7 +98,7 @@ pypi_wheel_name() { die "Usage: ${FUNCNAME} <project> [<version> [<python-tag> [<abi-platform-tag>]]]" fi - local project=${1-"${PN}"} + local project=$(pypi_normalize_name "${1-"${PN}"}") local version=${2-"${PV}"} local pytag=${3-py3} local abitag=${4-none-any} |