From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2F49F1582EF for ; Tue, 25 Feb 2025 07:52:27 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 1A27234325C for ; Tue, 25 Feb 2025 07:52:27 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 933E1110480; Tue, 25 Feb 2025 07:51:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 8ED7B110480 for ; Tue, 25 Feb 2025 07:51:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 48C1934324F for ; Tue, 25 Feb 2025 07:51:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BE9FC2802 for ; Tue, 25 Feb 2025 07:51:48 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1740469900.7709c0efbde5505b63815e5be40bd92ded1360f0.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/griffe/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/griffe/griffe-1.5.7.ebuild X-VCS-Directories: dev-python/griffe/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 7709c0efbde5505b63815e5be40bd92ded1360f0 X-VCS-Branch: master Date: Tue, 25 Feb 2025 07:51:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3bf64453-db8d-4850-b3cf-76090e5c0e87 X-Archives-Hash: 385506fc3b3511b8e6a3d3c525070916 commit: 7709c0efbde5505b63815e5be40bd92ded1360f0 Author: Michał Górny gentoo org> AuthorDate: Tue Feb 25 06:47:58 2025 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Feb 25 07:51:40 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7709c0ef dev-python/griffe: Enable pypy3 Signed-off-by: Michał Górny gentoo.org> dev-python/griffe/griffe-1.5.7.ebuild | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/dev-python/griffe/griffe-1.5.7.ebuild b/dev-python/griffe/griffe-1.5.7.ebuild index 9b75031cdcd0..6eb68aa7e8c1 100644 --- a/dev-python/griffe/griffe-1.5.7.ebuild +++ b/dev-python/griffe/griffe-1.5.7.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=pdm-backend -PYTHON_COMPAT=( python3_{10..13} ) +PYTHON_COMPAT=( pypy3 python3_{10..13} ) inherit distutils-r1 @@ -42,8 +42,23 @@ distutils_enable_tests pytest export PDM_BUILD_SCM_VERSION=${PV} -EPYTEST_DESELECT=( - # fragile to installed packages - # (failed on PySide2 for me) - tests/test_stdlib.py::test_fuzzing_on_stdlib -) +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*) + 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 +}