/[gentoo-x86]/dev-python/pbr/pbr-0.8.2.ebuild
Gentoo

Contents of /dev-python/pbr/pbr-0.8.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Fri May 15 07:11:57 2015 UTC (3 years, 2 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +2 -2 lines
x86 stable wrt bug #530600

(Portage version: 2.2.18/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key A188FBD4)

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/pbr/pbr-0.8.2.ebuild,v 1.8 2015/05/15 07:10:17 pacho Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
7
8 inherit distutils-r1
9
10 DESCRIPTION="PBR is a library that injects some useful and sensible default
11 behaviors into your setuptools run."
12 HOMEPAGE="https://github.com/openstack-dev/pbr"
13 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
14
15 LICENSE="Apache-2.0"
16 SLOT="0"
17 KEYWORDS="alpha ~amd64 arm hppa ~ia64 ppc ppc64 x86 ~amd64-linux ~x86-linux"
18 IUSE="test"
19
20 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
21 test? ( >=dev-python/coverage-3.6[${PYTHON_USEDEP}]
22 >=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}]
23 >=dev-python/flake8-2.0[${PYTHON_USEDEP}]
24 >=dev-python/mock-1.0[${PYTHON_USEDEP}]
25 >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}]
26 >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
27 dev-python/sphinx[${PYTHON_USEDEP}]
28 >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
29 >=dev-python/testresources-0.2.4[${PYTHON_USEDEP}]
30 >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
31 >=dev-python/testtools-0.9.34[${PYTHON_USEDEP}] )"
32 RDEPEND=">dev-python/pip-1.4[${PYTHON_USEDEP}]"
33
34 # Requ'd for testsuite
35 DISTUTILS_IN_SOURCE_BUILD=1
36 # You can do this in about 3 different ways; throw it in a src_test() and prepend it to a
37 # distutils-r1_src_test or os it a distutils-r1_python_test, but really it makes for a HUGE 'meh'
38
39 # This normally actually belongs here.
40 python_prepare_all() {
41 # This test passes when run within the source and doesn't represent a failure, but rather
42 # a gentoo sandbox constraint
43 sed -e s':test_console_script_develop:_&:' -i pbr/tests/test_core.py || die
44 distutils-r1_python_prepare_all
45 }
46
47 python_test() {
48 testr init
49 testr run || die "Testsuite failed under ${EPYTHON}"
50 flake8 "${PN}"/tests || die "Run over tests folder by flake8 drew error"
51 }

  ViewVC Help
Powered by ViewVC 1.1.20