1 |
commit: b6d01c25b2ee41844f5e33dbe3b739af418b0405 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 21 17:54:57 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 22 07:46:52 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6d01c25 |
7 |
|
8 |
dev-python/GridDataFormats: add support for tests, enable py3.10 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
12 |
|
13 |
dev-python/GridDataFormats/GridDataFormats-0.5.0.ebuild | 15 ++++++++++++--- |
14 |
1 file changed, 12 insertions(+), 3 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/GridDataFormats/GridDataFormats-0.5.0.ebuild b/dev-python/GridDataFormats/GridDataFormats-0.5.0.ebuild |
17 |
index dae8fce9e4a..bae94c0b169 100644 |
18 |
--- a/dev-python/GridDataFormats/GridDataFormats-0.5.0.ebuild |
19 |
+++ b/dev-python/GridDataFormats/GridDataFormats-0.5.0.ebuild |
20 |
@@ -3,7 +3,7 @@ |
21 |
|
22 |
EAPI=7 |
23 |
|
24 |
-PYTHON_COMPAT=( python3_{7..9} ) |
25 |
+PYTHON_COMPAT=( python3_{7..10} ) |
26 |
|
27 |
inherit distutils-r1 |
28 |
|
29 |
@@ -14,10 +14,19 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
30 |
SLOT="0" |
31 |
LICENSE="LGPL-3" |
32 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
33 |
-IUSE="" |
34 |
|
35 |
-BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
36 |
RDEPEND=" |
37 |
>=dev-python/numpy-1.0.3[${PYTHON_USEDEP}] |
38 |
dev-python/scipy[${PYTHON_USEDEP}] |
39 |
+ dev-python/six[${PYTHON_USEDEP}] |
40 |
" |
41 |
+ |
42 |
+distutils_enable_tests pytest |
43 |
+ |
44 |
+python_prepare_all() { |
45 |
+ # This test needs porting to newer numpy |
46 |
+ sed -i -e 's/test_resample_factor/_&/' \ |
47 |
+ gridData/tests/test_grid.py || die |
48 |
+ |
49 |
+ distutils-r1_python_prepare_all |
50 |
+} |