From d9f7e52434f51d0d0ad905b03fd366bc9d1ad270 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [feature/flatten]" Date: Sun, 2 Aug 2020 12:26:27 +0000 Subject: Updating liguros repo --- dev-python/mpmath/mpmath-1.1.0.ebuild | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'dev-python/mpmath') diff --git a/dev-python/mpmath/mpmath-1.1.0.ebuild b/dev-python/mpmath/mpmath-1.1.0.ebuild index 871f6a9c1b74..3937887c2651 100644 --- a/dev-python/mpmath/mpmath-1.1.0.ebuild +++ b/dev-python/mpmath/mpmath-1.1.0.ebuild @@ -1,11 +1,12 @@ # Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 +DISTUTILS_USE_SETUPTOOLS=no PYTHON_COMPAT=( python3_{5,6,7,8,9} ) -inherit distutils-r1 eutils +inherit distutils-r1 eutils virtualx DESCRIPTION="Python library for arbitrary-precision floating-point arithmetic" HOMEPAGE="https://mpmath.org/" @@ -14,7 +15,6 @@ SRC_URI="https://github.com/fredrik-johansson/${PN}/archive/${PV}.tar.gz -> ${P} LICENSE="BSD" SLOT="0" KEYWORDS="amd64 ~arm ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" - IUSE="gmp matplotlib test" RESTRICT="!test? ( test )" @@ -27,16 +27,17 @@ DEPEND="${RDEPEND} python_prepare_all() { local PATCHES=( "${FILESDIR}/${PN}-1.0.0.patch" - ) - - # this test requires X - rm ${PN}/tests/test_visualization.py || die + ) distutils-r1_python_prepare_all } +src_test() { + virtx distutils-r1_src_test +} + python_test() { pushd ${PN}/tests >/dev/null - ${EPYTHON} runtests.py -local + ${EPYTHON} runtests.py -local || die "Tests failed with ${EPYTHON}" popd >/dev/null } -- cgit v1.3