2014-04-01 09:26:05 +04:00
|
|
|
# Copyright 1999-2014 Gentoo Foundation
|
2013-09-19 10:50:55 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2014-04-08 13:20:57 +04:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/stevedore/stevedore-0.15.ebuild,v 1.3 2014/04/01 09:11:46 idella4 Exp $
|
2013-09-19 10:50:55 +04:00
|
|
|
|
|
|
|
EAPI=5
|
2014-04-01 09:26:05 +04:00
|
|
|
PYTHON_COMPAT=( python{2_7,3_2,3_3} )
|
2013-09-19 10:50:55 +04:00
|
|
|
|
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
DESCRIPTION="Manage dynamic plugins for Python applications"
|
|
|
|
HOMEPAGE="https://github.com/dreamhost/stevedore"
|
|
|
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="Apache-2.0"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE="doc test"
|
|
|
|
|
|
|
|
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
2013-11-12 13:32:15 +04:00
|
|
|
virtual/python-argparse[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/pbr-0.5.21[${PYTHON_USEDEP}]
|
|
|
|
<dev-python/pbr-1.0[${PYTHON_USEDEP}]
|
|
|
|
test? ( dev-python/nose[${PYTHON_USEDEP}]
|
|
|
|
dev-python/mock[${PYTHON_USEDEP}]
|
2014-04-08 13:20:57 +04:00
|
|
|
dev-python/coverage[${PYTHON_USEDEP}]
|
|
|
|
dev-python/flake8[${PYTHON_USEDEP}] )
|
2013-11-12 13:32:15 +04:00
|
|
|
doc? ( dev-python/sphinx[${PYTHON_USEDEP}]
|
2014-04-01 09:26:05 +04:00
|
|
|
dev-python/pillow[${PYTHON_USEDEP}] )"
|
2013-09-19 10:50:55 +04:00
|
|
|
|
|
|
|
python_compile_all() {
|
|
|
|
if use doc; then
|
|
|
|
mkdir docs/source/_build || die
|
|
|
|
sphinx-build -b html -c docs/source docs/source/ docs/source/_build
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
python_test() {
|
|
|
|
nosetests -d --with-coverage --cover-inclusive --cover-package stevedore \
|
|
|
|
|| die "Tests failed under ${EPYTHON}"
|
|
|
|
flake8 stevedore setup.py || die
|
|
|
|
}
|
|
|
|
|
|
|
|
python_install_all() {
|
|
|
|
use doc && local HTML_DOCS=( docs/source/_build/. )
|
|
|
|
distutils-r1_python_install_all
|
|
|
|
}
|