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 F32AA15800F for ; Mon, 6 Feb 2023 21:34:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EF113E0845; Mon, 6 Feb 2023 21:34:20 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D6324E0845 for ; Mon, 6 Feb 2023 21:34:19 +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 0E95D340A9D for ; Mon, 6 Feb 2023 21:34:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6EF1389F for ; Mon, 6 Feb 2023 21:34:17 +0000 (UTC) From: "Haelwenn Monnier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Haelwenn Monnier" Message-ID: <1675708826.20fa7fcdad76c92f541b3d9e965450185f4dca87.lanodan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/moderngl/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/moderngl/moderngl-5.7.4.ebuild X-VCS-Directories: dev-python/moderngl/ X-VCS-Committer: lanodan X-VCS-Committer-Name: Haelwenn Monnier X-VCS-Revision: 20fa7fcdad76c92f541b3d9e965450185f4dca87 X-VCS-Branch: master Date: Mon, 6 Feb 2023 21:34: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: 896d5b5e-b468-428f-994e-6fb6c4c4316e X-Archives-Hash: 02a66fbd05ef0a3238b097a8e46e499c commit: 20fa7fcdad76c92f541b3d9e965450185f4dca87 Author: Henri Gasc eurecom fr> AuthorDate: Mon Feb 6 13:30:21 2023 +0000 Commit: Haelwenn Monnier hacktivis me> CommitDate: Mon Feb 6 18:40:26 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=20fa7fcd dev-python/moderngl: Enable tests Closes: https://bugs.gentoo.org/893394 Signed-off-by: Henri Gasc eurecom.fr> dev-python/moderngl/moderngl-5.7.4.ebuild | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/dev-python/moderngl/moderngl-5.7.4.ebuild b/dev-python/moderngl/moderngl-5.7.4.ebuild index 86e280104..64bd4a98e 100644 --- a/dev-python/moderngl/moderngl-5.7.4.ebuild +++ b/dev-python/moderngl/moderngl-5.7.4.ebuild @@ -6,7 +6,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{10..11} ) -inherit distutils-r1 +inherit distutils-r1 virtualx DESCRIPTION="Modern OpenGL binding for python" HOMEPAGE="https://github.com/moderngl/moderngl https://pypi.org/project/moderngl" @@ -34,14 +34,13 @@ BDEPEND=" " DEPEND="${BDEPEND}" -# Tests are deactivated because we cannot open display -# distutils_enable_tests pytest -# python_test() { -# cd "${T}" || die -# epytest "${S}"/tests -# } +distutils_enable_tests pytest -pkg_postinst() { - use test && ewarn The tests for this package are deactivated because the test display can not be opened. - use test && ewarn If you know how to solve this issue, please do so. +src_test() { + virtx distutils-r1_src_test +} +python_test() { + rm "${S}/tests/test_local.py" + cd "${T}" || die + epytest "${S}"/tests }