commit: 7d8b3bf98c8946b25491588069fba0b4adb7fd11
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 27 04:05:39 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Mar 27 04:10:24 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d8b3bf9
dev-python/griffe: Bump to 1.6.3
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/griffe/Manifest | 1 +
dev-python/griffe/griffe-1.6.3.ebuild | 70 +++++++++++++++++++++++++++++++++++
2 files changed, 71 insertions(+)
diff --git a/dev-python/griffe/Manifest b/dev-python/griffe/Manifest
index 0aa73c43cc0e..431af65a02ed 100644
--- a/dev-python/griffe/Manifest
+++ b/dev-python/griffe/Manifest
@@ -1 +1,2 @@
DIST griffe-1.6.2.gh.tar.gz 394448 BLAKE2B
4a3b6d8bb2443fd9a03589167eb6fd1db7ecb0a52b8e3fa3003aebaddfbf402a65cc3111a1b975606da1984044029a46df7c9eb0105eea998534c5bb7fce3efb
SHA512
a8afd98d309a2cdbb12e6e83e00fc0a151ab287a15b69a16c86ed16020f66c60e249a5860960365f6605c3a284b69b9b8aba56b53376d1a097ab61006ed1402e
+DIST griffe-1.6.3.gh.tar.gz 395341 BLAKE2B
c2beca0377d6d4a43a9a833142d1750d10fb4584c451cc7c9758275bfb58e6078634e79a204794b3b360d7afff0b37d68fb12d2f845ae846a6aa97ccb696538d
SHA512
7b9197854ea8262bbcfa14fcd18dfb10e6bde253b92b7e88fc199f49f73d76f3641a6d3df8e383b4b1e2736a35f204eafe520347f00fd0f3c4f7bfd9a56d1e3e
diff --git a/dev-python/griffe/griffe-1.6.3.ebuild
b/dev-python/griffe/griffe-1.6.3.ebuild
new file mode 100644
index 000000000000..115d0beb002b
--- /dev/null
+++ b/dev-python/griffe/griffe-1.6.3.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=pdm-backend
+PYTHON_COMPAT=( pypy3 pypy3_11 python3_{10..13} )
+
+inherit distutils-r1
+
+DESCRIPTION="Signature generator for Python programs"
+HOMEPAGE="
+ https://mkdocstrings.github.io/griffe/
+ https://github.com/mkdocstrings/griffe/
+ https://pypi.org/project/griffe/
+"
+# Tests need files absent from the PyPI tarballs
+SRC_URI="
+ https://github.com/mkdocstrings/griffe/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~riscv"
+
+RDEPEND="
+ >=dev-python/colorama-0.4[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '
+ >=dev-python/backports-strenum-1.3[${PYTHON_USEDEP}]
+ ' 3.10)
+"
+BDEPEND="
+ test? (
+ >=dev-python/jsonschema-4.17[${PYTHON_USEDEP}]
+ >=dev-python/mkdocstrings-0.28.0[${PYTHON_USEDEP}]
+ >=dev-python/pytest-xdist-2.4[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+export PDM_BUILD_SCM_VERSION=${PV}
+
+python_test() {
+ local EPYTEST_DESELECT=(
+ # fragile to installed packages
+ # (failed on PySide2 for me)
+ tests/test_stdlib.py::test_fuzzing_on_stdlib
+ )
+
+ case ${EPYTHON} in
+ pypy3.11)
+ EPYTEST_DESELECT+=(
+ # https://github.com/pypy/pypy/issues/5226
+
tests/test_inspector.py::test_inspecting_objects_from_private_builtin_stdlib_moduless
+ )
+ ;&
+ pypy3*)
+ EPYTEST_DESELECT+=(
+ # tries importing CPython-specific modules
+ #
https://github.com/mkdocstrings/griffe/issues/362
+ tests/test_loader.py::test_load_builtin_modules
+ )
+ ;;
+ esac
+
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest
+}