1 |
commit: 67871f63cf6eef11ea46f2bea168c6d4f08c1520 |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Mon Dec 28 15:49:53 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 28 15:49:53 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67871f63 |
7 |
|
8 |
dev-python/pyamg: Bump to 4.0.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/738128 |
11 |
|
12 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
13 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
14 |
|
15 |
dev-python/pyamg/Manifest | 1 + |
16 |
dev-python/pyamg/files/pyamg-4.0.0-test.patch | 14 ++++++++++++++ |
17 |
dev-python/pyamg/pyamg-4.0.0.ebuild | 25 +++++++++++++++++++++++++ |
18 |
3 files changed, 40 insertions(+) |
19 |
|
20 |
diff --git a/dev-python/pyamg/Manifest b/dev-python/pyamg/Manifest |
21 |
index d3ed6ae9df1..27a0eed3b90 100644 |
22 |
--- a/dev-python/pyamg/Manifest |
23 |
+++ b/dev-python/pyamg/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST pyamg-3.2.1.tar.gz 765723 BLAKE2B 72c59c0fe93363f73d8ba4c6297920dd1ca8406b048cf0357baec5f2390bdb524421a35ef65e790be45b543e9e162067ee8f8f09327b464a4bc5c9cec368b003 SHA512 6be0dd068417389934ce97813321367920abf6f9f5e94ce2df8bd796edc797cedd492c9153b62466f7d68055a05821447dcf21578ccdfe3294766a49a9ac220e |
26 |
+DIST pyamg-4.0.0.tar.gz 717171 BLAKE2B 16483d829e8a938359827ca8ebe3093c890685244125576e05220910b66e9aeec278472134d10c589e58dfbd363930cdd7ae13d16c9b9d54c1bd5250e66f4677 SHA512 cdd27834c12ef18f023e78b5b946c06bc2c35f73cf65fc4c76da2fab75f23466e6c1a4b3dccb8506be3ada7e0bafda38122d3d7315deebc7959d2e5300d9add1 |
27 |
|
28 |
diff --git a/dev-python/pyamg/files/pyamg-4.0.0-test.patch b/dev-python/pyamg/files/pyamg-4.0.0-test.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..316d0a2baad |
31 |
--- /dev/null |
32 |
+++ b/dev-python/pyamg/files/pyamg-4.0.0-test.patch |
33 |
@@ -0,0 +1,14 @@ |
34 |
+Backported from: https://github.com/pyamg/pyamg/commit/6f5e549e6105e18cfff9bf4b5f1834d081fa4510 |
35 |
+Author: Luke Olson |
36 |
+--- a/pyamg/aggregation/tests/test_smooth.py |
37 |
++++ b/pyamg/aggregation/tests/test_smooth.py |
38 |
+@@ -485,6 +485,9 @@ class TestEnergyMin(TestCase): |
39 |
+ Bc = ml.levels[1].B |
40 |
+ P = ml.levels[0].P.tocsr() |
41 |
+ |
42 |
++ T.eliminate_zeros() |
43 |
++ P.eliminate_zeros() |
44 |
++ |
45 |
+ # P should preserve B in its range, wherever P |
46 |
+ # has enough nonzeros |
47 |
+ mask = ((P.indptr[1:] - P.indptr[:-1]) >= B.shape[1]) |
48 |
|
49 |
diff --git a/dev-python/pyamg/pyamg-4.0.0.ebuild b/dev-python/pyamg/pyamg-4.0.0.ebuild |
50 |
new file mode 100644 |
51 |
index 00000000000..798cc36c9ec |
52 |
--- /dev/null |
53 |
+++ b/dev-python/pyamg/pyamg-4.0.0.ebuild |
54 |
@@ -0,0 +1,25 @@ |
55 |
+# Copyright 1999-2020 Gentoo Authors |
56 |
+# Distributed under the terms of the GNU General Public License v2 |
57 |
+ |
58 |
+EAPI=7 |
59 |
+ |
60 |
+DISTUTILS_USE_SETUPTOOLS=bdepend |
61 |
+PYTHON_COMPAT=( python3_{6..9} ) |
62 |
+inherit distutils-r1 |
63 |
+ |
64 |
+DESCRIPTION="Algebraic multigrid solvers in Python" |
65 |
+HOMEPAGE="https://pyamg.org" |
66 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
67 |
+ |
68 |
+LICENSE="BSD" |
69 |
+SLOT="0" |
70 |
+KEYWORDS="~amd64 ~x86" |
71 |
+ |
72 |
+RDEPEND=" |
73 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
74 |
+ dev-python/pybind11[${PYTHON_USEDEP}] |
75 |
+ dev-python/scipy[${PYTHON_USEDEP}]" |
76 |
+ |
77 |
+distutils_enable_tests setup.py |
78 |
+ |
79 |
+PATCHES=( "${FILESDIR}"/${P}-test.patch ) |