diff mbox series

[meta-python,5/15] python3-pytest-benchmark, python3-types-setuptools: set PYPI_PACKAGE_SDIST

Message ID 20261007110740.3179543-5-ankur.tyagi85@gmail.com
State New
Headers show
Series [meta-webserver,1/15] swagger-ui: upgrade 5.33.0 -> 5.33.1 | expand

Commit Message

Ankur Tyagi Oct. 7, 2026, 11:07 a.m. UTC
From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Otherwise do_fetch will fail due to different source archive and expected WORKDIR won't match.

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../recipes-devtools/python/python3-pytest-benchmark_5.1.0.bb | 4 ++++
 .../python/python3-types-setuptools_75.5.0.20241120.bb        | 4 ++++
 2 files changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-pytest-benchmark_5.1.0.bb b/meta-python/recipes-devtools/python/python3-pytest-benchmark_5.1.0.bb
index ae4b12c210..b827b62193 100644
--- a/meta-python/recipes-devtools/python/python3-pytest-benchmark_5.1.0.bb
+++ b/meta-python/recipes-devtools/python/python3-pytest-benchmark_5.1.0.bb
@@ -7,6 +7,10 @@  SRC_URI[sha256sum] = "9ea661cdc292e8231f7cd4c10b0319e56a2118e2c09d9f50e1b3d150d2
 
 inherit pypi setuptools3
 
+# Avoid replace("-", "_") from:
+# https://git.openembedded.org/openembedded-core/commit/?id=98049bf86b615b10c43b3ceb9dbc73580cb76952
+PYPI_PACKAGE_SDIST = "${PYPI_PACKAGE}"
+
 RDEPENDS:${PN} += "python3-core python3-py-cpuinfo python3-pytest python3-aspectlib"
 
 BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-python/recipes-devtools/python/python3-types-setuptools_75.5.0.20241120.bb b/meta-python/recipes-devtools/python/python3-types-setuptools_75.5.0.20241120.bb
index b9f35406bd..200e14c583 100644
--- a/meta-python/recipes-devtools/python/python3-types-setuptools_75.5.0.20241120.bb
+++ b/meta-python/recipes-devtools/python/python3-types-setuptools_75.5.0.20241120.bb
@@ -7,4 +7,8 @@  inherit pypi setuptools3
 
 SRC_URI[sha256sum] = "d3c7e95b0598bf87fede29b3b57b19f5cdcd62a85b9298a7b30f8343f6f21c4f"
 
+# Avoid replace("-", "_") from:
+# https://git.openembedded.org/openembedded-core/commit/?id=98049bf86b615b10c43b3ceb9dbc73580cb76952
+PYPI_PACKAGE_SDIST = "${PYPI_PACKAGE}"
+
 BBCLASSEXTEND = "native"