commit: 63c365e6675bd7f731ee5c2a300c9fe9ebf604e2
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 22 06:29:44 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jan 22 07:20:51 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63c365e6
dev-python/id: Enable pypy3
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/id/id-1.5.0.ebuild | 24 ++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/dev-python/id/id-1.5.0.ebuild b/dev-python/id/id-1.5.0.ebuild
index d24f077c42c9..ec267d18d2c3 100644
--- a/dev-python/id/id-1.5.0.ebuild
+++ b/dev-python/id/id-1.5.0.ebuild
@@ -1,10 +1,10 @@
-# Copyright 2024 Gentoo Authors
+# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=flit
-PYTHON_COMPAT=( python3_{10..13} )
+PYTHON_COMPAT=( pypy3 python3_{10..13} )
inherit distutils-r1
@@ -33,3 +33,23 @@ BDEPEND="
"
distutils_enable_tests pytest
+
+python_test() {
+ local EPYTEST_DESELECT=()
+
+ case ${EPYTHON} in
+ pypy3)
+ EPYTEST_DESELECT+=(
+ # https://github.com/di/id/issues/287
+
test/unit/internal/oidc/test_ambient.py::test_gcp_bad_env
+
test/unit/internal/oidc/test_ambient.py::test_gcp_wrong_product
+
test/unit/internal/oidc/test_ambient.py::test_detect_gcp_request_fails
+
test/unit/internal/oidc/test_ambient.py::test_detect_gcp_request_timeout
+
test/unit/internal/oidc/test_ambient.py::test_detect_gcp
+ )
+ ;;
+ esac
+
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest
+}