/[gentoo-x86]/dev-python/logbook/logbook-0.9.1.ebuild
Gentoo

Contents of /dev-python/logbook/logbook-0.9.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Jul 20 08:06:47 2015 UTC (4 years, 11 months ago) by monsieurp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Stable for amd64. Stable for x86 with ALLARCHES. Fix bug 555306.

Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 93491BB8)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/logbook/logbook-0.9.1.ebuild,v 1.2 2015/07/19 04:21:53 idella4 Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
7
8 inherit distutils-r1
9
10 DESCRIPTION="A logging replacement for Python"
11 HOMEPAGE="http://packages.python.org/Logbook/ http://pypi.python.org/pypi/Logbook"
12 SRC_URI="https://github.com/mitsuhiko/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
13
14 LICENSE="BSD"
15 SLOT="0"
16 KEYWORDS="amd64 x86"
17 IUSE="doc test"
18 DISTUTILS_IN_SOURCE_BUILD=1
19
20 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
21 test? ( dev-python/pytest[${PYTHON_USEDEP}] )
22 doc? ( >=dev-python/sphinx-1.1.3-r3[${PYTHON_USEDEP}] )"
23 RDEPEND="dev-python/redis-py[${PYTHON_USEDEP}]"
24
25 PATCHES=( "${FILESDIR}"/${PN}-0.4.2-objectsinv.patch )
26
27 python_prepare_all() {
28 # Delete test file requiring local connection to redis server
29 rm tests/test_queues.py || die
30 distutils-r1_python_prepare_all
31 }
32
33 python_compile_all() {
34 use doc && emake -C docs html
35 }
36
37 python_test() {
38 py.test tests || die "Tests failed under ${EPYTHON}"
39 }
40
41 python_install_all() {
42 use doc && HTML_DOCS=( docs/_build/html/. )
43 distutils-r1_python_install_all
44 }

  ViewVC Help
Powered by ViewVC 1.1.20