1 |
commit: cb3ea41778c94e1508bfe94fac68e0c91c6db783 |
2 |
Author: Maciej Barć <xgqt <AT> protonmail <DOT> com> |
3 |
AuthorDate: Sat May 2 17:21:36 2020 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Sat May 2 17:21:36 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cb3ea417 |
7 |
|
8 |
dev-python/redbaron: fix QA |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Maciej Barć <xgqt <AT> protonmail.com> |
12 |
|
13 |
dev-python/redbaron/redbaron-0.9.ebuild | 22 ++++++++++++++++++---- |
14 |
1 file changed, 18 insertions(+), 4 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/redbaron/redbaron-0.9.ebuild b/dev-python/redbaron/redbaron-0.9.ebuild |
17 |
index e57d741..9f0e3e8 100644 |
18 |
--- a/dev-python/redbaron/redbaron-0.9.ebuild |
19 |
+++ b/dev-python/redbaron/redbaron-0.9.ebuild |
20 |
@@ -8,25 +8,39 @@ PYTHON_COMPAT=( python3_{6,7} ) |
21 |
inherit distutils-r1 |
22 |
|
23 |
DESCRIPTION="A FST for python to make writing refactoring code a realistic task" |
24 |
-HOMEPAGE="https://redbaron.readthedocs.io/" |
25 |
+HOMEPAGE=" |
26 |
+ https://redbaron.readthedocs.io/ |
27 |
+ https://github.com/PyCQA/redbaron |
28 |
+" |
29 |
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
30 |
|
31 |
LICENSE="LGPL-3" |
32 |
SLOT="0" |
33 |
KEYWORDS="~amd64" |
34 |
+IUSE="doc" |
35 |
|
36 |
+DEPEND=" |
37 |
+ doc? ( |
38 |
+ dev-python/ipython[matplotlib,${PYTHON_USEDEP}] |
39 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
40 |
+ ) |
41 |
+" |
42 |
RDEPEND=" |
43 |
>=dev-python/baron-0.7[${PYTHON_USEDEP}] |
44 |
dev-python/pygments[${PYTHON_USEDEP}] |
45 |
dev-python/pytest[${PYTHON_USEDEP}] |
46 |
" |
47 |
|
48 |
-python_test() { |
49 |
+distutils_enable_tests pytest |
50 |
+ |
51 |
+distutils_enable_sphinx docs |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ default |
55 |
+ |
56 |
# Remove "__pycache__". Reason: unique basename |
57 |
rm -rfd "${S}"/tests/__pycache__ || die |
58 |
|
59 |
# Skip tests. Reason: calls fixture "red" directly |
60 |
rm "${S}"/tests/test_bounding_box.py || die |
61 |
- |
62 |
- pytest -v || die "Tests fail with ${EPYTHON}" |
63 |
} |