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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Jul 19 04:21:53 2015 UTC (4 years, 11 months ago) by idella4
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +4 -2 lines
add missing dep, typos, rm old

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)

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.10.0.ebuild,v 1.1 2015/07/19 01:51:25 patrick 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="
24 dev-python/redis-py[${PYTHON_USEDEP}]
25 >=dev-python/six-1.4.0[${PYTHON_USEDEP}]"
26
27 PATCHES=( "${FILESDIR}"/${PN}-0.4.2-objectsinv.patch )
28
29 python_prepare_all() {
30 # Delete test file requiring local conncetion to redis server
31 rm tests/test_queues.py || die
32 distutils-r1_python_prepare_all
33 }
34
35 python_compile_all() {
36 use doc && emake -C docs html
37 }
38
39 python_test() {
40 py.test tests || die "Tests failed under ${EPYTHON}"
41 }
42
43 python_install_all() {
44 use doc && HTML_DOCS=( docs/_build/html/. )
45 distutils-r1_python_install_all
46 }

  ViewVC Help
Powered by ViewVC 1.1.20