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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Jun 9 22:11:37 2015 UTC (3 years, 3 months ago) by prometheanfire
Branch: MAIN
CVS Tags: HEAD
bup

(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.1.0.ebuild,v 1.1 2015/06/09 15:14:10 prometheanfire 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-0.9.36[${PYTHON_USEDEP}]
35 !~dev-python/testtools-1.2.0[${PYTHON_USEDEP}]
36 dev-python/virtualenv[${PYTHON_USEDEP}]
37 )"
38 RDEPEND="dev-python/pip[${PYTHON_USEDEP}]"
39
40 # Requ'd for testsuite
41 DISTUTILS_IN_SOURCE_BUILD=1
42
43 # This normally actually belongs here.
44 python_prepare_all() {
45 # This test passes when run within the source and doesn't represent a failure, but rather
46 # a gentoo sandbox constraint
47 # Rm tests that rely upon the package being already installed and fail
48 sed -e s':test_console_script_develop:_&:' \
49 -e s':test_console_script_install:_&:' \
50 -e s':test_sdist_extra_files:_&:' \
51 -e s':test_command_hooks:_&:' \
52 -e s':test_sdist_git_extra_files:_&:' \
53 -i pbr/tests/test_core.py || die
54 sed -e s':test_command_hooks:_&:' \
55 -e s':test_global_setup_hooks:_&:' \
56 -i pbr/tests/test_hooks.py || die
57 einfo "rogue tests disabled"
58
59 distutils-r1_python_prepare_all
60 }
61
62 python_test() {
63 # Note; removed tests pass once package is emerged,
64 # it's the suite's design that breaks form, not the tests' intended purpose
65 testr init || die
66 testr run || die "Testsuite failed under ${EPYTHON}"
67 }

  ViewVC Help
Powered by ViewVC 1.1.20