1 |
commit: be7bc5dffb18eb95db07ce1c6d49c5ceab398096 |
2 |
Author: Horea Christian <chr <AT> chymera <DOT> eu> |
3 |
AuthorDate: Sat Sep 26 11:38:19 2020 +0000 |
4 |
Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Sep 26 11:38:19 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=be7bc5df |
7 |
|
8 |
sci-libs/nipy: PYTHON_COMPAT and live ebuild update |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
11 |
Signed-off-by: Horea Christian <chr <AT> chymera.eu> |
12 |
|
13 |
sci-libs/nipy/nipy-0.4.1.ebuild | 2 +- |
14 |
sci-libs/nipy/nipy-0.4.2.ebuild | 2 +- |
15 |
sci-libs/nipy/nipy-9999.ebuild | 33 +++++++++++++++++++++++++-------- |
16 |
3 files changed, 27 insertions(+), 10 deletions(-) |
17 |
|
18 |
diff --git a/sci-libs/nipy/nipy-0.4.1.ebuild b/sci-libs/nipy/nipy-0.4.1.ebuild |
19 |
index 93f16c86b..ea3c05d80 100644 |
20 |
--- a/sci-libs/nipy/nipy-0.4.1.ebuild |
21 |
+++ b/sci-libs/nipy/nipy-0.4.1.ebuild |
22 |
@@ -3,7 +3,7 @@ |
23 |
|
24 |
EAPI=7 |
25 |
|
26 |
-PYTHON_COMPAT=( python3_6 ) |
27 |
+PYTHON_COMPAT=( python3_7 ) |
28 |
|
29 |
inherit distutils-r1 eutils multilib flag-o-matic |
30 |
|
31 |
|
32 |
diff --git a/sci-libs/nipy/nipy-0.4.2.ebuild b/sci-libs/nipy/nipy-0.4.2.ebuild |
33 |
index b2151fb91..2793dc057 100644 |
34 |
--- a/sci-libs/nipy/nipy-0.4.2.ebuild |
35 |
+++ b/sci-libs/nipy/nipy-0.4.2.ebuild |
36 |
@@ -3,7 +3,7 @@ |
37 |
|
38 |
EAPI=7 |
39 |
|
40 |
-PYTHON_COMPAT=( python3_{6,7} ) |
41 |
+PYTHON_COMPAT=( python3_7 ) |
42 |
|
43 |
inherit distutils-r1 eutils multilib flag-o-matic |
44 |
|
45 |
|
46 |
diff --git a/sci-libs/nipy/nipy-9999.ebuild b/sci-libs/nipy/nipy-9999.ebuild |
47 |
index 0fb447c4f..5eac0416a 100644 |
48 |
--- a/sci-libs/nipy/nipy-9999.ebuild |
49 |
+++ b/sci-libs/nipy/nipy-9999.ebuild |
50 |
@@ -3,9 +3,9 @@ |
51 |
|
52 |
EAPI=7 |
53 |
|
54 |
-PYTHON_COMPAT=( python3_6 ) |
55 |
+PYTHON_COMPAT=( python3_7 ) |
56 |
|
57 |
-inherit distutils-r1 multilib git-r3 flag-o-matic |
58 |
+inherit distutils-r1 eutils multilib flag-o-matic git-r3 |
59 |
|
60 |
DESCRIPTION="Neuroimaging tools for Python" |
61 |
HOMEPAGE="http://nipy.org/" |
62 |
@@ -14,17 +14,21 @@ EGIT_REPO_URI="https://github.com/nipy/nipy" |
63 |
|
64 |
LICENSE="BSD" |
65 |
SLOT="0" |
66 |
-IUSE="" |
67 |
KEYWORDS="" |
68 |
+IUSE="" |
69 |
|
70 |
-DEPEND=" |
71 |
+RDEPEND=" |
72 |
dev-python/prov[${PYTHON_USEDEP}] |
73 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
74 |
- dev-python/numpy[${PYTHON_USEDEP}]" |
75 |
-RDEPEND="${DEPEND} |
76 |
dev-python/scipy[${PYTHON_USEDEP}] |
77 |
dev-python/sympy[${PYTHON_USEDEP}] |
78 |
- >=sci-libs/nibabel-1.2[${PYTHON_USEDEP}]" |
79 |
+ >=sci-libs/nibabel-1.2[${PYTHON_USEDEP}] |
80 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
81 |
+ " |
82 |
+ |
83 |
+DEPEND=" |
84 |
+ ${RDEPEND} |
85 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
86 |
+ " |
87 |
|
88 |
python_prepare_all() { |
89 |
distutils-r1_python_prepare_all |
90 |
@@ -35,3 +39,16 @@ python_prepare_all() { |
91 |
|
92 |
# nipy uses the horrible numpy.distutils automagic |
93 |
} |
94 |
+ |
95 |
+python_test() { |
96 |
+ distutils-r1_install_for_testing |
97 |
+ cp nipy/testing/*.nii.gz "${BUILD_DIR}/lib/nipy/testing/" |
98 |
+ cp nipy/modalities/fmri/tests/*.{mat,npz,txt} "${BUILD_DIR}/lib/nipy/modalities/fmri/tests/" |
99 |
+ cp nipy/algorithms/statistics/models/tests/test_data.bin "${BUILD_DIR}/lib/nipy/algorithms/statistics/models/tests" |
100 |
+ cp nipy/labs/spatial_models/tests/some_blobs.nii "${BUILD_DIR}/lib/nipy/labs/spatial_models/tests/some_blobs.nii" |
101 |
+ mkdir "${BUILD_DIR}/lib/nipy/algorithms/diagnostics/tests/data/" |
102 |
+ cp nipy/algorithms/diagnostics/tests/data/tsdiff_results.mat "${BUILD_DIR}/lib/nipy/algorithms/diagnostics/tests/data/" |
103 |
+ cd "${BUILD_DIR}" || die |
104 |
+ echo "backend : agg" > matplotlibrc |
105 |
+ nosetests || die |
106 |
+} |