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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jun 22 17:19:57 2015 UTC (3 years ago) by prometheanfire
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -3 lines
fixing bad bump by jlec

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

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-1.2.0.ebuild,v 1.1 2015/06/22 10:03:03 jlec Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python2_7 python3_{3,4} )
8
9 inherit distutils-r1
10
11 DESCRIPTION="Inject some useful and sensible default behaviors into setuptools"
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="
21 dev-python/setuptools[${PYTHON_USEDEP}]
22 test? (
23 >=dev-python/coverage-3.6[${PYTHON_USEDEP}]
24 >=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}]
25 >=dev-python/mock-1.0[${PYTHON_USEDEP}]
26 >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}]
27 >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
28 !~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}]
29 <dev-python/sphinx-1.3[${PYTHON_USEDEP}]
30 >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
31 >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
32 >=dev-python/testresources-0.2.4[${PYTHON_USEDEP}]
33 >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
34 >=dev-python/testtools-1.4.0[${PYTHON_USEDEP}]
35 dev-python/virtualenv[${PYTHON_USEDEP}]
36 )"
37 RDEPEND="dev-python/pip[${PYTHON_USEDEP}]"
38
39 # Requ'd for testsuite
40 DISTUTILS_IN_SOURCE_BUILD=1
41
42 # This normally actually belongs here.
43 python_prepare_all() {
44 # This test passes when run within the source and doesn't represent a failure, but rather
45 # a gentoo sandbox constraint
46 # Rm tests that rely upon the package being already installed and fail
47 sed -e s':test_console_script_develop:_&:' \
48 -e s':test_console_script_install:_&:' \
49 -e s':test_sdist_extra_files:_&:' \
50 -e s':test_command_hooks:_&:' \
51 -e s':test_sdist_git_extra_files:_&:' \
52 -i pbr/tests/test_core.py || die
53 sed -e s':test_command_hooks:_&:' \
54 -e s':test_global_setup_hooks:_&:' \
55 -i pbr/tests/test_hooks.py || die
56 einfo "rogue tests disabled"
57
58 distutils-r1_python_prepare_all
59 }
60
61 python_test() {
62 # Note; removed tests pass once package is emerged,
63 # it's the suite's design that breaks form, not the tests' intended purpose
64 testr init || die
65 testr run || die "Testsuite failed under ${EPYTHON}"
66 }

  ViewVC Help
Powered by ViewVC 1.1.20