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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Tue Jul 7 16:11:39 2015 UTC (4 years, 8 months ago) by zlogene
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Mark proper version stable

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

1 alunduil 1.1 # Copyright 1999-2015 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 zlogene 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-python/oslotest/oslotest-1.5.0.ebuild,v 1.2 2015/07/07 16:07:11 zlogene Exp $
4 alunduil 1.1
5     EAPI=5
6     PYTHON_COMPAT=( python2_7 python3_3 python3_4 )
7    
8     inherit distutils-r1
9    
10     DESCRIPTION="OpenStack 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 zlogene 1.3 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
17 alunduil 1.1 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.10[${PYTHON_USEDEP}]
29     >=dev-python/hacking-0.9.2[${PYTHON_USEDEP}]
30     )
31     doc? (
32     >=dev-python/oslo-sphinx-2.2.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