Skip to content

Commit 846e806

Browse files
rossburtonrpurdie
authored andcommitted
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. Signed-off-by: Ross Burton <[email protected]> Signed-off-by: Luca Ceresoli <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
1 parent 857f324 commit 846e806

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

meta/classes/python_hatchling.bbclass

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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"

meta/conf/distro/include/maintainers.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,7 @@ RECIPE_MAINTAINER:pn-python3-extras = "Oleksandr Kravchuk <open.source@oleksandr
612612
RECIPE_MAINTAINER:pn-python3-flit-core = "Tim Orling <[email protected]>"
613613
RECIPE_MAINTAINER:pn-python3-git = "Oleksandr Kravchuk <[email protected]>"
614614
RECIPE_MAINTAINER:pn-python3-gitdb = "Oleksandr Kravchuk <[email protected]>"
615+
RECIPE_MAINTAINER:pn-python3-hatchling = "Ross Burton <[email protected]>"
615616
RECIPE_MAINTAINER:pn-python3-hypothesis = "Tim Orling <[email protected]>"
616617
RECIPE_MAINTAINER:pn-python3-idna = "Bruce Ashfield <[email protected]>"
617618
RECIPE_MAINTAINER:pn-python3-imagesize = "Tim Orling <[email protected]>"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
SUMMARY = "The extensible, standards compliant build backend used by Hatch"
2+
HOMEPAGE = "https://hatch.pypa.io/"
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"

0 commit comments

Comments
 (0)