commit: bd6595a76c11ff35c016b5be41c8326b187aaa55
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Wed Jan 20 10:49:33 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Wed Jan 20 10:49:33 2021 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=bd6595a7
sci-visualization/fsleyes-props: version bump, bump py targets
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
...ops-1.6.7.ebuild => fsleyes-props-1.7.0.ebuild} | 23 ++++++++++------------
1 file changed, 10 insertions(+), 13 deletions(-)
diff --git a/sci-visualization/fsleyes-props/fsleyes-props-1.6.7.ebuild
b/sci-visualization/fsleyes-props/fsleyes-props-1.7.0.ebuild
similarity index 72%
rename from sci-visualization/fsleyes-props/fsleyes-props-1.6.7.ebuild
rename to sci-visualization/fsleyes-props/fsleyes-props-1.7.0.ebuild
index c88acc938..ea8a11c42 100644
--- a/sci-visualization/fsleyes-props/fsleyes-props-1.6.7.ebuild
+++ b/sci-visualization/fsleyes-props/fsleyes-props-1.7.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-PYTHON_COMPAT=( python3_7 )
+PYTHON_COMPAT=( python3_{7,8} )
inherit distutils-r1 virtualx
@@ -16,14 +16,7 @@
SRC_URI="https://git.fmrib.ox.ac.uk/fsl/fsleyes/${MY_PN}/-/archive/${PV}/${MY_PN
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="test"
-DEPEND="
- test? (
- dev-python/pytest[${PYTHON_USEDEP}]
- )
- dev-python/setuptools[${PYTHON_USEDEP}]
- "
RDEPEND="
dev-python/deprecation[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
@@ -36,10 +29,14 @@ RDEPEND="
S="${WORKDIR}/${MY_PN}-${PV}"
-PATCHES=(
- "${FILESDIR}/fsleyes-props-1.6.7-coverage.patch"
- "${FILESDIR}/fsleyes-props-1.6.7-tests.patch"
-)
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ # do not depend on pytest-cov
+ sed -i -e '/addopts/d' setup.cfg || die
+
+ distutils-r1_python_prepare_all
+}
python_test() {
virtx pytest --verbose || die