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 1A4C0158010 for ; Mon, 6 Feb 2023 21:34:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2831AE085A; Mon, 6 Feb 2023 21:34:21 +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 pigeon.gentoo.org (Postfix) with ESMTPS id 0F1BFE085A for ; Mon, 6 Feb 2023 21:34:20 +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 C72D3340A9F 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 5BDE7899 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.ad9d25aaf86c7316f784c52b449d84eb968cc9ee.lanodan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/glcontext/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/glcontext/glcontext-2.3.7.ebuild X-VCS-Directories: dev-python/glcontext/ X-VCS-Committer: lanodan X-VCS-Committer-Name: Haelwenn Monnier X-VCS-Revision: ad9d25aaf86c7316f784c52b449d84eb968cc9ee 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: eef29a1f-b419-415a-925e-3d52b1c96635 X-Archives-Hash: f59c5054038bd86e3735f7187e04970c commit: ad9d25aaf86c7316f784c52b449d84eb968cc9ee Author: Henri Gasc eurecom fr> AuthorDate: Mon Feb 6 12:26:41 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=ad9d25aa dev-python/glcontext: Allow test Signed-off-by: Henri Gasc eurecom.fr> dev-python/glcontext/glcontext-2.3.7.ebuild | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/dev-python/glcontext/glcontext-2.3.7.ebuild b/dev-python/glcontext/glcontext-2.3.7.ebuild index 6c7170a43..cc9401ad1 100644 --- a/dev-python/glcontext/glcontext-2.3.7.ebuild +++ b/dev-python/glcontext/glcontext-2.3.7.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/glcontext https://pypi.org/project/glcontext" @@ -31,18 +31,12 @@ BDEPEND=" " DEPEND="${BDEPEND}" -# Tests are deactivated because we cannot open display -# distutils_enable_tests pytest -# src_test() { -# virtx distutils-r1_src_test -# } - -# python_test() { -# cd "${T}" || die -# epytest "${S}"/tests || die "Tests failed with ${EPYTHON}" -# } +distutils_enable_tests pytest +src_test() { + virtx distutils-r1_src_test +} -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. +python_test() { + cd "${T}" || die + epytest "${S}"/tests || die "Tests failed with ${EPYTHON}" }