Gentoo Archives: gentoo-commits

From: Matt Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/oslo-utils/
Date: Mon, 27 Feb 2017 02:16:22
Message-Id: 1488161686.cf379c49940288b651c94189c9dca130ec76e378.prometheanfire@gentoo
1 commit: cf379c49940288b651c94189c9dca130ec76e378
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 27 00:52:34 2017 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 27 02:14:46 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf379c49
7
8 dev-python/oslo-utils: bup
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 dev-python/oslo-utils/Manifest | 1 +
13 dev-python/oslo-utils/oslo-utils-3.22.0.ebuild | 95 ++++++++++++++++++++++++++
14 2 files changed, 96 insertions(+)
15
16 diff --git a/dev-python/oslo-utils/Manifest b/dev-python/oslo-utils/Manifest
17 index 34c4134833..8c5940870c 100644
18 --- a/dev-python/oslo-utils/Manifest
19 +++ b/dev-python/oslo-utils/Manifest
20 @@ -1,2 +1,3 @@
21 DIST oslo-utils-3.16.0.tar.gz 76660 SHA256 109e018da9d95caba79c94935257d2335e5a77e65ebbff218cb9756e746630f1 SHA512 58edfeb2b7cb59bcde1b7abf87a1509c30e586051fd7fc0803f6c0a53a717c084b2bbf4d2d906261f20053e3c32189bc86ad1b615c0b9437bacb9b2075dce8ec WHIRLPOOL ade367faefe2bd08ed3656c6727374468df4d70dba4e4b37c7dba1656c057fa0dfb167a537635b66c0df9b69bce5611b0fa0f62ac8ece9f64f4caec7b8621ee7
22 +DIST oslo-utils-3.22.0.tar.gz 84490 SHA256 aa72be266fee787541c02baa9ac341ec4b1b01b0d5a097db459aee05b27b12fb SHA512 09b53b5a322133ace2d68bba871746b88f709b50385b93bea0c4398ceb6a848a3019f2fc68f0bb645963a95432b9e616e733720ebb57aff61108d8e22bc11e70 WHIRLPOOL b464196269e165db0aaa9807a5e284f5905f5aaf95e6fd66cf3580838eb07611dacc3f69f2d21c7516c75694d6d246cb6c719756fca61b136388875a2e921236
23 DIST oslo-utils-3.8.0.tar.gz 70830 SHA256 c0e935b86e72facc02264271ed09dd9c5879d52452d7a1b4a116a6c7d05077aa SHA512 bd2e140f8f2c06c3b1ad8ee34071746e3987352d0ab79d91ea70716c34b4a8baa066e9731376618554b57b1b88ea570ab2f51c563c43f78a46ff7a132ed03fc5 WHIRLPOOL 865a2d438f0085c7cf50f2c29d12dcbb9f94dc1a5d7679d69a56f821029ef8f92d4f19dfa4375b302dd3848f77e35f7a168cefbd9e85bac26a680cfe3cfce9f1
24
25 diff --git a/dev-python/oslo-utils/oslo-utils-3.22.0.ebuild b/dev-python/oslo-utils/oslo-utils-3.22.0.ebuild
26 new file mode 100644
27 index 0000000000..e63a137ea0
28 --- /dev/null
29 +++ b/dev-python/oslo-utils/oslo-utils-3.22.0.ebuild
30 @@ -0,0 +1,95 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +PYTHON_COMPAT=( python{2_7,3_{4,5}} )
37 +
38 +inherit distutils-r1 vcs-snapshot
39 +
40 +MY_PN=${PN/-/.}
41 +
42 +DESCRIPTION="Oslo Utility library"
43 +HOMEPAGE="https://launchpad.net/oslo"
44 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="Apache-2.0"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm64 ~x86"
49 +IUSE="doc test"
50 +
51 +CDEPEND=">=dev-python/pbr-1.6[${PYTHON_USEDEP}]"
52 +DEPEND="
53 + dev-python/setuptools[${PYTHON_USEDEP}]
54 + ${CDEPEND}
55 + test? (
56 + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
57 + >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}]
58 + >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
59 + >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
60 + >=dev-python/testtools-1.4.0[${PYTHON_USEDEP}]
61 + >=dev-python/oslotest-1.10.0[${PYTHON_USEDEP}]
62 + >=dev-python/coverage-4.0.0[${PYTHON_USEDEP}]
63 + >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
64 + >=dev-python/oslo-config-3.14.0[${PYTHON_USEDEP}]
65 + !~dev-python/oslo-config-3.18.0[${PYTHON_USEDEP}]
66 + >=dev-python/bandit-1.1.0[${PYTHON_USEDEP}]
67 + >=dev-python/reno-1.8.0[${PYTHON_USEDEP}]
68 + )
69 + doc? (
70 + >=dev-python/oslo-sphinx-4.7.0[${PYTHON_USEDEP}]
71 + >=dev-python/sphinx-1.2.1[${PYTHON_USEDEP}]
72 + <dev-python/sphinx-1.4[${PYTHON_USEDEP}]
73 + >=dev-python/reno-1.8.0[${PYTHON_USEDEP}]
74 + )
75 +"
76 +RDEPEND="
77 + ${CDEPEND}
78 + >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
79 + virtual/python-funcsigs[${PYTHON_USEDEP}]
80 + >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}]
81 + >=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}]
82 + >=dev-python/monotonic-0.6[${PYTHON_USEDEP}]
83 + >=dev-python/pytz-2013.6[${PYTHON_USEDEP}]
84 + >=dev-python/netaddr-0.7.13[${PYTHON_USEDEP}]
85 + !~dev-python/netaddr-0.7.16[${PYTHON_USEDEP}]
86 + >=dev-python/netifaces-0.10.4[${PYTHON_USEDEP}]
87 + >=dev-python/debtcollector-1.2.0[${PYTHON_USEDEP}]
88 + >=dev-python/pyparsing-2.0.7[${PYTHON_USEDEP}]
89 +"
90 +
91 +python_prepare_all() {
92 + sed -i '/^hacking/d' test-requirements.txt || die
93 + distutils-r1_python_prepare_all
94 +}
95 +
96 +python_compile_all() {
97 + use doc && esetup.py build_sphinx
98 +}
99 +
100 +# Note: Tests fail due to requiring installation
101 +#
102 +# Installation appears to fail due to the use of namespace packages but root
103 +# cause was never truly established.
104 +#
105 +# Tests fail with:
106 +# ImportError: No module named 'oslo.utils
107 +
108 +#RESTRICT="test"
109 +
110 +python_test() {
111 + distutils_install_for_testing
112 +
113 + cd "${TEST_DIR}"/lib || die
114 +
115 + rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPTYHON}"
116 +
117 + testr init || die "testr init failed under ${EPYTHON}"
118 + testr run || die "testr run failed under ${EPYTHON}"
119 +}
120 +
121 +python_install_all() {
122 + use doc && local HTML_DOCS=( doc/build/html/. )
123 +
124 + distutils-r1_python_install_all
125 +}