summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2025-03-20 19:57:10 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2025-03-20 20:17:38 +0200
commitc830e06d4da069eb9ac834ec1ce09c3518aa2405 (patch)
treeaee891d1221c22cfcd1f738981c0d0928773f0f2 /dev-python
parentefc1e89aa53d97211c9fc82d403c768ba87f9cc8 (diff)
downloadgentoo-c830e06d4da069eb9ac834ec1ce09c3518aa2405.tar.gz
gentoo-c830e06d4da069eb9ac834ec1ce09c3518aa2405.tar.bz2
gentoo-c830e06d4da069eb9ac834ec1ce09c3518aa2405.zip
dev-python/griffe: add 1.6.2
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/griffe/Manifest1
-rw-r--r--dev-python/griffe/griffe-1.6.2.ebuild70
2 files changed, 71 insertions, 0 deletions
diff --git a/dev-python/griffe/Manifest b/dev-python/griffe/Manifest
index ec77cedf25c9..cf53b7202221 100644
--- a/dev-python/griffe/Manifest
+++ b/dev-python/griffe/Manifest
@@ -1,2 +1,3 @@
DIST griffe-1.6.0.gh.tar.gz 393773 BLAKE2B 62f1ed8109353013e2ef10bf32359dc66c467641b62ff0ecceb49718cafc773c5aab2cc151797e023dbff96f476e8b67d3bd7f5b664e3f5d6ea96f20e1744b60 SHA512 8ce0565ba8c43afb262d7e65b2eab369b10a57d4855a226a83ffea60bd83d7f624d5f15876c51dd20861ba5d652c012245bd55dd87dd0beeda75305f26f330bf
DIST griffe-1.6.1.gh.tar.gz 394343 BLAKE2B 0ec76016c2701e08e4f0f8061e31aad830fb209f37c2a175d17bd28ecb533f60e59196ebd5c3c60869ac7fdf6579ee10cc66a7adeddd51da10a95e5aceded856 SHA512 eb62f6e77937dc8dd740cd0d77b7f0157a5be310d5813c9f3e26787bb8d1776a5318e0e8d917693b9bb3a42c0ea8715367752328b1c9306e594b1f6ba535d8d0
+DIST griffe-1.6.2.gh.tar.gz 394448 BLAKE2B 4a3b6d8bb2443fd9a03589167eb6fd1db7ecb0a52b8e3fa3003aebaddfbf402a65cc3111a1b975606da1984044029a46df7c9eb0105eea998534c5bb7fce3efb SHA512 a8afd98d309a2cdbb12e6e83e00fc0a151ab287a15b69a16c86ed16020f66c60e249a5860960365f6605c3a284b69b9b8aba56b53376d1a097ab61006ed1402e
diff --git a/dev-python/griffe/griffe-1.6.2.ebuild b/dev-python/griffe/griffe-1.6.2.ebuild
new file mode 100644
index 000000000000..115d0beb002b
--- /dev/null
+++ b/dev-python/griffe/griffe-1.6.2.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
+}