Gentoo Archives: gentoo-commits

From: Horea Christian <horea.christ@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/samri/
Date: Sun, 27 Sep 2020 08:36:02
Message-Id: 1601195562.8b9cc8923541eccb9ebaca2ca5b996982f217c9a.chymera@gentoo
1 commit: 8b9cc8923541eccb9ebaca2ca5b996982f217c9a
2 Author: Horea Christian <chr <AT> chymera <DOT> eu>
3 AuthorDate: Sun Sep 27 08:32:42 2020 +0000
4 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com>
5 CommitDate: Sun Sep 27 08:32:42 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=8b9cc892
7
8 sci-biology/samri: 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-biology/samri/samri-0.4.1.ebuild | 4 ++--
14 sci-biology/samri/samri-9999.ebuild | 31 +++++++++++++------------------
15 2 files changed, 15 insertions(+), 20 deletions(-)
16
17 diff --git a/sci-biology/samri/samri-0.4.1.ebuild b/sci-biology/samri/samri-0.4.1.ebuild
18 index 264e768dc..b3d3be34d 100644
19 --- a/sci-biology/samri/samri-0.4.1.ebuild
20 +++ b/sci-biology/samri/samri-0.4.1.ebuild
21 @@ -1,9 +1,9 @@
22 -# Copyright 1999-2019 Gentoo Authors
23 +# Copyright 1999-2020 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 EAPI=7
27
28 -PYTHON_COMPAT=( python3_6 )
29 +PYTHON_COMPAT=( python3_7 )
30
31 inherit distutils-r1
32
33
34 diff --git a/sci-biology/samri/samri-9999.ebuild b/sci-biology/samri/samri-9999.ebuild
35 index d9913f2f9..fc663fcbc 100644
36 --- a/sci-biology/samri/samri-9999.ebuild
37 +++ b/sci-biology/samri/samri-9999.ebuild
38 @@ -1,11 +1,11 @@
39 -# Copyright 1999-2019 Gentoo Authors
40 +# Copyright 1999-2020 Gentoo Authors
41 # Distributed under the terms of the GNU General Public License v2
42
43 EAPI=7
44
45 -PYTHON_COMPAT=( python{3_4,3_5,3_6} )
46 +PYTHON_COMPAT=( python3_7 )
47
48 -inherit distutils-r1 git-r3 prefix
49 +inherit distutils-r1 git-r3
50
51 DESCRIPTION="Small Animal Magnetic Resonance Imaging"
52 HOMEPAGE="https://github.com/IBT-FMI/SAMRI"
53 @@ -17,8 +17,6 @@ SLOT="0"
54 IUSE="+atlases labbookdb test"
55 KEYWORDS=""
56
57 -# Numpy dependency to circumvent scikits_learn dependency bug:
58 -# https://bugs.gentoo.org/653052
59 DEPEND="
60 test? (
61 dev-python/pytest[${PYTHON_USEDEP}]
62 @@ -32,28 +30,29 @@ RDEPEND="
63 >=dev-python/matplotlib-2.0.2[${PYTHON_USEDEP}]
64 >=dev-python/numpy-1.13.3[${PYTHON_USEDEP}]
65 dev-python/pandas[${PYTHON_USEDEP}]
66 + dev-python/scipy[${PYTHON_USEDEP}]
67 dev-python/seaborn[${PYTHON_USEDEP}]
68 dev-python/statsmodels[${PYTHON_USEDEP}]
69 + >=media-gfx/blender-2.83.4
70 >=sci-biology/fsl-5.0.9
71 sci-biology/bru2nii
72 atlases? ( sci-biology/mouse-brain-atlases )
73 labbookdb? ( sci-libs/labbookdb[${PYTHON_USEDEP}] )
74 sci-libs/nibabel[${PYTHON_USEDEP}]
75 >=sci-libs/nipy-0.4.1[${PYTHON_USEDEP}]
76 - >=sci-libs/nipype-0.14.0_pre20170830[${PYTHON_USEDEP}]
77 + >=sci-libs/nipype-1.0.0[${PYTHON_USEDEP}]
78 sci-libs/pybids[${PYTHON_USEDEP}]
79 - dev-python/scipy[${PYTHON_USEDEP}]
80 + sci-libs/scikits_image[${PYTHON_USEDEP}]
81 sci-biology/ants
82 sci-biology/afni
83 sci-biology/nilearn[${PYTHON_USEDEP}]
84 - "
85 +"
86
87 REQUIRED_USE="test? ( atlases )"
88
89 src_prepare() {
90 distutils-r1_src_prepare
91 - sed -i -e "s:/usr:@GENTOO_PORTAGE_EPREFIX@/usr:g" `grep -rlI \'/usr/ *`
92 - sed -i -e "s:/usr:@GENTOO_PORTAGE_EPREFIX@/usr:g" `grep -rlI \"/usr/ *`
93 + sed -i -e "s:/usr:@GENTOO_PORTAGE_EPREFIX@/usr:g" `grep -rlI \'/usr/ samri`
94 sed -i -e "s:/usr:@GENTOO_PORTAGE_EPREFIX@/usr:g" `grep -rlI /usr/ test_scripts.sh`
95 eprefixify $(grep -rl GENTOO_PORTAGE_EPREFIX samri/* test_scripts.sh)
96 }
97 @@ -64,12 +63,8 @@ python_test() {
98 export PATH=${TEST_DIR}/scripts:$PATH
99 export PYTHONIOENCODING=utf-8
100 ./test_scripts.sh || die "Test scripts failed."
101 - sed -i \
102 - -e '1s/^/import pytest \n/' \
103 - -e "/def test_bru2bids():/i@×××××××××××.skip('Skipped by Portage, as this was already tested in test_scripts.sh')" \
104 - samri/pipelines/tests/test_reposit.py || die
105 - cd "${BUILD_DIR}" || die
106 - sed -i -e "s:'/tmp/:'$T/:g" `grep -rl "'/tmp/"`
107 - pytest -vv || die
108 - sed -i -e "s:'$T/:'/tmp/:g" `grep -rl "'$T/"`
109 + sed -i -e \
110 + "/def test_bru2bids():/i@×××××××××××.skip('Removed in full test suite, as this is already tested in `test_scripts.sh`')" \
111 + samri/pipelines/tests/test_repos.py || die
112 + pytest -vv -k "not longtime" || die
113 }