From: "Andrew Ammerlaan" <andrewammerlaan@riseup.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-visualization/fsleyes-widgets/
Date: Wed, 20 Jan 2021 12:29:37 +0000 (UTC) [thread overview]
Message-ID: <1611139713.8f6db03089c2cebaf246a16715497539b31032c2.andrewammerlaan@gentoo> (raw)
commit: 8f6db03089c2cebaf246a16715497539b31032c2
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Wed Jan 20 10:48:33 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Wed Jan 20 10:48:33 2021 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=8f6db030
sci-visualization/fsleyes-widgets: version bump, bump py targets
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
...s-0.8.4.ebuild => fsleyes-widgets-0.9.0.ebuild} | 38 ++++++++++++++--------
1 file changed, 25 insertions(+), 13 deletions(-)
diff --git a/sci-visualization/fsleyes-widgets/fsleyes-widgets-0.8.4.ebuild b/sci-visualization/fsleyes-widgets/fsleyes-widgets-0.9.0.ebuild
similarity index 57%
rename from sci-visualization/fsleyes-widgets/fsleyes-widgets-0.8.4.ebuild
rename to sci-visualization/fsleyes-widgets/fsleyes-widgets-0.9.0.ebuild
index f0561d11f..4e00e2e47 100644
--- a/sci-visualization/fsleyes-widgets/fsleyes-widgets-0.8.4.ebuild
+++ b/sci-visualization/fsleyes-widgets/fsleyes-widgets-0.9.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_{6,7} )
+PYTHON_COMPAT=( python3_{7,8} )
inherit distutils-r1 virtualx
@@ -16,14 +16,7 @@ SRC_URI="https://git.fmrib.ox.ac.uk/fsl/fsleyes/widgets/-/archive/${PV}/${MY_P}.
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-1*[${PYTHON_USEDEP}]
@@ -34,10 +27,29 @@ RDEPEND="
S="${WORKDIR}/${MY_P}"
-PATCHES=(
- "${FILESDIR}/fsleyes-widgets-0.8.4-coverage.patch"
- "${FILESDIR}/fsleyes-widgets-0.8.4-tests.patch"
-)
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ # do not depend on pytest-cov
+ sed -i -e '/addopts/d' setup.cfg || die
+
+ # assert 0 == 1
+ sed -i -e 's:test_FloatSlider_mouse_non_gtk:_&:' \
+ -e 's:test_FloatSlider_mouse_gtk:_&:' \
+ -e 's:test_SliderSpinPanel_events:_&:' \
+ tests/test_floatslider.py || die
+
+ # assert None == 0
+ sed -i -e 's:test_notebook_events:_&:' \
+ tests/test_notebook.py || die
+
+ # assert 25.0 < 5
+ sed -i -e 's:test_RangePanel_events_slider:_&:' \
+ -e 's:test_RangeSliderSpinPanel_onchange:_&:' \
+ tests/test_rangeslider.py || die
+
+ distutils-r1_python_prepare_all
+}
python_test() {
# If this could be set for the eclass, it might fix some of the tests:
next reply other threads:[~2021-01-20 12:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-20 12:29 Andrew Ammerlaan [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-09-23 14:28 [gentoo-commits] proj/sci:master commit in: sci-visualization/fsleyes-widgets/ Andrew Ammerlaan
2022-10-11 19:20 Andrew Ammerlaan
2022-10-11 19:20 Andrew Ammerlaan
2022-07-07 4:54 Sam James
2022-01-24 16:06 Andrew Ammerlaan
2021-02-01 1:48 Horea Christian
2020-01-19 17:32 Horea Christian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1611139713.8f6db03089c2cebaf246a16715497539b31032c2.andrewammerlaan@gentoo \
--to=andrewammerlaan@riseup.net \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox