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 DFF1715802F for ; Sun, 12 Mar 2023 17:38:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 053A2E0788; Sun, 12 Mar 2023 17:38:00 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 B54EEE0788 for ; Sun, 12 Mar 2023 17:37:59 +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 4D009340DB8 for ; Sun, 12 Mar 2023 17:37:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C73E88DE for ; Sun, 12 Mar 2023 17:37:56 +0000 (UTC) From: "Henri Gasc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Henri Gasc" Message-ID: <1678642667.5c8626d61a59319a1311936d997946fe98798ac5.gasc@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pyrr/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/pyrr/pyrr-0.10.3.ebuild X-VCS-Directories: dev-python/pyrr/ X-VCS-Committer: gasc X-VCS-Committer-Name: Henri Gasc X-VCS-Revision: 5c8626d61a59319a1311936d997946fe98798ac5 X-VCS-Branch: dev Date: Sun, 12 Mar 2023 17:37:56 +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: 1adcdaf8-9028-484e-9a64-d43c94183085 X-Archives-Hash: 1f737dc9d03736d93c203ff72a28bfc4 commit: 5c8626d61a59319a1311936d997946fe98798ac5 Author: Henri Gasc eurecom fr> AuthorDate: Sun Mar 12 12:00:23 2023 +0000 Commit: Henri Gasc eurecom fr> CommitDate: Sun Mar 12 17:37:47 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5c8626d6 dev-python/pyrr: unkeyword 0.10.3 for ~x86, allow tests and doc Closes: https://bugs.gentoo.org/893460 Signed-off-by: Henri Gasc eurecom.fr> dev-python/pyrr/pyrr-0.10.3.ebuild | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/dev-python/pyrr/pyrr-0.10.3.ebuild b/dev-python/pyrr/pyrr-0.10.3.ebuild index 574118c51..038b8a499 100644 --- a/dev-python/pyrr/pyrr-0.10.3.ebuild +++ b/dev-python/pyrr/pyrr-0.10.3.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_COMPAT=( python3_{9..11} ) inherit distutils-r1 @@ -15,32 +15,39 @@ S="${WORKDIR}/Pyrr-${PV}" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="~amd64" +IUSE="doc" -RDEPEND="" BDEPEND=" dev-python/multipledispatch[${PYTHON_USEDEP}] dev-python/numpy[${PYTHON_USEDEP}] - dev-python/setuptools[${PYTHON_USEDEP}] - dev-python/wheel[${PYTHON_USEDEP}] - dev-python/sphinx[${PYTHON_USEDEP}] + doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + ) " DEPEND="${BDEPEND}" python_compile() { distutils-r1_python_compile - find ./ -type f -exec sed -i 's/sphinx.ext.pngmath/sphinx.ext.imgmath/g' {} \; - emake man -C docs + if use doc; then + find "${S}/docs" -type f -exec sed -i 's/sphinx\.ext\.pngmath/sphinx\.ext\.imgmath/g' {} \; + emake man -C docs + fi } python_install() { distutils-r1_python_install - doman "${S}/docs/build/man/pyrr.1" + use doc && doman "${S}/docs/build/man/pyrr.1" } -# The tests failed with `module 'numpy' has no attribute 'float'` -# distutils_enable_tests pytest -# python_test() { -# cd "${T}" || die -# epytest "${S}"/tests || die "Tests failed with ${EPYTHON}" -# } +distutils_enable_tests pytest +python_test() { + local EPYTEST_DESELECT="tests/test_matrix44.py::test_matrix44::test_create_perspective_projection_matrix_dtype" + find "${S}/tests" -iname "*.py" -exec sed -i \ + -e 's/np\.float/float/g' \ + -e 's/float32/np\.float32/g' \ + -e 's/np\.int/int/g' \ + -e 's/int16/np\.int16/g' \ + {} \; + epytest "${S}/tests" || die "Tests failed with ${EPYTHON}" +}