summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2022-06-21 14:10:09 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-06-22 22:40:28 +0100
commit8ecf0849e5d9c2f4f9d82a2816f0426426b9f33a (patch)
tree7635dc9a236e91f3efe7dff9e7298d825d9a5b28 /meta/recipes-devtools/python
parent158323d312d89ae4230bcf2dd2b4ad6c22da3ea6 (diff)
downloadpoky-8ecf0849e5d9c2f4f9d82a2816f0426426b9f33a.tar.gz
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 <ross.burton@arm.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r--meta/recipes-devtools/python/python3-hatchling_1.3.0.bb21
1 files changed, 21 insertions, 0 deletions
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 @@
1SUMMARY = "The extensible, standards compliant build backend used by Hatch"
2HOMEPAGE = "https://hatch.pypa.io/"
3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=cbe2fd33fc9297692812fc94b7d27fd9"
5
6inherit pypi python_hatchling
7
8DEPENDS += "python3-pluggy-native python3-tomli-native python3-pathspec-native python3-packaging-native python3-editables-native"
9DEPENDS:remove:class-native = "python3-hatchling-native"
10
11SRC_URI[sha256sum] = "1401d45d3dd6a5910f64d539acaa943486d5e8b7dda1a97f2b0040fdddc5b85e"
12
13# Until we have a proper tool to invoke PEP517 builds, hatchling can't
14# bootstrap itself automatically.
15PEP517_BUILD_API = "hatchling.ouroboros"
16
17do_compile:prepend() {
18 export PYTHONPATH=src
19}
20
21BBCLASSEXTEND = "native nativesdk"