/[gentoo-x86]/dev-python/python-neutronclient/python-neutronclient-2.3.6.ebuild
Gentoo

Contents of /dev-python/python-neutronclient/python-neutronclient-2.3.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Aug 1 05:41:17 2014 UTC (5 years, 11 months ago) by prometheanfire
Branch: MAIN
CVS Tags: HEAD
bup

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/python-neutronclient/python-neutronclient-2.3.4.ebuild,v 1.2 2014/07/06 12:48:29 mgorny Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python2_7 )
7
8 inherit distutils-r1
9
10 DESCRIPTION="A client for the OpenStack Quantum API"
11 HOMEPAGE="https://launchpad.net/neutron"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
13
14 LICENSE="Apache-2.0"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
17 IUSE="doc test"
18 REQUIRED_USE="test? ( doc )"
19
20 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
21 >=dev-python/pbr-0.6[${PYTHON_USEDEP}]
22 !~dev-python/pbr-0.7[${PYTHON_USEDEP}]
23 <dev-python/pbr-1.0[${PYTHON_USEDEP}]
24 test? (
25 >=dev-python/hacking-0.8.0[${PYTHON_USEDEP}]
26 <dev-python/hacking-0.9[${PYTHON_USEDEP}]
27 >=dev-python/cliff-tablib-1.0[${PYTHON_USEDEP}]
28 >=dev-python/coverage-3.6[${PYTHON_USEDEP}]
29 >=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}]
30 >=dev-python/mox3-0.7.0[${PYTHON_USEDEP}]
31 dev-python/oslo-sphinx[${PYTHON_USEDEP}]
32 dev-python/oslotest[${PYTHON_USEDEP}]
33 >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}]
34 >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
35 >=dev-python/testtools-0.9.34[${PYTHON_USEDEP}]
36 )
37 doc? (
38 >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
39 !~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}]
40 <dev-python/sphinx-1.3[${PYTHON_USEDEP}]
41 )"
42
43 RDEPEND=">=dev-python/cliff-1.6.0[${PYTHON_USEDEP}]
44 >=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}]
45 >=dev-python/netaddr-0.7.6[${PYTHON_USEDEP}]
46 >=dev-python/requests-1.1[${PYTHON_USEDEP}]
47 >=dev-python/python-keystoneclient-0.9.0[${PYTHON_USEDEP}]
48 >=dev-python/simplejson-2.0.9[${PYTHON_USEDEP}]
49 >=dev-python/six-1.7.0[${PYTHON_USEDEP}]
50 >=dev-python/Babel-1.3[${PYTHON_USEDEP}]"
51
52 python_prepare_all() {
53 sed -e 's:intersphinx_:#&:' -i doc/source/conf.py || die
54 distutils-r1_python_prepare_all
55 }
56
57 python_compile_all() {
58 use doc && "${PYTHON}" setup.py build_sphinx
59 }
60
61 python_test() {
62 testr init
63 testr run || die "tests failed under python2.7"
64 flake8 neutronclient/tests || die "run by flake8 over tests folder yielded error"
65 }
66
67 python_install() {
68 distutils-r1_python_install
69 #stupid stupid
70 local SITEDIR="${D%/}$(python_get_sitedir)" || die
71 cd "${SITEDIR}" || die
72 local egg=( python_neutronclient*.egg-info )
73 #[[ -f ${egg[0]} ]] || die "python_quantumclient*.egg-info not found"
74 ln -s "${egg[0]}" "${egg[0]/neutron/quantum}" || die
75 ln -s neutronclient quantumclient || die
76 ln -s neutron quantumclient/quantum || die
77 }
78
79 python_install_all() {
80 use doc && local HTML_DOCS=( doc/build/html/. )
81 distutils-r1_python_install_all
82 }

  ViewVC Help
Powered by ViewVC 1.1.20