diff mbox series

[05/16] pypi.bbclass: add / to UPSTREAM_CHECK_URI value

Message ID 20250911085123.1551425-5-alex.kanavin@gmail.com
State New
Headers show
Series [01/16] gnupg: update 2.5.5 -> 2.5.11 | expand

Commit Message

Alexander Kanavin Sept. 11, 2025, 8:51 a.m. UTC
From: Alexander Kanavin <alex@linutronix.de>

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>
---
 meta/classes-recipe/pypi.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/classes-recipe/pypi.bbclass b/meta/classes-recipe/pypi.bbclass
index eb30004a0fc..1372d85e8d4 100644
--- a/meta/classes-recipe/pypi.bbclass
+++ b/meta/classes-recipe/pypi.bbclass
@@ -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}"