commit: 86061d498346522c8c162ca8074bf130a7f7704b
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 12 12:30:58 2026 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Feb 12 13:38:27 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86061d49
dev-python/griffe: Bump to 2.0.0
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/griffe/Manifest | 1 +
dev-python/griffe/griffe-2.0.0.ebuild | 71 +++++++++++++++++++++++++++++++++++
2 files changed, 72 insertions(+)
diff --git a/dev-python/griffe/Manifest b/dev-python/griffe/Manifest
index 4ae4858c17a1..be5f9b9717da 100644
--- a/dev-python/griffe/Manifest
+++ b/dev-python/griffe/Manifest
@@ -1 +1,2 @@
DIST griffe-1.15.0.gh.tar.gz 427423 BLAKE2B
a8df8deab830589a46963cae03fa24ee64c5c06050b1dde3e5f0c7d8dd34764e6bccad5974f3c97fe45b67fd74aacc21afc9fdaba6aedc55f4319ce125379189
SHA512
9dc9d57dd88de7a5649639d3ce7b2bc37c5401ce82c7f6a769329ec51d97b9e97c9b2c9c3c0a399adeda66439b9842b26e8a4cbf44096a540af5e924484cce65
+DIST griffe-2.0.0.gh.tar.gz 433002 BLAKE2B
2a9acd183c24aee3fb7ba0ad4b92d93b198178d721419eddff64eebbf6cdbc22f3cb325fa083072959ef3b3d278e003ce3df1bb10aa7d17184f0af7237f9d523
SHA512
df7ce33be63a78f0d307a465e00b605a0718640a2c8c1089e54af2fb1aa39affc38df88b2705d413a68dbf646e696798bbf70423a4a46f8ae8f50955465d6bd0
diff --git a/dev-python/griffe/griffe-2.0.0.ebuild
b/dev-python/griffe/griffe-2.0.0.ebuild
new file mode 100644
index 000000000000..577a28b9fbeb
--- /dev/null
+++ b/dev-python/griffe/griffe-2.0.0.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( python3_{12..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"
+
+# pdm-backend used via hatchling hooks
+BDEPEND="
+ dev-python/pdm-backend[${PYTHON_USEDEP}]
+ dev-python/uv-dynamic-versioning[${PYTHON_USEDEP}]
+ dev-vcs/git
+ test? (
+ >=dev-python/griffe-inherited-docstrings-1.1.2[${PYTHON_USEDEP}]
+ >=dev-python/jsonschema-4.17[${PYTHON_USEDEP}]
+ >=dev-python/mkdocstrings-0.28.0[${PYTHON_USEDEP}]
+ )
+"
+
+EPYTEST_PLUGINS=( pytest-gitconfig )
+distutils_enable_tests pytest
+
+EPYTEST_DESELECT=(
+ # fragile to installed packages
+ # (failed on PySide2 for me)
+ tests/test_stdlib.py::test_fuzzing_on_stdlib
+)
+
+src_compile() {
+ # The build system combines hatchling with git hooks from pdm-backend
+ # and uv-dynamic-versioning. It does not respect PDM_BUILD_SCM_VERSION,
+ # and uv-dynamic-versioning does not work without a git repository
+ # at all, even though it does not use it for anything.
+ git config --global user.email "[email protected]" || die
+ git config --global user.name "Your Name" || die
+ git init || die
+ git commit --allow-empty -m "force version" || die
+ git tag "${PV}" || die
+
+ distutils-r1_src_compile
+}
+
+python_compile() {
+ # This packages is a horrendous mess. It's split into three packages,
+ # and tests require all of them.
+ local pkg
+ for pkg in packages/griffe{lib,cli} .; do
+ pushd "${pkg}" >/dev/null || die
+ distutils-r1_python_compile
+ popd >/dev/null || die
+ done
+}