1 |
commit: fe69890467252025970bca16b8e9f88b6dd85012 |
2 |
Author: Tobias Klausmann <klausman <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 31 07:49:09 2016 +0000 |
4 |
Commit: Tobias Klausmann <klausman <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 31 07:49:09 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe698904 |
7 |
|
8 |
dev-python/sphinxcontrib-napoleon: Initial addition to the tree |
9 |
|
10 |
dev-python/sphinxcontrib-napoleon/Manifest | 1 + |
11 |
.../files/no_installed_tests.patch | 11 +++++++ |
12 |
dev-python/sphinxcontrib-napoleon/metadata.xml | 9 +++++ |
13 |
.../sphinxcontrib-napoleon-0.5.2.ebuild | 38 ++++++++++++++++++++++ |
14 |
4 files changed, 59 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/sphinxcontrib-napoleon/Manifest b/dev-python/sphinxcontrib-napoleon/Manifest |
17 |
new file mode 100644 |
18 |
index 00000000..39fc74b |
19 |
--- /dev/null |
20 |
+++ b/dev-python/sphinxcontrib-napoleon/Manifest |
21 |
@@ -0,0 +1 @@ |
22 |
+DIST sphinxcontrib-napoleon-0.5.2.tar.gz 24939 SHA256 3babaf7da3d062a2feba71f747946d123187e12ef68329eb6974026b25d218b8 SHA512 5f8d31c4ce66a042aa0c79ec06b7592539154bd7a397c1898db0cbed15b9891c908bb1d51334ef0b759e5d44ac99cf124616f0e4b3a1b1253f0f92312c949a8c WHIRLPOOL e577861c4357719a75ef84166f4cb9059fadded3b629606674beb5bfbd242bf4efb15c2889731690f4be8555b7561fb7c7ded14df925ebc2d926f26c91889bf4 |
23 |
|
24 |
diff --git a/dev-python/sphinxcontrib-napoleon/files/no_installed_tests.patch b/dev-python/sphinxcontrib-napoleon/files/no_installed_tests.patch |
25 |
new file mode 100644 |
26 |
index 00000000..20ba790 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/sphinxcontrib-napoleon/files/no_installed_tests.patch |
29 |
@@ -0,0 +1,11 @@ |
30 |
+--- setup.py.orig 2016-08-03 16:43:35.775261808 +0200 |
31 |
++++ setup.py 2016-08-03 16:43:56.126054227 +0200 |
32 |
+@@ -43,7 +43,7 @@ |
33 |
+ 'Framework :: Sphinx :: Extension', |
34 |
+ ], |
35 |
+ platforms='any', |
36 |
+- packages=find_packages(), |
37 |
++ packages=["sphinxcontrib"], |
38 |
+ include_package_data=True, |
39 |
+ install_requires=reqs, |
40 |
+ test_suite='nose.collector', |
41 |
|
42 |
diff --git a/dev-python/sphinxcontrib-napoleon/metadata.xml b/dev-python/sphinxcontrib-napoleon/metadata.xml |
43 |
new file mode 100644 |
44 |
index 00000000..639c1bc |
45 |
--- /dev/null |
46 |
+++ b/dev-python/sphinxcontrib-napoleon/metadata.xml |
47 |
@@ -0,0 +1,9 @@ |
48 |
+<?xml version="1.0" encoding="UTF-8"?> |
49 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
50 |
+<pkgmetadata> |
51 |
+ <maintainer type="person"> |
52 |
+ <email>klausman@g.o</email> |
53 |
+ <name>Tobias Klausmann</name> |
54 |
+ </maintainer> |
55 |
+</pkgmetadata> |
56 |
+ |
57 |
|
58 |
diff --git a/dev-python/sphinxcontrib-napoleon/sphinxcontrib-napoleon-0.5.2.ebuild b/dev-python/sphinxcontrib-napoleon/sphinxcontrib-napoleon-0.5.2.ebuild |
59 |
new file mode 100644 |
60 |
index 00000000..666bca5 |
61 |
--- /dev/null |
62 |
+++ b/dev-python/sphinxcontrib-napoleon/sphinxcontrib-napoleon-0.5.2.ebuild |
63 |
@@ -0,0 +1,38 @@ |
64 |
+# Copyright 1999-2015 Gentoo Foundation |
65 |
+# Distributed under the terms of the GNU General Public License v2 |
66 |
+# $Id$ |
67 |
+ |
68 |
+EAPI=5 |
69 |
+ |
70 |
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) |
71 |
+ |
72 |
+inherit distutils-r1 |
73 |
+ |
74 |
+DESCRIPTION="Allow a different format in dosctrings for better clarity" |
75 |
+HOMEPAGE="https://pypi.python.org/pypi/sphinxcontrib-napoleon" |
76 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
77 |
+ |
78 |
+LICENSE="BSD" |
79 |
+SLOT="0" |
80 |
+KEYWORDS="~amd64" |
81 |
+IUSE=test |
82 |
+ |
83 |
+DEPEND=" |
84 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
85 |
+ >=dev-python/six-1.5.2[${PYTHON_USEDEP}] |
86 |
+ >=dev-python/pockets-0.3[${PYTHON_USEDEP}] |
87 |
+ test? ( >=dev-python/coverage-3.6[${PYTHON_USEDEP}] |
88 |
+ >=dev-python/docutils-0.10[${PYTHON_USEDEP}] |
89 |
+ >=dev-python/flake8-2.0[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/mock-1.0.1[${PYTHON_USEDEP}] |
91 |
+ >=dev-python/nose-1.3.0[${PYTHON_USEDEP}] |
92 |
+ >=dev-python/sphinx-1.2.1[${PYTHON_USEDEP}] |
93 |
+ ) |
94 |
+" |
95 |
+src_prepare() { |
96 |
+ epatch "${FILESDIR}/no_installed_tests.patch" || die |
97 |
+} |
98 |
+ |
99 |
+python_test() { |
100 |
+ nosetests tests || die "tests failed with ${EPYTHON}" |
101 |
+} |