1 |
commit: 21f086bc11e5277b8f6cea5bf0d384b9018bd0bd |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Mon May 11 14:54:56 2020 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Mon May 11 14:54:56 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=21f086bc |
7 |
|
8 |
dev-python/quantities: fix test and doc |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
12 |
|
13 |
dev-python/quantities/quantities-0.12.4.ebuild | 14 +++++++++++--- |
14 |
1 file changed, 11 insertions(+), 3 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/quantities/quantities-0.12.4.ebuild b/dev-python/quantities/quantities-0.12.4.ebuild |
17 |
index 4eae132..adb0800 100644 |
18 |
--- a/dev-python/quantities/quantities-0.12.4.ebuild |
19 |
+++ b/dev-python/quantities/quantities-0.12.4.ebuild |
20 |
@@ -27,6 +27,14 @@ DEPEND=" |
21 |
|
22 |
RDEPEND="${DEPEND}" |
23 |
|
24 |
-# TODO : tests doc |
25 |
-#distutils_enable_tests setup.py # some unexpected failures |
26 |
-#distutils_enable_sphinx docs |
27 |
+python_prepare_all() { |
28 |
+ # Unexpected success |
29 |
+ sed -i -e 's:test_fix:_&:' \ |
30 |
+ quantities/tests/test_umath.py || die |
31 |
+ |
32 |
+ distutils-r1_python_prepare_all |
33 |
+} |
34 |
+ |
35 |
+distutils_enable_tests unittest |
36 |
+# wants ext.pngmath which got removed in sphinx-2 |
37 |
+distutils_enable_sphinx doc dev-python/numpydoc "<dev-python/sphinx-2" |