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 5C31D1580F6 for ; Mon, 19 May 2025 14:00:57 +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 3DB61343211 for ; Mon, 19 May 2025 14:00:57 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 4879E1103DE; Mon, 19 May 2025 14:00:54 +0000 (UTC) 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 bobolink.gentoo.org (Postfix) with ESMTPS id 3C75A1103DE for ; Mon, 19 May 2025 14:00:54 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D9E8333BEFF for ; Mon, 19 May 2025 14:00:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5349223F5 for ; Mon, 19 May 2025 14:00:52 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1747663204.6a2059bdf28fe8fe2d9639ea26c7ae1a5cc52c6e.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cython/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/cython/cython-3.1.1.ebuild dev-python/cython/metadata.xml X-VCS-Directories: dev-python/cython/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 6a2059bdf28fe8fe2d9639ea26c7ae1a5cc52c6e X-VCS-Branch: master Date: Mon, 19 May 2025 14:00:52 +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: 5e36c818-bcb2-4647-871b-636bf7e4866b X-Archives-Hash: e4486a0d503a468d96331800627db04d commit: 6a2059bdf28fe8fe2d9639ea26c7ae1a5cc52c6e Author: Sam James gentoo org> AuthorDate: Mon May 19 13:55:18 2025 +0000 Commit: Sam James gentoo org> CommitDate: Mon May 19 14:00:04 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a2059bd dev-python/cython: rework tests * Make numpy conditional on USE=test-full numpy doesn't pass tests on some niche arches and maybe we'll even be able to destable it on the really niche arches at some point thanks to this. * Make numpy conditional on PYTHON_FULLY_TESTED numpy depends on cython and porting numpy to a new Python impl often takes a while, so let's make it easy to get partial coverage. * Fix numpy test dep (doesn't need to be <2 for a while now). Sent https://github.com/cython/cython/pull/6895 upstream as well. * Enable tests for py3.13, py3.14, and pypy3_11 * More robust skips for coverage tests which have had problems before They're not interesting for us in packaging. * Add some notes about other possible test deps we could add in future. Signed-off-by: Sam James gentoo.org> dev-python/cython/cython-3.1.1.ebuild | 78 ++++++++++++++++++++++++++--------- dev-python/cython/metadata.xml | 6 +++ 2 files changed, 64 insertions(+), 20 deletions(-) diff --git a/dev-python/cython/cython-3.1.1.ebuild b/dev-python/cython/cython-3.1.1.ebuild index 3931c3e0fe2e..51b147eecc22 100644 --- a/dev-python/cython/cython-3.1.1.ebuild +++ b/dev-python/cython/cython-3.1.1.ebuild @@ -5,8 +5,9 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_TESTED=( python3_{11..12} ) -PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" pypy3_11 python3_13{,t} python3_14{,t} ) +PYTHON_FULLY_TESTED=( python3_{11..14} ) +PYTHON_TESTED=( "${PYTHON_FULLY_TESTED[@]}" pypy3_11 ) +PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_{13,14}t ) PYTHON_REQ_USE="threads(+)" inherit distutils-r1 multiprocessing pypi toolchain-funcs @@ -21,15 +22,17 @@ HOMEPAGE=" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" -IUSE="test" +IUSE="test test-full" RESTRICT="!test? ( test )" BDEPEND=" ${RDEPEND} test? ( - $(python_gen_cond_dep ' - =3.13. + --exclude 'subinterpreters_threading_stress_test' + ) + + if [[ ${EPYTHON} == pypy3* ]] ; then + testargs+=( + # Recursion issue + --exclude 'run.if_else_expr' + --exclude 'run.test_patma*' + # Slight output difference (missing '<') + --exclude 'run.cpp_exception_ptr_just_handler' + + ) + fi + + # Keep test-full for numpy as it's large and doesn't pass tests itself + # on niche arches. + if ! use test-full || ! has "${EPYTHON/./_}" "${PYTHON_FULLY_TESTED[@]}"; then + testargs+=( + --exclude 'run.numpy*' + --exclude 'run.ufunc' + --exclude 'numpy*' + ) + fi + + "${PYTHON}" runtests.py "${testargs[@]}" || die "Tests fail with ${EPYTHON}" } python_install_all() { diff --git a/dev-python/cython/metadata.xml b/dev-python/cython/metadata.xml index 4960428b8c6b..fd01ff3d8380 100644 --- a/dev-python/cython/metadata.xml +++ b/dev-python/cython/metadata.xml @@ -10,6 +10,12 @@ language as easy as Python itself. It's based on Pyrex, but supports more cutting edge functionality and optimizations. + + + Run test suite in full via additional (large) test + dependencies, like dev-python/numpy. + + Cython cython/cython