Skip to contentSkip to conversation

python3-objgraph: Add recipe

PATCH New Khem Raj 1 participant 2 messages Apr 8, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 python3-objgraph: Add recipe

---
 .../ptest-packagelists-meta-python.inc        |  1 +
 .../python/python3-objgraph/run-ptest         |  2 ++
 .../python/python3-objgraph_3.6.2.bb          | 21 +++++++++++++++++++
 3 files changed, 24 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-objgraph/run-ptest
 create mode 100644 meta-python/recipes-devtools/python/python3-objgraph_3.6.2.bb
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
index fc6c164c3e..ca91065af0 100644
@@ -43,6 +43,7 @@ PTESTS_FAST_META_PYTHON = "\
     python3-msgpack \
     python3-multidict \
     python3-netaddr \
+    python3-objgraph \
     python3-ordered-set \
     python3-outcome \
     python3-parse \
meta-python/recipes-devtools/python/python3-objgraph/run-ptest new file +2 -0
new file mode 100644
index 0000000000..058a9ad9ee
@@ -0,0 +1,2 @@
+#!/bin/sh
+pytest --automake tests.py
meta-python/recipes-devtools/python/python3-objgraph_3.6.2.bb new file +21 -0
new file mode 100644
index 0000000000..a17b7aa5d6
@@ -0,0 +1,21 @@
+SUMMARY = "Draws Python object reference graphs with graphviz"
+HOMEPAGE = "https://mg.pov.lt/objgraph/"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=e48a556235f55ad7d4234475657f68a7"
+
+SRC_URI:append = " file://run-ptest"
+SRC_URI[sha256sum] = "00b9f2f40f7422e3c7f45a61c4dafdaf81f03ff0649d6eaec866f01030e51ad8"
+
+inherit pypi setuptools3 ptest-python-pytest
+
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[ipython] = ",,,python3-graphviz"
+
+do_install_ptest:append() {
+	install -Dm 0644 ${S}/tests.py ${D}${PTEST_PATH}/tests.py
+}
+
+RDEPENDS:${PN} += "python3-core python3-io"
+RDEPENDS:${PN}-ptest += "python3-tox"
+
+PYPI_PACKAGE = "objgraph"
author
#1 lore raw

PATCH 2/2 python3-multidict: Add ptest missing rdep on python3-objgraph

Newer version needs the new module objgraph to run tests

---
 meta-python/recipes-devtools/python/python3-multidict_6.3.2.bb | 1 +
 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python3-multidict_6.3.2.bb +1 -0
index 4e4d69bbd4..905cb7f4b2 100644
@@ -13,6 +13,7 @@ PYPI_SRC_URI = "git://github.com/aio-libs/multidict;branch=master;protocol=https
 S = "${WORKDIR}/git"
 
 RDEPENDS:${PN}-ptest += " \
+    python3-objgraph \
     python3-pytest-cov \
     python3-pytest-codspeed \
 "