diff options
| author | Alexander Kanavin <alex@linutronix.de> | 2025-09-11 10:51:12 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-09-15 17:57:23 +0100 |
| commit | 2a86f487d75f8ff21df5601de3f96da3569125c0 (patch) | |
| tree | be8c618c785937bf192aba38cfc63b9334ba5345 | |
| parent | 692f0670534ee074da2eb0ab8142c6b473869986 (diff) | |
| download | poky-2a86f487d75f8ff21df5601de3f96da3569125c0.tar.gz | |
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>
| -rw-r--r-- | meta/classes-recipe/pypi.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/pypi.bbclass b/meta/classes-recipe/pypi.bbclass index eb30004a0f..1372d85e8d 100644 --- a/meta/classes-recipe/pypi.bbclass +++ b/meta/classes-recipe/pypi.bbclass | |||
| @@ -51,7 +51,7 @@ UPSTREAM_CHECK_PYPI_PACKAGE ?= "${@pypi_normalize(d)}" | |||
| 51 | # https://packaging.python.org/en/latest/specifications/simple-repository-api/ | 51 | # https://packaging.python.org/en/latest/specifications/simple-repository-api/ |
| 52 | # | 52 | # |
| 53 | # NOTE: All URLs for the simple API MUST request canonical normalized URLs per the spec | 53 | # NOTE: All URLs for the simple API MUST request canonical normalized URLs per the spec |
| 54 | UPSTREAM_CHECK_URI ?= "https://pypi.org/simple/${@pypi_normalize(d)}" | 54 | UPSTREAM_CHECK_URI ?= "https://pypi.org/simple/${@pypi_normalize(d)}/" |
| 55 | UPSTREAM_CHECK_REGEX ?= "${UPSTREAM_CHECK_PYPI_PACKAGE}-(?P<pver>(\d+[\.\-_]*)+).(tar\.gz|tgz|zip|tar\.bz2)" | 55 | UPSTREAM_CHECK_REGEX ?= "${UPSTREAM_CHECK_PYPI_PACKAGE}-(?P<pver>(\d+[\.\-_]*)+).(tar\.gz|tgz|zip|tar\.bz2)" |
| 56 | 56 | ||
| 57 | CVE_PRODUCT ?= "python:${PYPI_PACKAGE}" | 57 | CVE_PRODUCT ?= "python:${PYPI_PACKAGE}" |
