From a8faf50d38cb8f8d53b08f20262854a3fa6bae4a Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 8 Apr 2025 11:43:41 -0700 Subject: python3-objgraph: Add recipe Signed-off-by: Khem Raj --- .../python/python3-objgraph/run-ptest | 2 ++ .../python/python3-objgraph_3.6.2.bb | 21 +++++++++++++++++++++ 2 files changed, 23 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 (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-objgraph/run-ptest b/meta-python/recipes-devtools/python/python3-objgraph/run-ptest new file mode 100644 index 0000000000..058a9ad9ee --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-objgraph/run-ptest @@ -0,0 +1,2 @@ +#!/bin/sh +pytest --automake tests.py diff --git a/meta-python/recipes-devtools/python/python3-objgraph_3.6.2.bb b/meta-python/recipes-devtools/python/python3-objgraph_3.6.2.bb new file mode 100644 index 0000000000..a17b7aa5d6 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-objgraph_3.6.2.bb @@ -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" -- cgit v1.2.3-54-g00ecf