You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.3 KiB
47 lines
1.3 KiB
9 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/logbook/logbook-0.10.0.ebuild,v 1.2 2015/07/19 04:21:53 idella4 Exp $
|
||
9 years ago
|
|
||
|
EAPI=5
|
||
|
PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
|
||
|
|
||
|
inherit distutils-r1
|
||
|
|
||
|
DESCRIPTION="A logging replacement for Python"
|
||
|
HOMEPAGE="http://packages.python.org/Logbook/ http://pypi.python.org/pypi/Logbook"
|
||
|
SRC_URI="https://github.com/mitsuhiko/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
|
||
|
LICENSE="BSD"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE="doc test"
|
||
|
DISTUTILS_IN_SOURCE_BUILD=1
|
||
|
|
||
|
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||
|
test? ( dev-python/pytest[${PYTHON_USEDEP}] )
|
||
|
doc? ( >=dev-python/sphinx-1.1.3-r3[${PYTHON_USEDEP}] )"
|
||
9 years ago
|
RDEPEND="
|
||
|
dev-python/redis-py[${PYTHON_USEDEP}]
|
||
|
>=dev-python/six-1.4.0[${PYTHON_USEDEP}]"
|
||
9 years ago
|
|
||
|
PATCHES=( "${FILESDIR}"/${PN}-0.4.2-objectsinv.patch )
|
||
|
|
||
|
python_prepare_all() {
|
||
|
# Delete test file requiring local conncetion to redis server
|
||
|
rm tests/test_queues.py || die
|
||
|
distutils-r1_python_prepare_all
|
||
|
}
|
||
|
|
||
|
python_compile_all() {
|
||
|
use doc && emake -C docs html
|
||
|
}
|
||
|
|
||
|
python_test() {
|
||
|
py.test tests || die "Tests failed under ${EPYTHON}"
|
||
|
}
|
||
|
|
||
|
python_install_all() {
|
||
|
use doc && HTML_DOCS=( docs/_build/html/. )
|
||
|
distutils-r1_python_install_all
|
||
|
}
|