diff options
author | Justin Lecher <jlec@gentoo.org> | 2015-10-02 10:37:59 +0200 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2015-10-02 11:41:17 +0200 |
commit | 8b7c3e138616c6a4d0aa4d28aee8940fd67b2036 (patch) | |
tree | 67d707146795d94d146b37a7349b9fb6d90f626c /dev-python/cement | |
parent | 777e1ce1a63ffa99d56f0b4f47f76dec7925ac88 (diff) | |
download | gentoo-8b7c3e138616c6a4d0aa4d28aee8940fd67b2036.tar.gz gentoo-8b7c3e138616c6a4d0aa4d28aee8940fd67b2036.tar.xz |
dev-python/cement: QA fixes
use eclass functions (esetup.py)
Make buildtime deps DEPEND
fix doc isntallation
Package-Manager: portage-2.2.22
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'dev-python/cement')
-rw-r--r-- | dev-python/cement/cement-2.0.2.ebuild | 19 | ||||
-rw-r--r-- | dev-python/cement/metadata.xml | 1 |
2 files changed, 10 insertions, 10 deletions
diff --git a/dev-python/cement/cement-2.0.2.ebuild b/dev-python/cement/cement-2.0.2.ebuild index e24041324bc..21dbb27851a 100644 --- a/dev-python/cement/cement-2.0.2.ebuild +++ b/dev-python/cement/cement-2.0.2.ebuild @@ -19,28 +19,29 @@ SLOT="0" KEYWORDS="amd64 x86" IUSE="test doc" -RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" +RDEPEND="" DEPEND="${RDEPEND} - test? ( dev-python/nose[${PYTHON_USEDEP}] - dev-python/coverage[${PYTHON_USEDEP}] )" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( + dev-python/nose[${PYTHON_USEDEP}] + dev-python/coverage[${PYTHON_USEDEP}] + )" DOCS=( ChangeLog CONTRIBUTORS README.md ) PATCHES=( "${FILESDIR}"/tests-installation.patch ) # https://github.com/cement/cement/issues/185 python_test() { - nosetests || die "Tests fail with ${EPYTHON}" + nosetests --verbose || die "Tests fail with ${EPYTHON}" } python_compile_all() { - if use doc; then - "${PYTHON}" setup.py build_sphinx || die "couldn't build docs" - fi + use doc && esetup.py build_sphinx } python_install_all() { - use doc && HTML_DOCS=( doc/build/html/* ) + use doc && HTML_DOCS=( doc/build/html/. ) distutils-r1_python_install_all } diff --git a/dev-python/cement/metadata.xml b/dev-python/cement/metadata.xml index e81878f9464..e95d6e192d1 100644 --- a/dev-python/cement/metadata.xml +++ b/dev-python/cement/metadata.xml @@ -6,4 +6,3 @@ Cement is an advanced CLI Application Framework for Python. Its goal is to introduce a standard, and feature-full platform for both simple and complex command line applications as well as support rapid development needs without sacrificing quality. </longdescription> </pkgmetadata> - |