mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
dev-python/glcontext: Allow test
Signed-off-by: Henri Gasc <gasc@eurecom.fr>
This commit is contained in:
@@ -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}"
|
||||
# }
|
||||
|
||||
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.
|
||||
distutils_enable_tests pytest
|
||||
src_test() {
|
||||
virtx distutils-r1_src_test
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cd "${T}" || die
|
||||
epytest "${S}"/tests || die "Tests failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user