Skip to contentSkip to conversation

python3-glances: add recipe

PATCH New Trevor Gamblin 1 participant 4 messages Aug 14

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 python3-glances: add recipe

From: Eilís Ní Fhlannagáin <[email protected]>

glances is a system monitoring tool similar to htop, with both local TUI and web server support for remote monitoring.

---
 .../python/python3-glances_4.3.2.bb           | 30 +++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-glances_4.3.2.bb
meta-python/recipes-devtools/python/python3-glances_4.3.2.bb new file +30 -0
new file mode 100644
index 0000000000..6acd8429b3
@@ -0,0 +1,30 @@
+SUMMARY = "Glances is an open-source system cross-platform monitoring tool."
+HOMEPAGE = "https://nicolargo.github.io/glances/"
+LICENSE = "LGPL-3.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=852ecadc0ac7e6f4d7144d5544a3815b"
+
+SRC_URI[sha256sum] = "736faa7faea3bcd58afffd6443974b4ed4b498627a71ce5d6c9640b7b5ddbd94"
+
+PYPI_PACKAGE = "glances"
+
+inherit pypi python_setuptools_build_meta
+
+# psutil/jinja2/packaging are oe-core; fastapi/uvicorn/defusedxml are
+# meta-python. 
+RDEPENDS:${PN} += " \
+    python3-psutil \
+    python3-packaging \
+    python3-defusedxml \
+    python3-fastapi \
+    python3-uvicorn \
+    python3-jinja2 \
+    python3-json \
+    python3-logging \
+    python3-asyncio \
+    python3-multiprocessing \
+    python3-netclient \
+    python3-xml \
+"
+
+# Optional fast-JSON accelerator glances uses if present.
+RRECOMMENDS:${PN} += "python3-orjson"
Signature · 1 line
2.55.0
#1 lore raw

PATCH 2/4 packagegroup-meta-python: add python3-glances

---
 .../recipes-core/packagegroups/packagegroup-meta-python.bb       | 1 +
 1 file changed, 1 insertion(+)
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +1 -0
index b129e62d16..f58f8a0f29 100644
@@ -151,6 +151,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-geojson \
     python3-geomet \
     python3-gevent \
+    python3-glances \
     python3-gmpy2 \
     python3-gmqtt \
     python3-gnupg \
Signature · 1 line
2.55.0
#2 lore raw

PATCH 3/4 python3-glances: add ptest

In reply to Trevor Gamblin

Example output:

|root@qemux86-64:~# ptest-runner python3-glances
|START: ptest-runner
|2026-08-14T13:48
|BEGIN: /usr/lib/python3-glances/ptest
|============================= test session starts ==============================
|platform linux -- Python 3.14.7, pytest-9.1.1, pluggy-1.6.0
|rootdir: /usr/lib/python3-glances/ptest
|plugins: putao-0.4, anyio-4.14.2, inline-snapshot-0.35.3
|collected 37 items
|
|tests/test_core.py .....................................                 [100%]
|
|============================== 37 passed in 8.02s ==============================
|DURATION: 8
|END: /usr/lib/python3-glances/ptest
|2026-08-14T13:48
|STOP: ptest-runner
|TOTAL: 1 FAIL: 0
|root@qemux86-64:~#
---
 .../recipes-devtools/python/python3-glances/run-ptest  |  3 +++
 .../recipes-devtools/python/python3-glances_4.3.2.bb   | 10 +++++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)
 create mode 100644 meta-python/recipes-devtools/python/python3-glances/run-ptest
meta-python/recipes-devtools/python/python3-glances/run-ptest new file +3 -0
new file mode 100644
index 0000000000..f56ca03dca
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+pytest tests/test_core.py
meta-python/recipes-devtools/python/python3-glances_4.3.2.bb +9 -1
index 6acd8429b3..9b8e529c87 100644
@@ -7,7 +7,11 @@ SRC_URI[sha256sum] = "736faa7faea3bcd58afffd6443974b4ed4b498627a71ce5d6c9640b7b5
 
 PYPI_PACKAGE = "glances"
 
-inherit pypi python_setuptools_build_meta
+inherit pypi python_setuptools_build_meta ptest-python-pytest
+
+SRC_URI += " \
+	file://run-ptest \
+"
 
 # psutil/jinja2/packaging are oe-core; fastapi/uvicorn/defusedxml are
 # meta-python. 
@@ -26,5 +30,9 @@ RDEPENDS:${PN} += " \
     python3-xml \
 "
 
+RDEPENDS:${PN}-ptest += " \
+    python3-requests \
+"
+
 # Optional fast-JSON accelerator glances uses if present.
 RRECOMMENDS:${PN} += "python3-orjson"
Signature · 1 line
2.55.0
#3 lore raw

PATCH 4/4 ptest-packagelists-meta-python: add python3-glances to FAST list

In reply to Trevor Gamblin
---
 meta-python/conf/include/ptest-packagelists-meta-python.inc | 1 +
 1 file changed, 1 insertion(+)
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
index 6dd53e8a8a..6904b5b3d9 100644
@@ -35,6 +35,7 @@ PTESTS_FAST_META_PYTHON = "\
     python3-freezegun \
     python3-fsspec \
     python3-geojson \
+    python3-glances \
     python3-google-auth-oauthlib \
     python3-gpiod \
     python3-gpt-image \
Signature · 1 line
2.55.0