commit:     c682943c6c484f0cef936ab834da1b89df85cbad
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Sep  8 13:55:52 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Sep  8 13:57:54 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c682943c

sci-mathematics/dunshire: Remove `det setup.py` false positive

Remove the pointless call to `distutils_enable_tests setup.py` that
is a false positive on packages broken by new dev-python/setuptools
versions.

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

 sci-mathematics/dunshire/dunshire-0.1.3-r1.ebuild | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

diff --git a/sci-mathematics/dunshire/dunshire-0.1.3-r1.ebuild 
b/sci-mathematics/dunshire/dunshire-0.1.3-r1.ebuild
index c98c5b6bf51d..348bf1942132 100644
--- a/sci-mathematics/dunshire/dunshire-0.1.3-r1.ebuild
+++ b/sci-mathematics/dunshire/dunshire-0.1.3-r1.ebuild
@@ -5,26 +5,32 @@ EAPI=8
 
 PYTHON_COMPAT=( python3_{10..12} )
 DISTUTILS_USE_PEP517=setuptools
+
 inherit distutils-r1
 
 DESCRIPTION="Python library to solve linear games over symmetric cones"
 HOMEPAGE="https://michael.orlitzky.com/code/dunshire/";
 SRC_URI="https://michael.orlitzky.com/code/releases/${P}.tar.gz";
+
 LICENSE="AGPL-3+"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="doc"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       dev-python/cvxopt[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       test? (
+               ${RDEPEND}
+       )
+"
 
-RDEPEND="dev-python/cvxopt[${PYTHON_USEDEP}]"
 DOCS=( doc/README.rst )
 
 distutils_enable_sphinx doc/source
 
-# There are no additional dependencies even though we're not really
-# using setup.py to run the test suite any more. The __main__.py
-# runner has its own exit code handling.
-distutils_enable_tests setup.py
-
 python_test() {
        PYTHONPATH="." "${EPYTHON}" test/__main__.py --verbose || die
 }

Reply via email to