From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 589E615823F for ; Fri, 17 Nov 2023 16:51:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9F6A42BC02F; Fri, 17 Nov 2023 16:51:21 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 pigeon.gentoo.org (Postfix) with ESMTPS id 8B0572BC02F for ; Fri, 17 Nov 2023 16:51:21 +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 C6366335D02 for ; Fri, 17 Nov 2023 16:51:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EB8B413A4 for ; Fri, 17 Nov 2023 16:51:17 +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: <1700239874.9216810e3fbb00a99cb75a4d0368f5b342322934.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/fonttools/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/fonttools/fonttools-4.44.3.ebuild X-VCS-Directories: dev-python/fonttools/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 9216810e3fbb00a99cb75a4d0368f5b342322934 X-VCS-Branch: master Date: Fri, 17 Nov 2023 16:51:17 +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: bd49446a-766a-4a88-abed-43747ce499ce X-Archives-Hash: c3ca7422b636d5d9ef3f917ac45d072e commit: 9216810e3fbb00a99cb75a4d0368f5b342322934 Author: Michał Górny gentoo org> AuthorDate: Fri Nov 17 16:50:53 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Nov 17 16:51:14 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9216810e dev-python/fonttools: Enable pypy3 Sponsored-by: Ex Makhina, Inc. exmakhina.com> Signed-off-by: Michał Górny gentoo.org> dev-python/fonttools/fonttools-4.44.3.ebuild | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/dev-python/fonttools/fonttools-4.44.3.ebuild b/dev-python/fonttools/fonttools-4.44.3.ebuild index 6d2a93312bc3..f21d112c4c8b 100644 --- a/dev-python/fonttools/fonttools-4.44.3.ebuild +++ b/dev-python/fonttools/fonttools-4.44.3.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( pypy3 python3_{10..12} ) PYTHON_REQ_USE="xml(+)" inherit distutils-r1 virtualx @@ -30,12 +30,13 @@ RDEPEND=" " BDEPEND=" native-extensions? ( - dev-python/cython[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/cython[${PYTHON_USEDEP}] + ' 'python*') ) test? ( dev-python/brotlicffi[${PYTHON_USEDEP}] app-arch/zopfli - dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] ) " @@ -60,6 +61,7 @@ python_prepare_all() { python_compile() { local -x FONTTOOLS_WITH_CYTHON=$(usex native-extensions) + [[ ${EPYTHON} == pypy3 ]] && FONTTOOLS_WITH_CYTHON=0 distutils-r1_python_compile } @@ -69,8 +71,17 @@ src_test() { } python_test() { + local EPYTEST_DESELECT=() + if [[ ${EPYTHON} == pypy3 ]] && + has_version "dev-python/pyxattr[${PYTHON_USEDEP}]" + then + EPYTEST_DESELECT+=( + # affected by a bug in PyPy/pyxattr + # https://github.com/iustin/pyxattr/issues/41 + Tests/t1Lib/t1Lib_test.py::ReadWriteTest::test_read_with_path + ) + fi + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - epytest Tests fontTools \ - -p rerunfailures --reruns=5 || - die "Tests failed with ${EPYTHON}" + nonfatal epytest Tests fontTools || die -n "Tests failed with ${EPYTHON}" }