Skip to contentSkip to conversation

python3-async-timeout, python3-google-api-python-client, python3-requests-toolbelt: set PYPI_PACKAGE_SDIST

PATCH New [email protected] 1 participant 1 message Oct 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-async-timeout, python3-google-api-python-client, python3-requests-toolbelt: set PYPI_PACKAGE_SDIST

From: Martin Jansa <[email protected]>

Avoid replace("-", "_") from:
https://git.openembedded.org/openembedded-core/commit/?id=98049bf86b615b10c43b3ceb9dbc73580cb76952

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

---
 .../recipes-devtools/python/python3-async-timeout_4.0.3.bb    | 4 ++++
 .../python/python3-google-api-python-client_2.136.0.bb        | 4 ++++
 .../python/python3-requests-toolbelt_1.0.0.bb                 | 4 ++++
 3 files changed, 12 insertions(+)
meta-python/recipes-devtools/python/python3-async-timeout_4.0.3.bb +4 -0
index 2c05f25956..5aab88153e 100644
@@ -12,6 +12,10 @@ SRC_URI[sha256sum] = "4640d96be84d82d02ed59ea2b7105a0f7b33abe8703703cd0ab0bf87c4
 
 inherit pypi python_setuptools_build_meta
 
+# Avoid replace("-", "_") from:
+# https://git.openembedded.org/openembedded-core/commit/?id=98049bf86b615b10c43b3ceb9dbc73580cb76952
+PYPI_PACKAGE_SDIST = "${PYPI_PACKAGE}"
+
 DEPENDS += "python3-wheel-native"
 
 RDEPENDS:${PN} = "\
meta-python/recipes-devtools/python/python3-google-api-python-client_2.136.0.bb +4 -0
index d2802815c0..1900106a92 100644
@@ -8,6 +8,10 @@ SRC_URI[sha256sum] = "161c722c8864e7ed39393e2b7eea76ef4e1c933a6a59f9d7c70409b663
 
 inherit pypi setuptools3
 
+# Avoid replace("-", "_") from:
+# https://git.openembedded.org/openembedded-core/commit/?id=98049bf86b615b10c43b3ceb9dbc73580cb76952
+PYPI_PACKAGE_SDIST = "${PYPI_PACKAGE}"
+
 RDEPENDS:${PN} += "\
     python3-logging \
     python3-json \
meta-python/recipes-devtools/python/python3-requests-toolbelt_1.0.0.bb +4 -0
index 8956dee1f1..e7263fe768 100644
@@ -13,6 +13,10 @@ SRC_URI[sha256sum] = "7681a0a3d047012b5bdc0ee37d7f8f07ebe76ab08caeccfc3921ce23c8
 
 inherit pypi setuptools3 ptest-python-pytest
 
+# Avoid replace("-", "_") from:
+# https://git.openembedded.org/openembedded-core/commit/?id=98049bf86b615b10c43b3ceb9dbc73580cb76952
+PYPI_PACKAGE_SDIST = "${PYPI_PACKAGE}"
+
 RDEPENDS:${PN} += " \
     python3-requests (>=2.0.1) \
 "