/[gentoo-x86]/dev-python/oslotest/oslotest-1.6.0.ebuild
Gentoo

Contents of /dev-python/oslotest/oslotest-1.6.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Apr 25 21:10:12 2015 UTC (4 years, 10 months ago) by alunduil
Branch: MAIN
CVS Tags: HEAD
add version 1.6.0

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

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/oslotest/oslotest-1.5.1.ebuild,v 1.1 2015/03/14 23:22:35 alunduil Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python2_7 python3_3 python3_4 )
7
8 inherit distutils-r1
9
10 DESCRIPTION="Oslo test framework"
11 HOMEPAGE="http://launchpad.net/oslo"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
13
14 LICENSE="Apache-2.0"
15 SLOT="0"
16 KEYWORDS="~amd64 ~amd64-linux ~x86 ~x86-linux"
17 IUSE="doc test"
18
19 CDEPEND="
20 >=dev-python/pbr-0.6[${PYTHON_USEDEP}]
21 !~dev-python/pbr-0.7[${PYTHON_USEDEP}]
22 <dev-python/pbr-1.0[${PYTHON_USEDEP}]
23 "
24 DEPEND="
25 dev-python/setuptools[${PYTHON_USEDEP}]
26 ${CDEPEND}
27 test? (
28 <dev-python/hacking-0.11[${PYTHON_USEDEP}]
29 >=dev-python/hacking-0.10.0[${PYTHON_USEDEP}]
30 )
31 doc? (
32 >=dev-python/oslo-sphinx-2.5.0[${PYTHON_USEDEP}]
33 >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
34 !~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}]
35 <dev-python/sphinx-1.3[${PYTHON_USEDEP}]
36 )
37 "
38 RDEPEND="
39 >=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}]
40 >=dev-python/mock-1.0[${PYTHON_USEDEP}]
41 >=dev-python/mox3-0.7.0[${PYTHON_USEDEP}]
42 >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
43 >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}]
44 >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
45 >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
46 >=dev-python/testtools-0.9.36[${PYTHON_USEDEP}]
47 !~dev-python/testtools-1.2.0[${PYTHON_USEDEP}]
48 "
49
50 python_compile_all() {
51 use doc && esetup.py build_sphinx
52 }
53
54 python_test() {
55 rm -rf .testrepository || die "coudln't remove '.testrepository' under ${EPYTHON}"
56
57 testr init || die "testr init failed under ${EPYTHON}"
58 testr run || die "testr run failed under ${EPYTHON}"
59 }
60
61 python_install_all() {
62 use doc && local HTML_DOCS=( doc/build/html/. )
63 use doc && doman doc/build/man/oslotest.1
64
65 distutils-r1_python_install_all
66 }
67
68 pkg_postinst() {
69 elog "man page installation requires USE=doc"
70 }

  ViewVC Help
Powered by ViewVC 1.1.20