summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-10-10 14:09:59 +0200
committerMichał Górny <mgorny@gentoo.org>2024-10-10 14:11:24 +0200
commit445dbd613895d507d41ba4a267f2e5eecdc8c1b6 (patch)
tree3a56f4db40a877c756ddd5db8238062394dacfb6 /dev-python/objgraph
parentsys-kernel/vanilla-sources: drop 6.6.55 (diff)
downloadgentoo-445dbd613895d507d41ba4a267f2e5eecdc8c1b6.tar.gz
gentoo-445dbd613895d507d41ba4a267f2e5eecdc8c1b6.tar.bz2
gentoo-445dbd613895d507d41ba4a267f2e5eecdc8c1b6.zip
dev-python/objgraph: Bump to 3.6.2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/objgraph')
-rw-r--r--dev-python/objgraph/Manifest1
-rw-r--r--dev-python/objgraph/objgraph-3.6.2.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/objgraph/Manifest b/dev-python/objgraph/Manifest
index 94b9ed464945..2dd24c141e17 100644
--- a/dev-python/objgraph/Manifest
+++ b/dev-python/objgraph/Manifest
@@ -1 +1,2 @@
DIST objgraph-3.6.1.tar.gz 759513 BLAKE2B 875a4027b79446302755d00296ce0ae59d267f3996f206c8319a93cc8d5f53a0f26cf4701047d3b03beb3906bc5d70c23cdecfc135204d9fd9fea55d85e07a65 SHA512 9a15340aedb31e849739ec0667fefb52f99a94244540a7e1c0387299ad5fbbde05521ea91b959bc96204c4a62f796183377c6031af9c6a67828a91939f15225a
+DIST objgraph-3.6.2.tar.gz 759524 BLAKE2B 23d1154a613ca417c332871c7905571f48aea4ef6ff24a236e58fdc76d74254490f04b7e50c1ee7fd190864448f4bb83c05127d438d2d72c4bb5c9a0dd247491 SHA512 7a1edaddb6bc7c57d77d8631019c183a198bb570725b71ddc49ee54fc1be8f54471175957899794ff2c51a57fd68ee8b856ced661f7efc1023dd7f5b0f5b714f
diff --git a/dev-python/objgraph/objgraph-3.6.2.ebuild b/dev-python/objgraph/objgraph-3.6.2.ebuild
new file mode 100644
index 000000000000..05cec7a138eb
--- /dev/null
+++ b/dev-python/objgraph/objgraph-3.6.2.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} pypy3 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Draws Python object reference graphs with graphviz"
+HOMEPAGE="
+ https://github.com/mgedmin/objgraph/
+ https://pypi.org/project/objgraph/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+RDEPEND="
+ media-gfx/graphviz
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+ local EPYTEST_DESELECT=(
+ # unhappy about pytest
+ tests.py::AtAddrsTest::test_at_addrs
+ )
+
+ case ${EPYTHON} in
+ pypy3)
+ EPYTEST_DESELECT+=(
+ # CPython GC
+ tests.py::ByTypeTest::test_new_garbage
+
+ # repr() mismatch
+ tests.py::StringRepresentationTest::test_short_repr_mocked_instance_method_bound
+ tests.py::StringRepresentationTest::test_short_repr_mocked_instance_method_bound_with_mocked_name
+ )
+ ;;
+ esac
+
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ # TODO: figure out how to run doctests
+ epytest tests.py
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/* )
+ distutils-r1_python_install_all
+}