Skip to contentSkip to conversation

python3-rich: add recipe

PATCH Superseded Yi Zhao 4 participants 7 messages Mar 8, 2023 – Mar 10, 2023

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/2 python3-rich: add recipe

Rich is a Python library for rich text and beautiful formatting in the terminal.

---
 .../python-rich/python3-rich_13.3.2.bb              | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 meta-python/recipes-extended/python-rich/python3-rich_13.3.2.bb
meta-python/recipes-extended/python-rich/python3-rich_13.3.2.bb new file +13 -0
new file mode 100644
index 000000000..b3a458ab8
@@ -0,0 +1,13 @@
+SUMMARY = "Rich is a Python library for rich text and beautiful formatting in the terminal"
+DESCRIPTION = "The Rich API makes it easy to add color and style to terminal output. \
+Rich can also render pretty tables, progress bars, markdown, syntax highlighted source code, \
+tracebacks, and more."
+HOMEPAGE="https://github.com/Textualize/rich"
+SECTION = "devel/python"
+LICENSE = "MIT"
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b5f0b94fbc94f5ad9ae4efcf8a778303"
+
+SRC_URI[sha256sum] = "91954fe80cfb7985727a467ca98a7618e5dd15178cc2da10f553b36a93859001"
+
+inherit pypi setuptools3
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 2/2 netplan: add missing runtime dependencies

Add python3-dbus and python3-rich[1] to RDEPENDS.

[1] https://github.com/canonical/netplan/pull/290

---
 .../meta-python/recipes-connectivity/netplan/netplan_0.106.bb   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan_0.106.bb +1 -1
index b7fe7ae3e..8c1eaa550 100644
@@ -26,7 +26,7 @@ PACKAGECONFIG ?= ""
 
 PACKAGECONFIG[tests] = ",,,python3-nose python3-coverage python3-netifaces python3-pycodestyle python3-pyflakes python3-pyyaml"
 
-RDEPENDS:${PN} = "python3 python3-core python3-netifaces python3-pyyaml util-linux-libuuid libnetplan"
+RDEPENDS:${PN} = "python3 python3-core python3-netifaces python3-pyyaml util-linux-libuuid libnetplan python3-dbus python3-rich"
 
 inherit pkgconfig systemd
 
Signature · 1 line
2.25.1
#2 lore raw

Re: [oe] [meta-oe][PATCH 2/2] netplan: add missing runtime dependencies

Hello,

This broke check-layer-nightly on the autobuilders:

https://autobuilder.yoctoproject.org/typhoon/#/builders/121/builds/1227/steps/15/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/121/builds/1227/steps/21/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/121/builds/1227/steps/23/logs/stdio

I'm not completely sure why yet.

Quoted 35 lines · Yi Zhao

Add python3-dbus and python3-rich[1] to RDEPENDS.

[1] https://github.com/canonical/netplan/pull/290

---
 .../meta-python/recipes-connectivity/netplan/netplan_0.106.bb   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan_0.106.bb +1 -1
index b7fe7ae3e..8c1eaa550 100644
@@ -26,7 +26,7 @@ PACKAGECONFIG ?= ""
 
 PACKAGECONFIG[tests] = ",,,python3-nose python3-coverage python3-netifaces python3-pycodestyle python3-pyflakes python3-pyyaml"
 
-RDEPENDS:${PN} = "python3 python3-core python3-netifaces python3-pyyaml util-linux-libuuid libnetplan"
+RDEPENDS:${PN} = "python3 python3-core python3-netifaces python3-pyyaml util-linux-libuuid libnetplan python3-dbus python3-rich"
 
 inherit pkgconfig systemd
 
Signature · 11 lines
2.25.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#101425): https://lists.openembedded.org/g/openembedded-devel/message/101425
Mute This Topic: https://lists.openembedded.org/mt/97472579/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw

Re: [oe] [meta-oe][PATCH 2/2] netplan: add missing runtime dependencies

Quoted 10 lines · Alexandre Belloni via lists.openembedded.org

Hello,

This broke check-layer-nightly on the autobuilders:

https://autobuilder.yoctoproject.org/typhoon/#/builders/121/builds/1227/steps/15/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/121/builds/1227/steps/21/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/121/builds/1227/steps/23/logs/stdio

I'm not completely sure why yet.

it started to depend on python-rich and the recipe for python-rich is now in meta-python but perhaps this went in ahead of the new recipe. Ideally they should have
gone in atomically.

Quoted 46 lines · Yi Zhao
Quoted 23 lines

Add python3-dbus and python3-rich[1] to RDEPENDS.

[1] https://github.com/canonical/netplan/pull/290

---
 .../meta-python/recipes-connectivity/netplan/netplan_0.106.bb   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan_0.106.bb +1 -2
index b7fe7ae3e..8c1eaa550 100644
@@ -26,7 +26,7 @@ PACKAGECONFIG ?= ""
 
 PACKAGECONFIG[tests] = ",,,python3-nose python3-coverage python3-netifaces python3-pycodestyle python3-pyflakes python3-pyyaml"
 
-RDEPENDS:${PN} = "python3 python3-core python3-netifaces python3-pyyaml util-linux-libuuid libnetplan"
+RDEPENDS:${PN} = "python3 python3-core python3-netifaces python3-pyyaml util-linux-libuuid libnetplan python3-dbus python3-rich"
 
 inherit pkgconfig systemd
 
--
Quoted 6 lines

2.25.1

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#101494): https://lists.openembedded.org/g/openembedded-devel/message/101494
Mute This Topic: https://lists.openembedded.org/mt/97472579/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw

Re: [oe] [meta-oe][PATCH 2/2] netplan: add missing runtime dependencies

Quoted 8 lines · Khem Raj
Quoted 5 lines · Alexandre Belloni via lists.openembedded.org

Hello,

This broke check-layer-nightly on the autobuilders:

Quoted 8 lines
Quoted 5 lines

https://autobuilder.yoctoproject.org/typhoon/#/builders/121/builds/1227/steps/15/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/121/builds/1227/steps/21/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/121/builds/1227/steps/23/logs/stdio

I'm not completely sure why yet.

it started to depend on python-rich and the recipe for python-rich is now in meta-python but perhaps this went in ahead of the new recipe.

Ok, this would explain why I found python-rich when looking for it but not check-layer at the time.

Quoted 49 lines

Ideally they should have
gone in atomically.

Quoted 46 lines · Yi Zhao
Quoted 23 lines

Add python3-dbus and python3-rich[1] to RDEPENDS.

[1] https://github.com/canonical/netplan/pull/290

---
 .../meta-python/recipes-connectivity/netplan/netplan_0.106.bb   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan_0.106.bb +1 -2
index b7fe7ae3e..8c1eaa550 100644
@@ -26,7 +26,7 @@ PACKAGECONFIG ?= ""
 
 PACKAGECONFIG[tests] = ",,,python3-nose python3-coverage python3-netifaces python3-pycodestyle python3-pyflakes python3-pyyaml"
 
-RDEPENDS:${PN} = "python3 python3-core python3-netifaces python3-pyyaml util-linux-libuuid libnetplan"
+RDEPENDS:${PN} = "python3 python3-core python3-netifaces python3-pyyaml util-linux-libuuid libnetplan python3-dbus python3-rich"
 
 inherit pkgconfig systemd
 
--
Quoted 6 lines

2.25.1

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#101494): https://lists.openembedded.org/g/openembedded-devel/message/101494
Mute This Topic: https://lists.openembedded.org/mt/97472579/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#5 lore raw
In reply to Yi Zhao
Quoted 34 lines · Yi Zhao

Rich is a Python library for rich text and beautiful formatting in the terminal.

---
 .../python-rich/python3-rich_13.3.2.bb              | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 meta-python/recipes-extended/python-rich/

python3-rich_13.3.2.bb

(quoted diff) +0 -0

python3-rich_13.3.2.bb b/meta-python/recipes-extended/python-rich/ python3-rich_13.3.2.bb
new file mode 100644
index 000000000..b3a458ab8

meta-python/recipes-extended/python-rich/python3-rich_13.3.2.bb new file +1 -0
@@ -0,0 +1,13 @@
+SUMMARY = "Rich is a Python library for rich text and beautiful

formatting in the terminal"
+DESCRIPTION = "The Rich API makes it easy to add color and style to terminal output. \
+Rich can also render pretty tables, progress bars, markdown, syntax highlighted source code, \

meta-python/recipes-extended/python-rich/python3-rich_13.3.2.bb new file +8 -0
+tracebacks, and more."
+HOMEPAGE="https://github.com/Textualize/rich"
+SECTION = "devel/python"
+LICENSE = "MIT"
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b5f0b94fbc94f5ad9ae4efcf8a778303"
+
+SRC_URI[sha256sum] =

"91954fe80cfb7985727a467ca98a7618e5dd15178cc2da10f553b36a93859001"

meta-python/recipes-extended/python-rich/python3-rich_13.3.2.bb

Quoted 2 lines
meta-python/recipes-extended/python-rich/python3-rich_13.3.2.bb new file +2 -0
+
+inherit pypi setuptools3

This should instead inherit python_poetry_core, since it has a proper pyproject.toml
https://github.com/Textualize/rich/blob/master/pyproject.toml#L49

Also, please double check whether it needs any RDEPENDS.

Quoted 15 lines

--
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#101424):
https://lists.openembedded.org/g/openembedded-devel/message/101424
Mute This Topic: https://lists.openembedded.org/mt/97472578/924729
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#6 lore raw
Quoted 50 lines · Tim Orling

On Wed, Mar 8, 2023 at 5:57 AM Yi Zhao <[email protected]> wrote:

    Rich is a Python library for rich text and beautiful formatting in the
    terminal.

    Signed-off-by: Yi Zhao <[email protected]>
    ---
     .../python-rich/python3-rich_13.3.2.bb
    <https://urldefense.com/v3/__http://python3-rich_13.3.2.bb__;!!AjveYdw8EvQ!e8_Wo5LG5fpvw4ff3zhjHEbs4hRtcd2-e78YBs-lSshKsidmY4bIa0HbK4Ehx9rkUZAH5uYUSsZ23l6Lx_0-Ew$>
                | 13 +++++++++++++
     1 file changed, 13 insertions(+)
     create mode 100644
    meta-python/recipes-extended/python-rich/python3-rich_13.3.2.bb
    <https://urldefense.com/v3/__http://python3-rich_13.3.2.bb__;!!AjveYdw8EvQ!e8_Wo5LG5fpvw4ff3zhjHEbs4hRtcd2-e78YBs-lSshKsidmY4bIa0HbK4Ehx9rkUZAH5uYUSsZ23l6Lx_0-Ew$>

    diff --git
    a/meta-python/recipes-extended/python-rich/python3-rich_13.3.2.bb
    <https://urldefense.com/v3/__http://python3-rich_13.3.2.bb__;!!AjveYdw8EvQ!e8_Wo5LG5fpvw4ff3zhjHEbs4hRtcd2-e78YBs-lSshKsidmY4bIa0HbK4Ehx9rkUZAH5uYUSsZ23l6Lx_0-Ew$>
    b/meta-python/recipes-extended/python-rich/python3-rich_13.3.2.bb
    <https://urldefense.com/v3/__http://python3-rich_13.3.2.bb__;!!AjveYdw8EvQ!e8_Wo5LG5fpvw4ff3zhjHEbs4hRtcd2-e78YBs-lSshKsidmY4bIa0HbK4Ehx9rkUZAH5uYUSsZ23l6Lx_0-Ew$>
    new file mode 100644
    index 000000000..b3a458ab8
    --- /dev/null
    +++
    b/meta-python/recipes-extended/python-rich/python3-rich_13.3.2.bb
    <https://urldefense.com/v3/__http://python3-rich_13.3.2.bb__;!!AjveYdw8EvQ!e8_Wo5LG5fpvw4ff3zhjHEbs4hRtcd2-e78YBs-lSshKsidmY4bIa0HbK4Ehx9rkUZAH5uYUSsZ23l6Lx_0-Ew$>
    @@ -0,0 +1,13 @@
    +SUMMARY = "Rich is a Python library for rich text and beautiful
    formatting in the terminal"
    +DESCRIPTION = "The Rich API makes it easy to add color and style
    to terminal output. \
    +Rich can also render pretty tables, progress bars, markdown,
    syntax highlighted source code, \
    +tracebacks, and more."
    +HOMEPAGE="https://github.com/Textualize/rich
    <https://urldefense.com/v3/__https://github.com/Textualize/rich__;!!AjveYdw8EvQ!e8_Wo5LG5fpvw4ff3zhjHEbs4hRtcd2-e78YBs-lSshKsidmY4bIa0HbK4Ehx9rkUZAH5uYUSsZ23l5H96Hp3w$>"
    +SECTION = "devel/python"
    +LICENSE = "MIT"
    +
    +LIC_FILES_CHKSUM =
    "file://LICENSE;md5=b5f0b94fbc94f5ad9ae4efcf8a778303"
    +
    +SRC_URI[sha256sum] =
    "91954fe80cfb7985727a467ca98a7618e5dd15178cc2da10f553b36a93859001"
    +
    +inherit pypi setuptools3
Quoted 4 lines

This should instead inherit python_poetry_core, since it has a proper pyproject.toml
https://github.com/Textualize/rich/blob/master/pyproject.toml#L49 <https://urldefense.com/v3/__https://github.com/Textualize/rich/blob/master/pyproject.toml*L49__;Iw!!AjveYdw8EvQ!e8_Wo5LG5fpvw4ff3zhjHEbs4hRtcd2-e78YBs-lSshKsidmY4bIa0HbK4Ehx9rkUZAH5uYUSsZ23l6vd0-Waw$>

Also, please double check whether it needs any RDEPENDS.

Thanks. I will check this.

//Yi

Quoted 19 lines
    -- 
    2.25.1


    -=-=-=-=-=-=-=-=-=-=-=-
    Links: You receive all messages sent to this group.
    View/Reply Online (#101424):
    https://lists.openembedded.org/g/openembedded-devel/message/101424
    <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-devel/message/101424__;!!AjveYdw8EvQ!e8_Wo5LG5fpvw4ff3zhjHEbs4hRtcd2-e78YBs-lSshKsidmY4bIa0HbK4Ehx9rkUZAH5uYUSsZ23l7zyq4Lnw$>
    Mute This Topic: https://lists.openembedded.org/mt/97472578/924729
    <https://urldefense.com/v3/__https://lists.openembedded.org/mt/97472578/924729__;!!AjveYdw8EvQ!e8_Wo5LG5fpvw4ff3zhjHEbs4hRtcd2-e78YBs-lSshKsidmY4bIa0HbK4Ehx9rkUZAH5uYUSsZ23l5puEaR1Q$>
    Group Owner: [email protected]
    <mailto:openembedded-devel%[email protected]>
    Unsubscribe:
    https://lists.openembedded.org/g/openembedded-devel/unsub
    <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-devel/unsub__;!!AjveYdw8EvQ!e8_Wo5LG5fpvw4ff3zhjHEbs4hRtcd2-e78YBs-lSshKsidmY4bIa0HbK4Ehx9rkUZAH5uYUSsZ23l7UVm9-9A$>
    [[email protected]]
    -=-=-=-=-=-=-=-=-=-=-=-