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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Tue Apr 14 12:50:24 2015 UTC (3 years, 8 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +2 -2 lines
Stable for ia64, wrt bug #540290

(Portage version: 2.2.14/cvs/Linux x86_64, RepoMan options: --include-arches="ia64", signed Manifest commit with key 7194459F)

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-r1.ebuild,v 1.7 2015/04/13 09:27:35 ago 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
37 # This normally actually belongs here.
38 python_prepare_all() {
39 # This test passes when run within the source and doesn't represent a failure, but rather
40 # a gentoo sandbox constraint
41 # Rm tests that rely upon the package being already installed and fail
42 sed -e s':test_console_script_develop:_&:' \
43 -e s':test_console_script_install:_&:' \
44 -e s':test_sdist_extra_files:_&:' \
45 -e s':test_command_hooks:_&:' \
46 -e s':test_sdist_git_extra_files:_&:' \
47 -i pbr/tests/test_core.py || die
48 sed -e s':test_command_hooks:_&:' \
49 -e s':test_global_setup_hooks:_&:' \
50 -i pbr/tests/test_hooks.py || die
51 einfo "rogue tests disabled"
52
53 distutils-r1_python_prepare_all
54 }
55
56 python_test() {
57 # Note; removed tests pass once package is emerged,
58 # it's the suite's design that breaks form, not the tests' intended purpose
59 testr init
60 testr run || die "Testsuite failed under ${EPYTHON}"
61 }

  ViewVC Help
Powered by ViewVC 1.1.20