From 5a2f1b6fc00dc71645a0fd06b742ee05d6c51159 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 4 Aug 2024 22:06:11 -0400 Subject: sci-mathematics/dunshire: don't use setup.py for tests Closes: https://bugs.gentoo.org/937324 Signed-off-by: Michael Orlitzky --- sci-mathematics/dunshire/dunshire-0.1.3-r1.ebuild | 30 +++++++++++++++++++++++ sci-mathematics/dunshire/dunshire-0.1.3.ebuild | 26 -------------------- 2 files changed, 30 insertions(+), 26 deletions(-) create mode 100644 sci-mathematics/dunshire/dunshire-0.1.3-r1.ebuild delete mode 100644 sci-mathematics/dunshire/dunshire-0.1.3.ebuild (limited to 'sci-mathematics') diff --git a/sci-mathematics/dunshire/dunshire-0.1.3-r1.ebuild b/sci-mathematics/dunshire/dunshire-0.1.3-r1.ebuild new file mode 100644 index 000000000000..36354f6a301d --- /dev/null +++ b/sci-mathematics/dunshire/dunshire-0.1.3-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +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" + +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 +} diff --git a/sci-mathematics/dunshire/dunshire-0.1.3.ebuild b/sci-mathematics/dunshire/dunshire-0.1.3.ebuild deleted file mode 100644 index ac63ace2d98f..000000000000 --- a/sci-mathematics/dunshire/dunshire-0.1.3.ebuild +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -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" - -RDEPEND="dev-python/cvxopt[${PYTHON_USEDEP}]" -DOCS=( doc/README.rst ) - -distutils_enable_sphinx doc/source -distutils_enable_tests setup.py - -python_test() { - esetup.py test -} -- cgit v1.2.3-65-gdbad