All of lore.kernel.org
 help / color / mirror / Atom feed
From: bruce.ashfield@gmail.com
To: richard.purdie@linuxfoundation.org
Cc: openembedded-core@lists.openembedded.org, TicoTimo@gmail.com,
	trevor.gamblin@windriver.com
Subject: [PATCH 09/20] python: import webcolors from meta-python
Date: Wed, 24 Nov 2021 16:14:15 -0500	[thread overview]
Message-ID: <d340e4c4e7ce495785acf852bb106e5ac57fb1ed.1637788184.git.bruce.ashfield@gmail.com> (raw)
In-Reply-To: <cover.1637788184.git.bruce.ashfield@gmail.com>

From: Bruce Ashfield <bruce.ashfield@gmail.com>

Importing webcolors, which is a dependency of
python3-jsonschema. These packges are required to support
the validation of kernel device trees.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
---
 .../python/python3-webcolors/run-ptest        |  3 +++
 .../python/python3-webcolors_1.11.1.bb        | 27 +++++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-webcolors/run-ptest
 create mode 100644 meta/recipes-devtools/python/python3-webcolors_1.11.1.bb

diff --git a/meta/recipes-devtools/python/python3-webcolors/run-ptest b/meta/recipes-devtools/python/python3-webcolors/run-ptest
new file mode 100644
index 0000000000..3385d68939
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-webcolors/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest -o log_cli=true -o log_cli_level=INFO | sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
diff --git a/meta/recipes-devtools/python/python3-webcolors_1.11.1.bb b/meta/recipes-devtools/python/python3-webcolors_1.11.1.bb
new file mode 100644
index 0000000000..2ec036ef35
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-webcolors_1.11.1.bb
@@ -0,0 +1,27 @@
+SUMMARY = "Simple Python module for working with HTML/CSS color definitions."
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=25b90379a52351261c51272e7923d240"
+
+SRC_URI[md5sum] = "54d28a7c80b3e4d974ec2fee86768be9"
+SRC_URI[sha256sum] = "76f360636957d1c976db7466bc71dcb713bb95ac8911944dffc55c01cb516de6"
+
+inherit pypi setuptools3 ptest
+
+RDEPENDS:${PN}:class-target = "\
+    ${PYTHON_PN}-stringold \
+"
+
+SRC_URI += " \
+    file://run-ptest \
+"
+
+RDEPENDS:${PN}-ptest += " \
+    ${PYTHON_PN}-pytest \
+"
+
+do_install_ptest() {
+    install -d ${D}${PTEST_PATH}/tests
+    cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
+}
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.19.1



  parent reply	other threads:[~2021-11-24 21:14 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-24 21:14 [PATCH 00/20 v2] kernel: consolidated pull request bruce.ashfield
2021-11-24 21:14 ` [PATCH 01/20] linux-yocto-dev: bump to v5.16+ bruce.ashfield
2021-11-24 21:14 ` [PATCH 02/20] kernel: export native PKGCONFIG variables bruce.ashfield
2021-11-24 21:14 ` [PATCH 03/20] python: introduce python3-dtschema bruce.ashfield
2021-11-25 17:36   ` [OE-core] " Khem Raj
2021-11-25 17:51     ` Bruce Ashfield
2021-11-25 17:53       ` Khem Raj
2021-11-25 18:00         ` Bruce Ashfield
2021-11-24 21:14 ` [PATCH 04/20] python: import jsonpointer from meta-python bruce.ashfield
2021-11-24 21:14 ` [PATCH 05/20] python: import jsonschema " bruce.ashfield
2021-11-24 21:14 ` [PATCH 06/20] python: import idna " bruce.ashfield
2021-11-24 21:14 ` [PATCH 07/20] python: import rfc3339-validator " bruce.ashfield
2021-11-24 21:14 ` [PATCH 08/20] python: import rfc3986-validator " bruce.ashfield
2021-11-24 21:14 ` bruce.ashfield [this message]
2021-11-24 21:14 ` [PATCH 10/20] python: import ruamel-yaml " bruce.ashfield
2021-11-24 21:14 ` [PATCH 11/20] python: import pyrsistent " bruce.ashfield
2021-11-24 21:14 ` [PATCH 12/20] python: import rfc3987 from meta-pyton bruce.ashfield
2021-11-24 21:14 ` [PATCH 13/20] python: import strict-rfc3339 from meta-python bruce.ashfield
2021-11-24 21:14 ` [PATCH 14/20] python: import vcversioner " bruce.ashfield
2021-11-24 21:14 ` [PATCH 15/20] maintainers: update for kernel dtschema checking dependencies bruce.ashfield
2021-11-24 21:14 ` [PATCH 16/20] linux-yocto: export pkgconfig variables to devshell bruce.ashfield
2021-11-24 21:14 ` [PATCH 17/20] kernel: introduce python3-dtschema-wrapper bruce.ashfield
2021-11-24 21:14 ` [PATCH 18/20] linux-yocto-dev: introduce dt-validation PACKAGECONFIG bruce.ashfield
2021-11-24 21:14 ` [PATCH 19/20] perf: sort-pmuevents: don't drop elements bruce.ashfield
2021-11-24 21:14 ` [PATCH 20/20] perf: sort-pmuevents: allow for additional type qualifiers and storage class bruce.ashfield
2022-03-14 21:13   ` Ferry Toth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d340e4c4e7ce495785acf852bb106e5ac57fb1ed.1637788184.git.bruce.ashfield@gmail.com \
    --to=bruce.ashfield@gmail.com \
    --cc=TicoTimo@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=richard.purdie@linuxfoundation.org \
    --cc=trevor.gamblin@windriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.