]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
pypi.bbclass: add / to UPSTREAM_CHECK_URI value
authorAlexander Kanavin <alex@linutronix.de>
Thu, 11 Sep 2025 08:51:12 +0000 (10:51 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 15 Sep 2025 16:52:52 +0000 (17:52 +0100)
This avoid an unnecessary 301 redirect and is matching the spec:
https://packaging.python.org/en/latest/specifications/simple-repository-api/#project-detail

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/pypi.bbclass

index eb30004a0fcc2027aeefd6e596ff0314da11666f..1372d85e8d4a96854b4cc89ef7a1a1b8f39e245d 100644 (file)
@@ -51,7 +51,7 @@ UPSTREAM_CHECK_PYPI_PACKAGE ?= "${@pypi_normalize(d)}"
 # https://packaging.python.org/en/latest/specifications/simple-repository-api/
 #
 # NOTE: All URLs for the simple API MUST request canonical normalized URLs per the spec
-UPSTREAM_CHECK_URI ?= "https://pypi.org/simple/${@pypi_normalize(d)}"
+UPSTREAM_CHECK_URI ?= "https://pypi.org/simple/${@pypi_normalize(d)}/"
 UPSTREAM_CHECK_REGEX ?= "${UPSTREAM_CHECK_PYPI_PACKAGE}-(?P<pver>(\d+[\.\-_]*)+).(tar\.gz|tgz|zip|tar\.bz2)"
 
 CVE_PRODUCT ?= "python:${PYPI_PACKAGE}"