dev-python/sphinxcontrib-napoleon: Initial addition to the tree
authorTobias Klausmann <klausman@gentoo.org>
Wed, 31 Aug 2016 07:49:09 +0000 (09:49 +0200)
committerTobias Klausmann <klausman@gentoo.org>
Wed, 31 Aug 2016 07:49:09 +0000 (09:49 +0200)
dev-python/sphinxcontrib-napoleon/Manifest [new file with mode: 0644]
dev-python/sphinxcontrib-napoleon/files/no_installed_tests.patch [new file with mode: 0644]
dev-python/sphinxcontrib-napoleon/metadata.xml [new file with mode: 0644]
dev-python/sphinxcontrib-napoleon/sphinxcontrib-napoleon-0.5.2.ebuild [new file with mode: 0644]

diff --git a/dev-python/sphinxcontrib-napoleon/Manifest b/dev-python/sphinxcontrib-napoleon/Manifest
new file mode 100644 (file)
index 0000000..39fc74b
--- /dev/null
@@ -0,0 +1 @@
+DIST sphinxcontrib-napoleon-0.5.2.tar.gz 24939 SHA256 3babaf7da3d062a2feba71f747946d123187e12ef68329eb6974026b25d218b8 SHA512 5f8d31c4ce66a042aa0c79ec06b7592539154bd7a397c1898db0cbed15b9891c908bb1d51334ef0b759e5d44ac99cf124616f0e4b3a1b1253f0f92312c949a8c WHIRLPOOL e577861c4357719a75ef84166f4cb9059fadded3b629606674beb5bfbd242bf4efb15c2889731690f4be8555b7561fb7c7ded14df925ebc2d926f26c91889bf4
diff --git a/dev-python/sphinxcontrib-napoleon/files/no_installed_tests.patch b/dev-python/sphinxcontrib-napoleon/files/no_installed_tests.patch
new file mode 100644 (file)
index 0000000..20ba790
--- /dev/null
@@ -0,0 +1,11 @@
+--- setup.py.orig      2016-08-03 16:43:35.775261808 +0200
++++ setup.py   2016-08-03 16:43:56.126054227 +0200
+@@ -43,7 +43,7 @@
+         'Framework :: Sphinx :: Extension',
+     ],
+     platforms='any',
+-    packages=find_packages(),
++    packages=["sphinxcontrib"],
+     include_package_data=True,
+     install_requires=reqs,
+     test_suite='nose.collector',
diff --git a/dev-python/sphinxcontrib-napoleon/metadata.xml b/dev-python/sphinxcontrib-napoleon/metadata.xml
new file mode 100644 (file)
index 0000000..639c1bc
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="person">
+    <email>klausman@gentoo.org</email>
+    <name>Tobias Klausmann</name>
+  </maintainer>
+</pkgmetadata>
+
diff --git a/dev-python/sphinxcontrib-napoleon/sphinxcontrib-napoleon-0.5.2.ebuild b/dev-python/sphinxcontrib-napoleon/sphinxcontrib-napoleon-0.5.2.ebuild
new file mode 100644 (file)
index 0000000..666bca5
--- /dev/null
@@ -0,0 +1,38 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
+
+inherit distutils-r1
+
+DESCRIPTION="Allow a different format in dosctrings for better clarity"
+HOMEPAGE="https://pypi.python.org/pypi/sphinxcontrib-napoleon"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=test
+
+DEPEND="
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       >=dev-python/six-1.5.2[${PYTHON_USEDEP}]
+       >=dev-python/pockets-0.3[${PYTHON_USEDEP}]
+       test? ( >=dev-python/coverage-3.6[${PYTHON_USEDEP}]
+                       >=dev-python/docutils-0.10[${PYTHON_USEDEP}]
+                       >=dev-python/flake8-2.0[${PYTHON_USEDEP}]
+                       >=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
+                       >=dev-python/nose-1.3.0[${PYTHON_USEDEP}]
+                       >=dev-python/sphinx-1.2.1[${PYTHON_USEDEP}]
+       )
+"
+src_prepare() {
+       epatch "${FILESDIR}/no_installed_tests.patch" || die
+}
+
+python_test() {
+       nosetests tests || die "tests failed with ${EPYTHON}"
+}