commit:     79d3a797c663ac615c346c6e593c098da267238f
Author:     John Helmert III <ajak <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 31 19:59:20 2024 +0000
Commit:     John Helmert III <ajak <AT> gentoo <DOT> org>
CommitDate: Sun Mar 31 21:20:05 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79d3a797

sys-process/glances: avoid distutils_enable_tests setup.py

Bug: https://bugs.gentoo.org/927530
Signed-off-by: John Helmert III <ajak <AT> gentoo.org>

 sys-process/glances/glances-3.3.0-r1.ebuild | 8 ++++++--
 sys-process/glances/glances-3.4.0.3.ebuild  | 8 ++++++--
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/sys-process/glances/glances-3.3.0-r1.ebuild 
b/sys-process/glances/glances-3.3.0-r1.ebuild
index 84279372149c..7b155a7902b5 100644
--- a/sys-process/glances/glances-3.3.0-r1.ebuild
+++ b/sys-process/glances/glances-3.3.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -35,7 +35,7 @@ PATCHES=(
        "${FILESDIR}/${PN}-3.2.5-disable-update-check.patch"
 )
 
-distutils_enable_tests setup.py
+distutils_enable_tests unittest
 distutils_enable_sphinx docs --no-autodoc
 
 pkg_setup() {
@@ -55,6 +55,10 @@ python_prepare_all() {
        distutils-r1_python_prepare_all
 }
 
+python_test() {
+       "${EPYTHON}" unitest.py || die "tests failed with ${EPYTHON}"
+}
+
 python_install_all() {
        # add an intended file from original data set from setup.py to DOCS
        local DOCS=( README.rst CONTRIBUTING.md conf/glances.conf )

diff --git a/sys-process/glances/glances-3.4.0.3.ebuild 
b/sys-process/glances/glances-3.4.0.3.ebuild
index acae2879ed60..c6302cc70e1c 100644
--- a/sys-process/glances/glances-3.4.0.3.ebuild
+++ b/sys-process/glances/glances-3.4.0.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -36,7 +36,7 @@ PATCHES=(
        "${FILESDIR}/${PN}-3.4.0.3-disable-update-check.patch"
 )
 
-distutils_enable_tests setup.py
+distutils_enable_tests unittest
 distutils_enable_sphinx docs --no-autodoc
 
 pkg_setup() {
@@ -56,6 +56,10 @@ python_prepare_all() {
        distutils-r1_python_prepare_all
 }
 
+python_test() {
+       "${EPYTHON}" unitest.py || echo "tests failed with ${EPYTHON}"
+}
+
 python_install_all() {
        # add an intended file from original data set from setup.py to DOCS
        local DOCS=( README.rst CONTRIBUTING.md conf/glances.conf )

Reply via email to