diff options
| author | Ross Burton <ross.burton@arm.com> | 2022-05-24 13:11:51 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-05-29 06:39:14 -0700 |
| commit | 4aebf7e4b226621f4ffe531b8a34510cf3b13742 (patch) | |
| tree | b4dd418cf23faa59d614273e0f294e4912071fb1 | |
| parent | 07c2e3273c93d9585b7656ffe3518d147f1e56ae (diff) | |
| download | meta-openembedded-4aebf7e4b226621f4ffe531b8a34510cf3b13742.tar.gz | |
python3-hatchling: add new recipe and build class
Hatchling is the build backend used by the Hatch tool. Add the recipe
and a pep517 build class.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
3 files changed, 27 insertions, 0 deletions
diff --git a/meta-python/classes/python_hatchling.bbclass b/meta-python/classes/python_hatchling.bbclass new file mode 100644 index 0000000000..b3cbe23601 --- /dev/null +++ b/meta-python/classes/python_hatchling.bbclass | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | inherit python_pep517 python3native python3-dir setuptools3-base | ||
| 2 | |||
| 3 | DEPENDS += "python3-hatchling-native" | ||
| 4 | |||
| 5 | PEP517_BUILD_API = "hatchling.build" | ||
diff --git a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb index 4cfa2965c6..f56022ef59 100644 --- a/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +++ b/meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb | |||
| @@ -167,6 +167,7 @@ RDEPENDS:packagegroup-meta-python3 = "\ | |||
| 167 | python3-h11 \ | 167 | python3-h11 \ |
| 168 | python3-h2 \ | 168 | python3-h2 \ |
| 169 | python3-h5py \ | 169 | python3-h5py \ |
| 170 | python3-hatchling \ | ||
| 170 | python3-haversine \ | 171 | python3-haversine \ |
| 171 | python3-hpack \ | 172 | python3-hpack \ |
| 172 | python3-html2text \ | 173 | python3-html2text \ |
diff --git a/meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb b/meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb new file mode 100644 index 0000000000..a6550a9732 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-hatchling_1.3.0.bb | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | SUMMARY = "The extensible, standards compliant build backend used by Hatch" | ||
| 2 | HOMEPAGE = "https://hatch.pypa.io/latest/" | ||
| 3 | LICENSE = "MIT" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=cbe2fd33fc9297692812fc94b7d27fd9" | ||
| 5 | |||
| 6 | inherit pypi python_hatchling | ||
| 7 | |||
| 8 | DEPENDS += "python3-pluggy-native python3-tomli-native python3-pathspec-native python3-packaging-native python3-editables-native" | ||
| 9 | DEPENDS:remove:class-native = "python3-hatchling-native" | ||
| 10 | |||
| 11 | SRC_URI[sha256sum] = "1401d45d3dd6a5910f64d539acaa943486d5e8b7dda1a97f2b0040fdddc5b85e" | ||
| 12 | |||
| 13 | # Until we have a proper tool to invoke PEP517 builds, hatchling can't | ||
| 14 | # bootstrap itself automatically. | ||
| 15 | PEP517_BUILD_API = "hatchling.ouroboros" | ||
| 16 | |||
| 17 | do_compile:prepend() { | ||
| 18 | export PYTHONPATH=src | ||
| 19 | } | ||
| 20 | |||
| 21 | BBCLASSEXTEND = "native nativesdk" | ||
