* [meta-python][PATCH 0/2] dtschema: new python package
@ 2019-09-23 10:00 Bartosz Golaszewski
2019-09-23 10:00 ` [meta-python][PATCH 1/2] python3-ruamel-yaml: new package Bartosz Golaszewski
2019-09-23 10:00 ` [meta-python][PATCH 2/2] python3-dtschema: " Bartosz Golaszewski
0 siblings, 2 replies; 4+ messages in thread
From: Bartosz Golaszewski @ 2019-09-23 10:00 UTC (permalink / raw)
To: Khem Raj, Tim Orling, Derek Straka
Cc: Bartosz Golaszewski, openembedded-devel
From: Bartosz Golaszewski <bgolaszewski@baylibre.com>
The following series adds support for the dtschema package to meta-python.
It's a set of python tools allowing to verify the validity of YAML
device-tree binding documents in the linux kernel. The first patch adds
a dependency of dtschema - the ruamel YAML parser. The recipe for an older
version exists in meta-homeassistant, but IMO it's generic enough to be
added to meta-openembedded.
Bartosz Golaszewski (2):
python3-ruamel-yaml: new package
python3-dtschema: new package
.../python/python3-dt-schema_git.bb | 14 ++++++++++++++
.../python/python3-ruamel-yaml_0.16.5.bb | 16 ++++++++++++++++
2 files changed, 30 insertions(+)
create mode 100644 meta-python/recipes-devtools/python/python3-dt-schema_git.bb
create mode 100644 meta-python/recipes-devtools/python/python3-ruamel-yaml_0.16.5.bb
--
2.23.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [meta-python][PATCH 1/2] python3-ruamel-yaml: new package
2019-09-23 10:00 [meta-python][PATCH 0/2] dtschema: new python package Bartosz Golaszewski
@ 2019-09-23 10:00 ` Bartosz Golaszewski
2019-09-23 10:00 ` [meta-python][PATCH 2/2] python3-dtschema: " Bartosz Golaszewski
1 sibling, 0 replies; 4+ messages in thread
From: Bartosz Golaszewski @ 2019-09-23 10:00 UTC (permalink / raw)
To: Khem Raj, Tim Orling, Derek Straka
Cc: Bartosz Golaszewski, openembedded-devel
From: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Add a pypi recipe for ruamel-yaml parser.
Based on the recipe found in meta-homeassistant by Oleksandr Andrushchenko.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
---
.../python/python3-ruamel-yaml_0.16.5.bb | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
create mode 100644 meta-python/recipes-devtools/python/python3-ruamel-yaml_0.16.5.bb
diff --git a/meta-python/recipes-devtools/python/python3-ruamel-yaml_0.16.5.bb b/meta-python/recipes-devtools/python/python3-ruamel-yaml_0.16.5.bb
new file mode 100644
index 000000000..ba095648f
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-ruamel-yaml_0.16.5.bb
@@ -0,0 +1,16 @@
+SUMMARY = "YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order."
+AUTHOR = "Anthon van der Neut"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=caf8bd842440b537c044e131785a4666"
+
+PYPI_PACKAGE = "ruamel.yaml"
+
+inherit pypi setuptools3
+
+SRC_URI[md5sum] = "7d5a5b0a7621a1247b081cc8e4978354"
+SRC_URI[sha256sum] = "412a6f5cfdc0525dee6a27c08f5415c7fd832a7afcb7a0ed7319628aed23d408"
+
+do_install_prepend() {
+ export RUAMEL_NO_PIP_INSTALL_CHECK=1
+}
--
2.23.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [meta-python][PATCH 2/2] python3-dtschema: new package
2019-09-23 10:00 [meta-python][PATCH 0/2] dtschema: new python package Bartosz Golaszewski
2019-09-23 10:00 ` [meta-python][PATCH 1/2] python3-ruamel-yaml: new package Bartosz Golaszewski
@ 2019-09-23 10:00 ` Bartosz Golaszewski
2019-09-23 15:30 ` Khem Raj
1 sibling, 1 reply; 4+ messages in thread
From: Bartosz Golaszewski @ 2019-09-23 10:00 UTC (permalink / raw)
To: Khem Raj, Tim Orling, Derek Straka
Cc: Bartosz Golaszewski, openembedded-devel
From: Bartosz Golaszewski <bgolaszewski@baylibre.com>
This adds a recipe for dtschema package developed by Rob Herring for
easy validation of YAML device-tree files in the linux kernel.
The version is current git as the only release so far - v0.1 - is old
and doesn't work with kernel's dt_binding_check make target.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
---
.../python/python3-dt-schema_git.bb | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 meta-python/recipes-devtools/python/python3-dt-schema_git.bb
diff --git a/meta-python/recipes-devtools/python/python3-dt-schema_git.bb b/meta-python/recipes-devtools/python/python3-dt-schema_git.bb
new file mode 100644
index 000000000..d2b4ae1f3
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-dt-schema_git.bb
@@ -0,0 +1,14 @@
+SUMMARY = "Tooling for devicetree validation using YAML and jsonschema"
+AUTHOR = "Rob Herring"
+
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://setup.py;beginline=2;endline=3;md5=c795d4924c5f739424fa8d9b569c6659"
+
+inherit setuptools3
+
+SRC_URI = "git://github.com/robherring/dt-schema.git"
+SRCREV = "5009e47c1c76e48871f5988e08dad61f3c91196b"
+
+S = "${WORKDIR}/git"
+
+RDEPENDS_${PN} = "python3-jsonschema python3-ruamel-yaml"
--
2.23.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [meta-python][PATCH 2/2] python3-dtschema: new package
2019-09-23 10:00 ` [meta-python][PATCH 2/2] python3-dtschema: " Bartosz Golaszewski
@ 2019-09-23 15:30 ` Khem Raj
0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2019-09-23 15:30 UTC (permalink / raw)
To: Bartosz Golaszewski; +Cc: Bartosz Golaszewski, openembeded-devel
On Mon, Sep 23, 2019 at 3:01 AM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
>
> From: Bartosz Golaszewski <bgolaszewski@baylibre.com>
>
> This adds a recipe for dtschema package developed by Rob Herring for
> easy validation of YAML device-tree files in the linux kernel.
>
> The version is current git as the only release so far - v0.1 - is old
> and doesn't work with kernel's dt_binding_check make target.
>
> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
> ---
> .../python/python3-dt-schema_git.bb | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
> create mode 100644 meta-python/recipes-devtools/python/python3-dt-schema_git.bb
>
> diff --git a/meta-python/recipes-devtools/python/python3-dt-schema_git.bb b/meta-python/recipes-devtools/python/python3-dt-schema_git.bb
> new file mode 100644
> index 000000000..d2b4ae1f3
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-dt-schema_git.bb
> @@ -0,0 +1,14 @@
> +SUMMARY = "Tooling for devicetree validation using YAML and jsonschema"
> +AUTHOR = "Rob Herring"
> +
> +LICENSE = "BSD-2-Clause"
> +LIC_FILES_CHKSUM = "file://setup.py;beginline=2;endline=3;md5=c795d4924c5f739424fa8d9b569c6659"
> +
> +inherit setuptools3
> +
> +SRC_URI = "git://github.com/robherring/dt-schema.git"
> +SRCREV = "5009e47c1c76e48871f5988e08dad61f3c91196b"
its missing PV
> +
> +S = "${WORKDIR}/git"
> +
> +RDEPENDS_${PN} = "python3-jsonschema python3-ruamel-yaml"
> --
> 2.23.0
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-09-23 15:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-23 10:00 [meta-python][PATCH 0/2] dtschema: new python package Bartosz Golaszewski
2019-09-23 10:00 ` [meta-python][PATCH 1/2] python3-ruamel-yaml: new package Bartosz Golaszewski
2019-09-23 10:00 ` [meta-python][PATCH 2/2] python3-dtschema: " Bartosz Golaszewski
2019-09-23 15:30 ` Khem Raj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox