1 |
commit: ea94e8974906d55e593321e488e2a0437aa5a718 |
2 |
Author: Horea Christian <chr <AT> chymera <DOT> eu> |
3 |
AuthorDate: Sun Jan 19 17:23:15 2020 +0000 |
4 |
Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> |
5 |
CommitDate: Sun Jan 19 17:23:15 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=ea94e897 |
7 |
|
8 |
sci-visualization/fsleyes-props: new package required by FSLeyes |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Horea Christian <chr <AT> chymera.eu> |
12 |
|
13 |
sci-visualization/fsleyes-props/ChangeLog | 9 +++++ |
14 |
.../files/fsleyes-props-1.6.7-coverage.patch | 10 +++++ |
15 |
.../files/fsleyes-props-1.6.7-tests.patch | 45 +++++++++++++++++++++ |
16 |
.../fsleyes-props/fsleyes-props-1.6.7.ebuild | 46 ++++++++++++++++++++++ |
17 |
sci-visualization/fsleyes-props/metadata.xml | 19 +++++++++ |
18 |
5 files changed, 129 insertions(+) |
19 |
|
20 |
diff --git a/sci-visualization/fsleyes-props/ChangeLog b/sci-visualization/fsleyes-props/ChangeLog |
21 |
new file mode 100644 |
22 |
index 000000000..58b6e28dd |
23 |
--- /dev/null |
24 |
+++ b/sci-visualization/fsleyes-props/ChangeLog |
25 |
@@ -0,0 +1,9 @@ |
26 |
+ 08 Oct 2018; Horea Christian <h.chr@××××.ru> fsleyes-props-1.6.3.ebuild: |
27 |
+ sci-visualization/fsleyes-props: python3 compatibility |
28 |
+ |
29 |
+*fsleyes-props-1.6.3 (08 Oct 2018) |
30 |
+ |
31 |
+ 08 Oct 2018; Horea Christian <h.chr@××××.ru> +fsleyes-props-1.6.3.ebuild, |
32 |
+ +metadata.xml: |
33 |
+ sci-visualization/fsleyes-props: new ebuild Ahead of inclusion in science |
34 |
+ overlay (unsubmitted) |
35 |
|
36 |
diff --git a/sci-visualization/fsleyes-props/files/fsleyes-props-1.6.7-coverage.patch b/sci-visualization/fsleyes-props/files/fsleyes-props-1.6.7-coverage.patch |
37 |
new file mode 100644 |
38 |
index 000000000..e256af331 |
39 |
--- /dev/null |
40 |
+++ b/sci-visualization/fsleyes-props/files/fsleyes-props-1.6.7-coverage.patch |
41 |
@@ -0,0 +1,10 @@ |
42 |
+diff --git a/setup.cfg b/setup.cfg |
43 |
+index 2b66974..9929adf 100644 |
44 |
+--- a/setup.cfg |
45 |
++++ b/setup.cfg |
46 |
+@@ -10,4 +10,4 @@ ignore = E127,E201,E203,E221,E222,E241,E271,E272,E301,E302,E303,E701 |
47 |
+ |
48 |
+ [tool:pytest] |
49 |
+ testpaths = tests |
50 |
+-addopts = -v --cov=fsleyes_props |
51 |
++addopts = -v |
52 |
|
53 |
diff --git a/sci-visualization/fsleyes-props/files/fsleyes-props-1.6.7-tests.patch b/sci-visualization/fsleyes-props/files/fsleyes-props-1.6.7-tests.patch |
54 |
new file mode 100644 |
55 |
index 000000000..124eb28cb |
56 |
--- /dev/null |
57 |
+++ b/sci-visualization/fsleyes-props/files/fsleyes-props-1.6.7-tests.patch |
58 |
@@ -0,0 +1,45 @@ |
59 |
+diff --git a/tests/test_widget_number.py b/tests/test_widget_number.py |
60 |
+index 1c5cadc..9d8067a 100644 |
61 |
+--- a/tests/test_widget_number.py |
62 |
++++ b/tests/test_widget_number.py |
63 |
+@@ -14,6 +14,7 @@ import fsleyes_props as props |
64 |
+ import fsleyes_widgets.floatspin as floatspin |
65 |
+ import fsleyes_widgets.floatslider as floatslider |
66 |
+ |
67 |
++import pytest |
68 |
+ |
69 |
+ def setup_module(): |
70 |
+ props.initGUI() |
71 |
+@@ -28,6 +29,9 @@ class MyObj(props.HasProperties): |
72 |
+ myrealc = props.Real(minval=0.0, maxval=1.0, clamped=True) |
73 |
+ |
74 |
+ |
75 |
++@×××××××××××.skip(reason="Known to fail on Gentoo:" |
76 |
++ "https://github.com/pauldmccarthy/fsleyes-props/issues/1" |
77 |
++ ) |
78 |
+ def test_widget_number(): run_with_wx(_test_widget_number) |
79 |
+ def _test_widget_number(parent): |
80 |
+ |
81 |
+diff --git a/tests/test_widget_point.py b/tests/test_widget_point.py |
82 |
+index cc21226..d83aa48 100644 |
83 |
+--- a/tests/test_widget_point.py |
84 |
++++ b/tests/test_widget_point.py |
85 |
+@@ -11,6 +11,7 @@ import numpy as np |
86 |
+ import fsleyes_props as props |
87 |
+ import fsleyes_widgets.floatslider as floatslider |
88 |
+ |
89 |
++import pytest |
90 |
+ |
91 |
+ from . import (run_with_wx, simtext, simclick, addall, realYield) |
92 |
+ |
93 |
+@@ -24,7 +25,9 @@ class MyObj(props.HasProperties): |
94 |
+ mypointi = props.Point(ndims=2, real=False) |
95 |
+ mypointf = props.Point(ndims=2) |
96 |
+ |
97 |
+- |
98 |
++@×××××××××××.skip(reason="Known to fail on Gentoo:" |
99 |
++ "https://github.com/pauldmccarthy/fsleyes-props/issues/1" |
100 |
++ ) |
101 |
+ def test_widget_point(): run_with_wx(_test_widget_point) |
102 |
+ def _test_widget_point(parent): |
103 |
+ |
104 |
|
105 |
diff --git a/sci-visualization/fsleyes-props/fsleyes-props-1.6.7.ebuild b/sci-visualization/fsleyes-props/fsleyes-props-1.6.7.ebuild |
106 |
new file mode 100644 |
107 |
index 000000000..ed283ca43 |
108 |
--- /dev/null |
109 |
+++ b/sci-visualization/fsleyes-props/fsleyes-props-1.6.7.ebuild |
110 |
@@ -0,0 +1,46 @@ |
111 |
+# Copyright 1999-2020 Gentoo Authors |
112 |
+# Distributed under the terms of the GNU General Public License v2 |
113 |
+ |
114 |
+EAPI=7 |
115 |
+ |
116 |
+PYTHON_COMPAT=( python3_6 ) |
117 |
+ |
118 |
+inherit distutils-r1 virtualx |
119 |
+ |
120 |
+MY_PN="props" |
121 |
+ |
122 |
+DESCRIPTION="The new FSL image viewer, released with FSL 5.0.10" |
123 |
+HOMEPAGE="https://git.fmrib.ox.ac.uk/fsl/fsleyes/fsleyes/tree/master" |
124 |
+SRC_URI="https://git.fmrib.ox.ac.uk/fsl/fsleyes/${MY_PN}/-/archive/${PV}/${MY_PN}-${PV}.tar.gz" |
125 |
+ |
126 |
+LICENSE="BSD" |
127 |
+SLOT="0" |
128 |
+KEYWORDS="~amd64 ~x86" |
129 |
+IUSE="test" |
130 |
+ |
131 |
+DEPEND=" |
132 |
+ test? ( |
133 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
134 |
+ ) |
135 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
136 |
+ " |
137 |
+RDEPEND=" |
138 |
+ dev-python/deprecation[${PYTHON_USEDEP}] |
139 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
140 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
141 |
+ dev-python/six[${PYTHON_USEDEP}] |
142 |
+ dev-python/wxpython[${PYTHON_USEDEP}] |
143 |
+ sci-visualization/fsleyes-widgets[${PYTHON_USEDEP}] |
144 |
+ dev-python/fslpy[${PYTHON_USEDEP}] |
145 |
+ " |
146 |
+ |
147 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
148 |
+ |
149 |
+PATCHES=( |
150 |
+ "${FILESDIR}/fsleyes-props-1.6.7-coverage.patch" |
151 |
+ "${FILESDIR}/fsleyes-props-1.6.7-tests.patch" |
152 |
+) |
153 |
+ |
154 |
+python_test() { |
155 |
+ virtx pytest --verbose || die |
156 |
+} |
157 |
|
158 |
diff --git a/sci-visualization/fsleyes-props/metadata.xml b/sci-visualization/fsleyes-props/metadata.xml |
159 |
new file mode 100644 |
160 |
index 000000000..cc3ce2d75 |
161 |
--- /dev/null |
162 |
+++ b/sci-visualization/fsleyes-props/metadata.xml |
163 |
@@ -0,0 +1,19 @@ |
164 |
+<?xml version='1.0' encoding='UTF-8'?> |
165 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
166 |
+<pkgmetadata> |
167 |
+ <maintainer type="person"> |
168 |
+ <email>chr@×××××××.eu</email> |
169 |
+ <name>Horea Christian</name> |
170 |
+ </maintainer> |
171 |
+ <maintainer type="project"> |
172 |
+ <email>sci@g.o</email> |
173 |
+ <name>Gentoo Science Project</name> |
174 |
+ </maintainer> |
175 |
+ <longdescription lang="en"> |
176 |
+ FSLeyes-props is a library which is used by FSLeyes, and which allows you to |
177 |
+ listen for change to attributes on a python object, automatically generate |
178 |
+ wxpython widgets which are bound to attributes of a python object, and |
179 |
+ automatically generate a command line interface to set values of the attributes |
180 |
+ of a Python object. |
181 |
+ </longdescription> |
182 |
+</pkgmetadata> |