diff mbox series

[v3,3/4] python3-yamllint: add

Message ID 20230214183101.33761-3-twoerner@gmail.com
State New
Headers show
Series [v3,1/4] dtc: version bump and add python wrapper | expand

Commit Message

Trevor Woerner Feb. 14, 2023, 6:31 p.m. UTC
Add a recipe for yamllint, which is used in a kernel devshell for dtb
checking.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 meta/conf/distro/include/maintainers.inc          |  1 +
 .../python/python3-yamllint_1.29.0.bb             | 15 +++++++++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-yamllint_1.29.0.bb
diff mbox series

Patch

diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc
index ec7ea90d16a6..02aa6cb1b2cf 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -704,6 +704,7 @@  RECIPE_MAINTAINER:pn-python3-vcversioner = "Bruce Ashfield <bruce.ashfield@gmail
 RECIPE_MAINTAINER:pn-python3-wcwidth = "Tim Orling <tim.orling@konsulko.com>"
 RECIPE_MAINTAINER:pn-python3-webcolors = "Bruce Ashfield <bruce.ashfield@gmail.com>"
 RECIPE_MAINTAINER:pn-python3-wheel = "Tim Orling <tim.orling@konsulko.com>"
+RECIPE_MAINTAINER:pn-python3-yamllint = "Trevor Woerner <twoerner@gmail.com>"
 RECIPE_MAINTAINER:pn-python3-zipp = "Tim Orling <tim.orling@konsulko.com>"
 RECIPE_MAINTAINER:pn-qemu = "Richard Purdie <richard.purdie@linuxfoundation.org>"
 RECIPE_MAINTAINER:pn-qemu-helper-native = "Richard Purdie <richard.purdie@linuxfoundation.org>"
diff --git a/meta/recipes-devtools/python/python3-yamllint_1.29.0.bb b/meta/recipes-devtools/python/python3-yamllint_1.29.0.bb
new file mode 100644
index 000000000000..4125c485c610
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-yamllint_1.29.0.bb
@@ -0,0 +1,15 @@ 
+DESCRIPTION = "A linter for yaml files"
+HOMEPAGE = "https://github.com/adrienverge/yamllint"
+LICENSE = "GPL-3.0-only"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1ebbd3e34237af26da5dc08a4e440464"
+
+inherit pypi setuptools3
+
+PYPI_PACKAGE = "yamllint"
+
+SRC_URI[sha256sum] = "66a755d5fbcbb8831f1a9568676329b5bac82c37995bcc9afd048b6459f9fa48"
+
+DEPENDS += "python3-setuptools-scm-native"
+RDEPENDS:${PN} += "python3-pyyaml"
+
+BBCLASSEXTEND = "native nativesdk"