1 |
commit: 83655f5c5fb14f874e2ea103213c3b1e7f21c4a9 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Wed Dec 30 16:31:08 2020 +0000 |
4 |
Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc> |
5 |
CommitDate: Thu Dec 31 17:22:01 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=83655f5c |
7 |
|
8 |
dev-python/sphinx-argparse: new dep, copy from ::guru |
9 |
|
10 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
12 |
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc> |
13 |
|
14 |
dev-python/sphinx-argparse/metadata.xml | 8 +++++ |
15 |
.../sphinx-argparse/sphinx-argparse-0.2.5.ebuild | 42 ++++++++++++++++++++++ |
16 |
2 files changed, 50 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/sphinx-argparse/metadata.xml b/dev-python/sphinx-argparse/metadata.xml |
19 |
new file mode 100644 |
20 |
index 000000000..ae9640ffb |
21 |
--- /dev/null |
22 |
+++ b/dev-python/sphinx-argparse/metadata.xml |
23 |
@@ -0,0 +1,8 @@ |
24 |
+<?xml version="1.0" encoding="UTF-8"?> |
25 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
26 |
+<pkgmetadata> |
27 |
+ <maintainer type="project"> |
28 |
+ <email>sci@g.o</email> |
29 |
+ <name>Gentoo Science Project</name> |
30 |
+ </maintainer> |
31 |
+</pkgmetadata> |
32 |
|
33 |
diff --git a/dev-python/sphinx-argparse/sphinx-argparse-0.2.5.ebuild b/dev-python/sphinx-argparse/sphinx-argparse-0.2.5.ebuild |
34 |
new file mode 100644 |
35 |
index 000000000..68c7c2f61 |
36 |
--- /dev/null |
37 |
+++ b/dev-python/sphinx-argparse/sphinx-argparse-0.2.5.ebuild |
38 |
@@ -0,0 +1,42 @@ |
39 |
+# Copyright 2020 Gentoo Authors |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+ |
42 |
+EAPI=7 |
43 |
+ |
44 |
+PYTHON_COMPAT=( python3_{7,8} ) |
45 |
+ |
46 |
+inherit distutils-r1 |
47 |
+ |
48 |
+DESCRIPTION="Sphinx extension that automatically documents argparse commands and options" |
49 |
+HOMEPAGE="https://pypi.org/project/sphinx-argparse/ |
50 |
+ https://github.com/alex-rudakov/sphinx-argparse" |
51 |
+SRC_URI="https://github.com/alex-rudakov/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
52 |
+ |
53 |
+LICENSE="MIT" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="~amd64 ~x86" |
56 |
+IUSE="" |
57 |
+ |
58 |
+DEPEND="" |
59 |
+RDEPEND=" |
60 |
+ ${DEPEND} |
61 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
62 |
+ dev-python/commonmark[${PYTHON_USEDEP}] |
63 |
+" |
64 |
+ |
65 |
+distutils_enable_tests pytest |
66 |
+# requires self to build own documentation |
67 |
+distutils_enable_sphinx docs dev-python/sphinx_rtd_theme dev-python/sphinx-argparse |
68 |
+ |
69 |
+python_prepare_all() { |
70 |
+ # test fails, skip it until a fix is found: |
71 |
+ # AssertionError: assert [{'action_groups': [{'description': None,\n 'options': [{'default': None,\n |
72 |
+ sed -i -e 's:test_parse_nested:_&:' \ |
73 |
+ -e 's:test_parse_nested_traversal:_&:' \ |
74 |
+ test/test_parser.py || die |
75 |
+ |
76 |
+ # needs test files in workdir to compile docs for some reason |
77 |
+ cp -r test "${WORKDIR}/test/" || die |
78 |
+ |
79 |
+ distutils-r1_python_prepare_all |
80 |
+} |