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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Jul 8 20:45:21 2015 UTC (5 years ago) by zlogene
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
x86 stable wrt bug #554114

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

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/python-neutronclient/python-neutronclient-2.4.0.ebuild,v 1.2 2015/07/07 16:18:31 zlogene Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python2_7 python3_3 python3_4 )
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.8[${PYTHON_USEDEP}]
22 <dev-python/pbr-1.0[${PYTHON_USEDEP}]
23 test? (
24 >=dev-python/hacking-0.10.0[${PYTHON_USEDEP}]
25 <dev-python/hacking-0.11[${PYTHON_USEDEP}]
26 >=dev-python/coverage-3.6[${PYTHON_USEDEP}]
27 >=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}]
28 >=dev-python/mox3-0.7.0[${PYTHON_USEDEP}]
29 >=dev-python/mock-1.0[${PYTHON_USEDEP}]
30 >=dev-python/oslo-sphinx-2.5.0[${PYTHON_USEDEP}]
31 <dev-python/oslo-sphinx-2.6.0[${PYTHON_USEDEP}]
32 >=dev-python/oslotest-1.5.1[${PYTHON_USEDEP}]
33 <dev-python/oslotest-1.6.0[${PYTHON_USEDEP}]
34 >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}]
35 >=dev-python/requests-mock-0.6.0[${PYTHON_USEDEP}]
36 >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
37 >=dev-python/testtools-0.9.36[${PYTHON_USEDEP}]
38 <dev-python/testtools-1.2.0[${PYTHON_USEDEP}]
39 >=dev-python/tempest-lib-0.4.0[${PYTHON_USEDEP}]
40 )
41 doc? (
42 >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
43 !~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}]
44 <dev-python/sphinx-1.3[${PYTHON_USEDEP}]
45 )"
46
47 RDEPEND="
48 >=dev-python/cliff-1.10.0[${PYTHON_USEDEP}]
49 <dev-python/cliff-1.11.0[${PYTHON_USEDEP}]
50 >=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}]
51 >=dev-python/netaddr-0.7.12[${PYTHON_USEDEP}]
52 >=dev-python/oslo-i18n-1.5.0[${PYTHON_USEDEP}]
53 <dev-python/oslo-i18n-1.6.0[${PYTHON_USEDEP}]
54 >=dev-python/oslo-serialization-1.4.0[${PYTHON_USEDEP}]
55 <dev-python/oslo-serialization-1.5.0[${PYTHON_USEDEP}]
56 >=dev-python/oslo-utils-1.4.0[${PYTHON_USEDEP}]
57 <dev-python/oslo-utils-1.5.0[${PYTHON_USEDEP}]
58 >=dev-python/requests-2.2.0[${PYTHON_USEDEP}]
59 !~dev-python/requests-2.4.0[${PYTHON_USEDEP}]
60 >=dev-python/python-keystoneclient-1.1.0[${PYTHON_USEDEP}]
61 >=dev-python/simplejson-2.2.0[${PYTHON_USEDEP}]
62 >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
63 >=dev-python/Babel-1.3[${PYTHON_USEDEP}]"
64
65 python_prepare_all() {
66 # built in...
67 sed -i '/argparse/d' requirements.txt
68 distutils-r1_python_prepare_all
69 }
70
71 python_compile_all() {
72 use doc && "${PYTHON}" setup.py build_sphinx
73 }
74
75 python_test() {
76 testr init
77 testr run || die "tests failed under python2.7"
78 flake8 neutronclient/tests || die "run by flake8 over tests folder yielded error"
79 }
80
81 python_install() {
82 distutils-r1_python_install
83 #stupid stupid
84 local SITEDIR="${D%/}$(python_get_sitedir)" || die
85 cd "${SITEDIR}" || die
86 local egg=( python_neutronclient*.egg-info )
87 #[[ -f ${egg[0]} ]] || die "python_quantumclient*.egg-info not found"
88 ln -s "${egg[0]}" "${egg[0]/neutron/quantum}" || die
89 ln -s neutronclient quantumclient || die
90 ln -s neutron quantumclient/quantum || die
91 }
92
93 python_install_all() {
94 use doc && local HTML_DOCS=( doc/build/html/. )
95 distutils-r1_python_install_all
96 }

  ViewVC Help
Powered by ViewVC 1.1.20