commit:     cc082a637bcbb6c289216b62cfaacb24212557b5
Author:     Horea Christian <chr <AT> chymera <DOT> eu>
AuthorDate: Sun Jan 19 15:20:14 2020 +0000
Commit:     Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Sun Jan 19 15:20:14 2020 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=cc082a63

sci-visualization/fsleyes-widgets: new package, required for FSLeyes

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Horea Christian <chr <AT> chymera.eu>

 sci-visualization/fsleyes-widgets/ChangeLog        |  7 +++
 .../files/fsleyes-widgets-0.8.4-coverage.patch     | 10 ++++
 .../files/fsleyes-widgets-0.8.4-tests.patch        | 69 ++++++++++++++++++++++
 .../fsleyes-widgets/fsleyes-widgets-0.8.4.ebuild   | 47 +++++++++++++++
 sci-visualization/fsleyes-widgets/metadata.xml     | 18 ++++++
 5 files changed, 151 insertions(+)

diff --git a/sci-visualization/fsleyes-widgets/ChangeLog 
b/sci-visualization/fsleyes-widgets/ChangeLog
new file mode 100644
index 000000000..14d95538a
--- /dev/null
+++ b/sci-visualization/fsleyes-widgets/ChangeLog
@@ -0,0 +1,7 @@
+*fsleyes-widgets-0.8.4 (16 Jan 2020)
+
+  16 Jan 2020;  <chym...@gentoo.org>
+  +files/fsleyes-widgets-0.8.4-coverage.patch,
+  +files/fsleyes-widgets-0.8.4-tests.patch, +fsleyes-widgets-0.8.4.ebuild,
+  +metadata.xml, -fsleyes-widgets-0.6.5.ebuild, -manifest.xml:
+  sci-visualization/fsleyes-widgets: version bump 0.8.4 ahead of Gentoo Science

diff --git 
a/sci-visualization/fsleyes-widgets/files/fsleyes-widgets-0.8.4-coverage.patch 
b/sci-visualization/fsleyes-widgets/files/fsleyes-widgets-0.8.4-coverage.patch
new file mode 100644
index 000000000..6db8c01d8
--- /dev/null
+++ 
b/sci-visualization/fsleyes-widgets/files/fsleyes-widgets-0.8.4-coverage.patch
@@ -0,0 +1,10 @@
+diff --git a/setup.cfg b/setup.cfg
+index c3ebd936..d678d2df 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -9,4 +9,4 @@ ignore = 
E127,E201,E203,E221,E222,E241,E271,E272,E301,E302,E303,E701
+
+ [tool:pytest]
+ testpaths = tests
+-addopts   = -v --cov=fsleyes_widgets
++addopts   = -v

diff --git 
a/sci-visualization/fsleyes-widgets/files/fsleyes-widgets-0.8.4-tests.patch 
b/sci-visualization/fsleyes-widgets/files/fsleyes-widgets-0.8.4-tests.patch
new file mode 100644
index 000000000..20ef1a9ad
--- /dev/null
+++ b/sci-visualization/fsleyes-widgets/files/fsleyes-widgets-0.8.4-tests.patch
@@ -0,0 +1,69 @@
+diff --git a/tests/test_floatslider.py b/tests/test_floatslider.py
+index 87a2477..6bbedb7 100644
+--- a/tests/test_floatslider.py
++++ b/tests/test_floatslider.py
+@@ -140,8 +140,14 @@ def _test_FloatSlider_changeRange():
+     _test_widget_changeRange(slider)
+
+
++@pytest.mark.skip(reason="Known to fail on Gentoo:"
++    "https://github.com/pauldmccarthy/fsleyes-widgets/issues/1";
++    )
+ def test_FloatSlider_mouse_non_gtk():
+     run_with_wx(_test_FloatSlider_mouse)
++@pytest.mark.skip(reason="Known to fail on Gentoo:"
++    "https://github.com/pauldmccarthy/fsleyes-widgets/issues/1";
++    )
+ def test_FloatSlider_mouse_gtk():
+     with mock.patch('fsleyes_widgets.floatslider.wx.Platform', '__WXGTK__'):
+         run_with_wx(_test_FloatSlider_mouse)
+@@ -322,7 +328,9 @@ def _test_SliderSpinPanel_show_edit_limits():
+             if shouldEv: assert result[0] == expected
+             else:        assert result[0] is None
+
+-
++@pytest.mark.skip(reason="Known to fail on Gentoo:"
++    "https://github.com/pauldmccarthy/fsleyes-widgets/issues/1";
++    )
+ def test_SliderSpinPanel_events():
+     run_with_wx(_test_SliderSpinPanel_events)
+ def _test_SliderSpinPanel_events():
+diff --git a/tests/test_notebook.py b/tests/test_notebook.py
+index a02226c..74e8f63 100644
+--- a/tests/test_notebook.py
++++ b/tests/test_notebook.py
+@@ -190,6 +190,9 @@ def _test_enable_disable_show_hide(side, ornt):
+     assert notebook.GetSelection() == 1
+
+
++@pytest.mark.skip(reason="Known to fail on Gentoo:"
++    "https://github.com/pauldmccarthy/fsleyes-widgets/issues/1";
++    )
+ def test_event():
+     nb_run_with_wx(_test_event)
+ def _test_event(side, ornt):
+diff --git a/tests/test_rangeslider.py b/tests/test_rangeslider.py
+index 7ddbed6..51267b3 100644
+--- a/tests/test_rangeslider.py
++++ b/tests/test_rangeslider.py
+@@ -103,6 +103,9 @@ def _test_RangePanel_logic_spin():
+     _test_RangePanel_logic(panel)
+
+
++@pytest.mark.skip(reason="Known to fail on Gentoo:"
++    "https://github.com/pauldmccarthy/fsleyes-widgets/issues/1";
++    )
+ def test_RangePanel_events_slider():
+     run_with_wx(_test_RangePanel_events_slider)
+ def _test_RangePanel_events_slider():
+@@ -236,6 +239,9 @@ def _test_RangeSliderSpinPanel_logic():
+     _test_RangePanel_logic(panel)
+
+
++@pytest.mark.skip(reason="Known to fail on Gentoo:"
++    "https://github.com/pauldmccarthy/fsleyes-widgets/issues/1";
++    )
+ def test_RangeSliderSpinPanel_onchange():
+     run_with_wx(_test_RangeSliderSpinPanel_onchange)
+ def _test_RangeSliderSpinPanel_onchange():
+

diff --git a/sci-visualization/fsleyes-widgets/fsleyes-widgets-0.8.4.ebuild 
b/sci-visualization/fsleyes-widgets/fsleyes-widgets-0.8.4.ebuild
new file mode 100644
index 000000000..b9766ca40
--- /dev/null
+++ b/sci-visualization/fsleyes-widgets/fsleyes-widgets-0.8.4.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7} )
+
+inherit distutils-r1 virtualx
+
+MY_P="widgets-${PV}"
+
+DESCRIPTION="The new FSL image viewer, first released with FSL 5.0.10"
+HOMEPAGE="https://git.fmrib.ox.ac.uk/fsl/fsleyes/fsleyes/tree/master";
+SRC_URI="https://git.fmrib.ox.ac.uk/fsl/fsleyes/widgets/-/archive/${PV}/${MY_P}.tar.gz
 -> ${P}.tar.gz"
+
+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}]
+       dev-python/matplotlib[${PYTHON_USEDEP}]
+       =dev-python/six-1*[${PYTHON_USEDEP}]
+       dev-python/wxpython[${PYTHON_USEDEP}]
+       "
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+       "${FILESDIR}/fsleyes-widgets-0.8.4-coverage.patch"
+       "${FILESDIR}/fsleyes-widgets-0.8.4-tests.patch"
+)
+
+python_test() {
+       # If this could be set for the eclass, it might fix some of the tests:
+       # 
https://github.com/pauldmccarthy/fsleyes-widgets/issues/1#issuecomment-575387724
+       #xvfbargs="-screen 0 1920x1200x24 +extension RANDR"
+       virtx pytest --verbose || die
+}

diff --git a/sci-visualization/fsleyes-widgets/metadata.xml 
b/sci-visualization/fsleyes-widgets/metadata.xml
new file mode 100644
index 000000000..153c0c611
--- /dev/null
+++ b/sci-visualization/fsleyes-widgets/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>c...@chymera.eu</email>
+               <name>Horea Christian</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>s...@gentoo.org</email>
+               <name>Gentoo Science Project</name>
+       </maintainer>
+       <longdescription lang="en">
+               FSLeyes is a viewer for 3D and 4D neuroimaging data. It is 
intended as a
+               replacement for the much loved FSLView. FSLeyes offers similar 
functionality
+               to FSLView, and aims to improve and expand upon this 
functionality in many
+               ways.
+       </longdescription>
+</pkgmetadata>

Reply via email to