* [meta-python] Add coloredlogs python package.
@ 2019-07-12 6:56 Windel Bouwman
2019-07-26 7:49 ` Windel Bouwman
0 siblings, 1 reply; 3+ messages in thread
From: Windel Bouwman @ 2019-07-12 6:56 UTC (permalink / raw)
To: openembedded-devel
Signed-off-by: Windel Bouwman <windel.bouwman@gmail.com>
---
.../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
diff --git a/meta-python/recipes-devtools/python/python-coloredlogs.inc b/meta-python/recipes-devtools/python/python-coloredlogs.inc
new file mode 100644
index 000000000..4a35806db
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-coloredlogs.inc
@@ -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}/share
+}
+
+RDEPENDS_${PN} += "\
+ ${PYTHON_PN}-humanfriendly \
+"
+
+BBCLASSEXTEND = "native"
diff --git a/meta-python/recipes-devtools/python/python-coloredlogs_10.0.bb b/meta-python/recipes-devtools/python/python-coloredlogs_10.0.bb
new file mode 100644
index 000000000..0fc1b258c
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-coloredlogs_10.0.bb
@@ -0,0 +1,2 @@
+inherit setuptools
+require python-coloredlogs.inc
diff --git a/meta-python/recipes-devtools/python/python3-coloredlogs_10.0.bb b/meta-python/recipes-devtools/python/python3-coloredlogs_10.0.bb
new file mode 100644
index 000000000..387239966
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-coloredlogs_10.0.bb
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-coloredlogs.inc
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [meta-python] Add coloredlogs python package.
2019-07-12 6:56 [meta-python] Add coloredlogs python package Windel Bouwman
@ 2019-07-26 7:49 ` Windel Bouwman
2019-07-26 21:19 ` Khem Raj
0 siblings, 1 reply; 3+ messages in thread
From: Windel Bouwman @ 2019-07-26 7:49 UTC (permalink / raw)
To: openembedded-devel
Are there any issues with this recipe? Can this recipe be included in the
meta-python layer?
On Fri, Jul 12, 2019 at 8:56 AM Windel Bouwman <windel.bouwman@gmail.com>
wrote:
> Signed-off-by: Windel Bouwman <windel.bouwman@gmail.com>
> ---
> .../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
>
> diff --git a/meta-python/recipes-devtools/python/python-coloredlogs.inc
> b/meta-python/recipes-devtools/python/python-coloredlogs.inc
> new file mode 100644
> index 000000000..4a35806db
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python-coloredlogs.inc
> @@ -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}/share
> +}
> +
> +RDEPENDS_${PN} += "\
> + ${PYTHON_PN}-humanfriendly \
> +"
> +
> +BBCLASSEXTEND = "native"
> diff --git a/meta-python/recipes-devtools/python/
> python-coloredlogs_10.0.bb b/meta-python/recipes-devtools/python/
> python-coloredlogs_10.0.bb
> new file mode 100644
> index 000000000..0fc1b258c
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python-coloredlogs_10.0.bb
> @@ -0,0 +1,2 @@
> +inherit setuptools
> +require python-coloredlogs.inc
> diff --git a/meta-python/recipes-devtools/python/
> python3-coloredlogs_10.0.bb b/meta-python/recipes-devtools/python/
> python3-coloredlogs_10.0.bb
> new file mode 100644
> index 000000000..387239966
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-coloredlogs_10.0.bb
> @@ -0,0 +1,2 @@
> +inherit setuptools3
> +require python-coloredlogs.inc
> --
> 2.17.1
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [meta-python] Add coloredlogs python package.
2019-07-26 7:49 ` Windel Bouwman
@ 2019-07-26 21:19 ` Khem Raj
0 siblings, 0 replies; 3+ messages in thread
From: Khem Raj @ 2019-07-26 21:19 UTC (permalink / raw)
To: Windel Bouwman; +Cc: openembeded-devel
On Fri, Jul 26, 2019 at 12:50 AM Windel Bouwman
<windel.bouwman@gmail.com> wrote:
>
> Are there any issues with this recipe? Can this recipe be included in the
> meta-python layer?
they look fine with few nits below. But somehow this patch never
showed up on patchwork https://patchwork.openembedded.org/
so please send a v2 and maybe this time pw catches it
>
> On Fri, Jul 12, 2019 at 8:56 AM Windel Bouwman <windel.bouwman@gmail.com>
> wrote:
>
> > Signed-off-by: Windel Bouwman <windel.bouwman@gmail.com>
> > ---
> > .../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
> >
> > diff --git a/meta-python/recipes-devtools/python/python-coloredlogs.inc
> > b/meta-python/recipes-devtools/python/python-coloredlogs.inc
> > new file mode 100644
> > index 000000000..4a35806db
> > --- /dev/null
> > +++ b/meta-python/recipes-devtools/python/python-coloredlogs.inc
> > @@ -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}/share
using bitbake variables as much as possible is better e.g.
${D}${prefix}${datadir}
> > +}
> > +
> > +RDEPENDS_${PN} += "\
> > + ${PYTHON_PN}-humanfriendly \
> > +"
> > +
> > +BBCLASSEXTEND = "native"
> > diff --git a/meta-python/recipes-devtools/python/
> > python-coloredlogs_10.0.bb b/meta-python/recipes-devtools/python/
> > python-coloredlogs_10.0.bb
> > new file mode 100644
> > index 000000000..0fc1b258c
> > --- /dev/null
> > +++ b/meta-python/recipes-devtools/python/python-coloredlogs_10.0.bb
> > @@ -0,0 +1,2 @@
> > +inherit setuptools
> > +require python-coloredlogs.inc
> > diff --git a/meta-python/recipes-devtools/python/
> > python3-coloredlogs_10.0.bb b/meta-python/recipes-devtools/python/
> > python3-coloredlogs_10.0.bb
> > new file mode 100644
> > index 000000000..387239966
> > --- /dev/null
> > +++ b/meta-python/recipes-devtools/python/python3-coloredlogs_10.0.bb
> > @@ -0,0 +1,2 @@
> > +inherit setuptools3
> > +require python-coloredlogs.inc
> > --
> > 2.17.1
> >
> >
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-07-26 21:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-12 6:56 [meta-python] Add coloredlogs python package Windel Bouwman
2019-07-26 7:49 ` Windel Bouwman
2019-07-26 21:19 ` Khem Raj
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.