Skip to contentSkip to conversation

python3-pyscaffold: fix wheel build and license

PATCH New Justin Bronder 1 participant 1 message Mar 2, 2022

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 python3-pyscaffold: fix wheel build and license

Without python3-setuptools-scm-native, the version on the generated wheel is 0.0.0, not ${PV} as expected which causes pip_install_wheel_do_install to fail to find the wheel.

Consulting the LICENSE.txt distributed with the source, the template files under pyscaffold.templates, which are installed as part of this recipe, are licensed as BSD-0-Clause

---
 .../python/python3-pyscaffold_4.1.4.bb             | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
meta-python/recipes-devtools/python/python3-pyscaffold_4.1.4.bb +7 -7
index 7e5599e4aa..fbba75c435 100644
@@ -5,18 +5,18 @@ used to create template Projects."
 
 HOMEPAGE = "https://github.com/pyscaffold/pyscaffold"
 SECTION = "devel/python"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=8227180126797a0148f94f483f3e1489"
-
-inherit pypi setuptools3
-
-PYPI_PACKAGE = "PyScaffold"
+LICENSE = "0BSD & MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=14a49c74a1d91829908ac756c07e6b91"
+DEPENDS += "python3-setuptools-scm-native"
 
 SRC_URI[sha256sum] = "46a2bbdf255ba2efc6c56ae1428249b61d56c4a3e54ef3db0d05fa97792011a5"
 
-BBCLASSEXTEND = "native nativesdk"
+inherit pypi setuptools3
+PYPI_PACKAGE = "PyScaffold"
 
 RDEPENDS:${PN} += " \
 	python3-email \
 	python3-compression \
 "
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.35.1