Skip to contentSkip to conversation

Add recipe for the coloredlogs python package.

PATCH Superseded Windel Bouwman 2 participants 2 messages Jul 29, 2019

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Add recipe for the coloredlogs python package.

---
 .../python/python-coloredlogs.inc             | 24 +++++++++++++++++++
 .../python/python-coloredlogs_10.0.bb         |  2 ++
 .../python/python3-coloredlogs_10.0.bb        |  2 ++
 3 files changed, 28 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-coloredlogs.inc
 create mode 100644 meta-python/recipes-devtools/python/python-coloredlogs_10.0.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-coloredlogs_10.0.bb
meta-python/recipes-devtools/python/python-coloredlogs.inc new file +24 -0
new file mode 100644
index 000000000..2a4ccb37a
@@ -0,0 +1,24 @@
+DESCRIPTION = "Colored terminal output for Python's logging module"
+HOMEPAGE = "https://coloredlogs.readthedocs.io"
+SECTION = "devel/python"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=690da298a43805797a4fa7bbe180b3c6"
+
+SRC_URI[md5sum] = "0a186966a1955fff8cf9489373e691d9"
+SRC_URI[sha256sum] = "b869a2dda3fa88154b9dd850e27828d8755bfab5a838a1c97fbc850c6e377c36"
+
+inherit pypi
+
+do_compile_prepend() {
+    sed -ie "s/find_pth_directory(),/'',/g" setup.py
+}
+
+do_install_append() {
+    rm -rf ${D}${prefix}${datadir}
+}
+
+RDEPENDS_${PN} += "\
+    ${PYTHON_PN}-humanfriendly \
+"
+
+BBCLASSEXTEND = "native"
meta-python/recipes-devtools/python/python-coloredlogs_10.0.bb new file +2 -0
new file mode 100644
index 000000000..0fc1b258c
@@ -0,0 +1,2 @@
+inherit setuptools
+require python-coloredlogs.inc
meta-python/recipes-devtools/python/python3-coloredlogs_10.0.bb new file +2 -0
new file mode 100644
index 000000000..387239966
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-coloredlogs.inc
Signature · 1 line
2.17.1
#1 lore raw

There are packaging errors found see

https://errors.yoctoproject.org/Errors/Details/255454/
https://errors.yoctoproject.org/Errors/Details/255455/

Quoted 65 lines · Windel Bouwman
---
 .../python/python-coloredlogs.inc             | 24 +++++++++++++++++++
 .../python/python-coloredlogs_10.0.bb         |  2 ++
 .../python/python3-coloredlogs_10.0.bb        |  2 ++
 3 files changed, 28 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-coloredlogs.inc
 create mode 100644 meta-python/recipes-devtools/python/python-coloredlogs_10.0.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-coloredlogs_10.0.bb
meta-python/recipes-devtools/python/python-coloredlogs.inc new file +24 -0
new file mode 100644
index 000000000..2a4ccb37a
@@ -0,0 +1,24 @@
+DESCRIPTION = "Colored terminal output for Python's logging module"
+HOMEPAGE = "https://coloredlogs.readthedocs.io"
+SECTION = "devel/python"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=690da298a43805797a4fa7bbe180b3c6"
+
+SRC_URI[md5sum] = "0a186966a1955fff8cf9489373e691d9"
+SRC_URI[sha256sum] = "b869a2dda3fa88154b9dd850e27828d8755bfab5a838a1c97fbc850c6e377c36"
+
+inherit pypi
+
+do_compile_prepend() {
+    sed -ie "s/find_pth_directory(),/'',/g" setup.py
+}
+
+do_install_append() {
+    rm -rf ${D}${prefix}${datadir}
+}
+
+RDEPENDS_${PN} += "\
+    ${PYTHON_PN}-humanfriendly \
+"
+
+BBCLASSEXTEND = "native"
meta-python/recipes-devtools/python/python-coloredlogs_10.0.bb new file +2 -0
new file mode 100644
index 000000000..0fc1b258c
@@ -0,0 +1,2 @@
+inherit setuptools
+require python-coloredlogs.inc
meta-python/recipes-devtools/python/python3-coloredlogs_10.0.bb new file +2 -1
new file mode 100644
index 000000000..387239966
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-coloredlogs.inc
--

2.17.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel