mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 21:32:12 +02:00
pypi.bbclass: add / to UPSTREAM_CHECK_URI value
This avoid an unnecessary 301 redirect and is matching the spec: https://packaging.python.org/en/latest/specifications/simple-repository-api/#project-detail (From OE-Core rev: 783ce696f2ac841903ea0015f64e6a370ccc7530) 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>
This commit is contained in:
committed by
Richard Purdie
parent
692f067053
commit
2a86f487d7
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user