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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Apr 15 09:46:21 2015 UTC (3 years, 6 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Version Bump; drop old

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

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.8 2015/04/14 12:50:24 ago 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/flake8-2.0[${PYTHON_USEDEP}]
26 >=dev-python/mock-1.0[${PYTHON_USEDEP}]
27 >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}]
28 >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
29 dev-python/sphinx[${PYTHON_USEDEP}]
30 >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
31 >=dev-python/testresources-0.2.4[${PYTHON_USEDEP}]
32 >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
33 >=dev-python/testtools-0.9.34[${PYTHON_USEDEP}] )"
34 RDEPEND=">dev-python/pip-1.4[${PYTHON_USEDEP}]"
35
36 # Requ'd for testsuite
37 DISTUTILS_IN_SOURCE_BUILD=1
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 # Rm tests that rely upon the package being already installed and fail
44 sed -e s':test_console_script_develop:_&:' \
45 -e s':test_console_script_install:_&:' \
46 -e s':test_sdist_extra_files:_&:' \
47 -e s':test_command_hooks:_&:' \
48 -e s':test_sdist_git_extra_files:_&:' \
49 -i pbr/tests/test_core.py || die
50 sed -e s':test_command_hooks:_&:' \
51 -e s':test_global_setup_hooks:_&:' \
52 -i pbr/tests/test_hooks.py || die
53 einfo "rogue tests disabled"
54
55 distutils-r1_python_prepare_all
56 }
57
58 python_test() {
59 # Note; removed tests pass once package is emerged,
60 # it's the suite's design that breaks form, not the tests' intended purpose
61 testr init || die
62 testr run || die "Testsuite failed under ${EPYTHON}"
63 }

  ViewVC Help
Powered by ViewVC 1.1.20