commit:     ddd6d52443f0e80d994f8bbf6ab5c07b4edc6b8a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 26 13:16:40 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Oct 26 13:36:48 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddd6d524

dev-python/qdarkstyle: Make tests more reliable

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/qdarkstyle/qdarkstyle-3.1.ebuild | 29 ++++++++++++++++++++---------
 1 file changed, 20 insertions(+), 9 deletions(-)

diff --git a/dev-python/qdarkstyle/qdarkstyle-3.1.ebuild 
b/dev-python/qdarkstyle/qdarkstyle-3.1.ebuild
index 1ef2f4f8a6d1..36689ad9eeb0 100644
--- a/dev-python/qdarkstyle/qdarkstyle-3.1.ebuild
+++ b/dev-python/qdarkstyle/qdarkstyle-3.1.ebuild
@@ -3,30 +3,41 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{10..12} )
 DISTUTILS_USE_PEP517=setuptools
 PYPI_NO_NORMALIZE=1
 PYPI_PN="QDarkStyle"
+PYTHON_COMPAT=( python3_{10..12} )
 
 inherit distutils-r1 optfeature pypi
 
 DESCRIPTION="A dark style sheet for QtWidgets application"
-HOMEPAGE="https://github.com/ColinDuquesnoy/QDarkStyleSheet";
+HOMEPAGE="
+       https://github.com/ColinDuquesnoy/QDarkStyleSheet/
+       https://pypi.org/project/QDarkStyle/
+"
 
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="amd64 x86"
 
-RDEPEND=">=dev-python/QtPy-1.9[gui,${PYTHON_USEDEP}]"
-
-DEPEND="test? (
-       dev-python/qtsass[${PYTHON_USEDEP}]
-       dev-python/watchdog[${PYTHON_USEDEP}]
-       >=dev-python/QtPy-1.9[gui,testlib,${PYTHON_USEDEP}]
-)"
+RDEPEND="
+       >=dev-python/QtPy-1.9[gui,${PYTHON_USEDEP}]
+"
+DEPEND="
+       test? (
+               dev-python/qtsass[${PYTHON_USEDEP}]
+               dev-python/watchdog[${PYTHON_USEDEP}]
+               >=dev-python/QtPy-1.9[gui,testlib,${PYTHON_USEDEP}]
+       )
+"
 
 distutils_enable_tests pytest
 
+python_test() {
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       epytest
+}
+
 pkg_postinst() {
        optfeature "Retrieve detailed system information and report bugs 
upstream" dev-python/helpdev
        optfeature "qdarkstyle.utils" dev-python/qtsass dev-python/watchdog

Reply via email to