From 8ecf0849e5d9c2f4f9d82a2816f0426426b9f33a Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 21 Jun 2022 14:10:09 +0100 Subject: Add python3-hatchling (from meta-oe) Recipes in core are now needing to use the Hatch build system, so move the hatchling recipe and class from meta-oe to oe-core. (From OE-Core rev: 846e806181f1349be29cbce78c5041735dfd7e6f) Signed-off-by: Ross Burton Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie --- .../python/python3-hatchling_1.3.0.bb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 meta/recipes-devtools/python/python3-hatchling_1.3.0.bb (limited to 'meta/recipes-devtools/python') diff --git a/meta/recipes-devtools/python/python3-hatchling_1.3.0.bb b/meta/recipes-devtools/python/python3-hatchling_1.3.0.bb new file mode 100644 index 0000000000..6e7ccd743f --- /dev/null +++ b/meta/recipes-devtools/python/python3-hatchling_1.3.0.bb @@ -0,0 +1,21 @@ +SUMMARY = "The extensible, standards compliant build backend used by Hatch" +HOMEPAGE = "https://hatch.pypa.io/" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=cbe2fd33fc9297692812fc94b7d27fd9" + +inherit pypi python_hatchling + +DEPENDS += "python3-pluggy-native python3-tomli-native python3-pathspec-native python3-packaging-native python3-editables-native" +DEPENDS:remove:class-native = "python3-hatchling-native" + +SRC_URI[sha256sum] = "1401d45d3dd6a5910f64d539acaa943486d5e8b7dda1a97f2b0040fdddc5b85e" + +# Until we have a proper tool to invoke PEP517 builds, hatchling can't +# bootstrap itself automatically. +PEP517_BUILD_API = "hatchling.ouroboros" + +do_compile:prepend() { + export PYTHONPATH=src +} + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf