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: Sun, 27 Aug 2017 04:26:24
Message-Id: 1503807869.f50bb0b2becc40a13cea6c0ed99ad5d4a13a2280.prometheanfire@gentoo
1 commit: f50bb0b2becc40a13cea6c0ed99ad5d4a13a2280
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 27 01:43:00 2017 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 27 04:24:29 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f50bb0b2
7
8 dev-python/oslo-utils: 3.28.0 bup
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.3
11
12 dev-python/oslo-utils/Manifest | 1 +
13 dev-python/oslo-utils/oslo-utils-3.28.0.ebuild | 99 ++++++++++++++++++++++++++
14 2 files changed, 100 insertions(+)
15
16 diff --git a/dev-python/oslo-utils/Manifest b/dev-python/oslo-utils/Manifest
17 index 14ad32d7389..874041d6443 100644
18 --- a/dev-python/oslo-utils/Manifest
19 +++ b/dev-python/oslo-utils/Manifest
20 @@ -1 +1,2 @@
21 DIST oslo-utils-3.22.1.tar.gz 84249 SHA256 9825db6337ce10e7c383d2598f87865605d35af15fa9ece7212838ba7d33730e SHA512 afb21f8267f815e192a667fec247ae2e0d8163d7872805d36c4399928b475e34790136810607e8706ea37e32eb31da2fdc2b9defb2e06f7ba0a7235b2de1abc9 WHIRLPOOL 501cb7c18b2997635b5a2ffd91fd472f84168730e2cc76cb13f4937e657448e535d614e9eea64595bce31211af4e1ce0590cb8e313dd31785fe7700c4776585a
22 +DIST oslo-utils-3.28.0.tar.gz 85122 SHA256 46abd731d8cfdb682eb5b1d22a2da3c549d79f889bd3db998eac4b64a955769f SHA512 0206f4e0fcf0c3bdc46062a37e14e37d7a2d141665b7f1ff4c0d5966d04403dffba8814d216b3dc010d0e845c983f3335095c1dee0373b82150447c914f37fe4 WHIRLPOOL 40ed09a867e69d46657d76b505705b6161382b11bb5f870b33746d75a67e57320d44df57cf83ea6f68fd48098e49fbb75712e3bf99b695f6f3ae25f78874e3a6
23
24 diff --git a/dev-python/oslo-utils/oslo-utils-3.28.0.ebuild b/dev-python/oslo-utils/oslo-utils-3.28.0.ebuild
25 new file mode 100644
26 index 00000000000..c718dde729f
27 --- /dev/null
28 +++ b/dev-python/oslo-utils/oslo-utils-3.28.0.ebuild
29 @@ -0,0 +1,99 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
36 +
37 +inherit distutils-r1 vcs-snapshot
38 +
39 +MY_PN=${PN/-/.}
40 +
41 +DESCRIPTION="Oslo Utility library"
42 +HOMEPAGE="https://launchpad.net/oslo"
43 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="Apache-2.0"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm64 ~x86"
48 +IUSE="doc test"
49 +
50 +CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
51 + !~dev-python/pbr-2.1.0[${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/coverage-4.4.0[${PYTHON_USEDEP}]
64 + >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
65 + >=dev-python/oslo-config-4.0.0[${PYTHON_USEDEP}]
66 + !~dev-python/oslo-config-4.3.0[${PYTHON_USEDEP}]
67 + !~dev-python/oslo-config-4.4.0[${PYTHON_USEDEP}]
68 + >=dev-python/bandit-1.1.0[${PYTHON_USEDEP}]
69 + >=dev-python/reno-1.8.0[${PYTHON_USEDEP}]
70 + )
71 + doc? (
72 + >=dev-python/sphinx-1.6.2[${PYTHON_USEDEP}]
73 + >=dev-python/openstackdocstheme-1.11.0[${PYTHON_USEDEP}]
74 + >=dev-python/reno-1.8.0[${PYTHON_USEDEP}]
75 + !~dev-python/reno-2.3.1[${PYTHON_USEDEP}]
76 + )
77 +"
78 +RDEPEND="
79 + ${CDEPEND}
80 + >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
81 + virtual/python-funcsigs[${PYTHON_USEDEP}]
82 + >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}]
83 + >=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}]
84 + !~dev-python/oslo-i18n-3.15.2[${PYTHON_USEDEP}]
85 + >=dev-python/monotonic-0.6[${PYTHON_USEDEP}]
86 + >=dev-python/pytz-2013.6[${PYTHON_USEDEP}]
87 + >=dev-python/netaddr-0.7.13[${PYTHON_USEDEP}]
88 + !~dev-python/netaddr-0.7.16[${PYTHON_USEDEP}]
89 + >=dev-python/netifaces-0.10.4[${PYTHON_USEDEP}]
90 + >=dev-python/debtcollector-1.2.0[${PYTHON_USEDEP}]
91 + >=dev-python/pyparsing-2.1.0[${PYTHON_USEDEP}]
92 +"
93 +
94 +python_prepare_all() {
95 + sed -i '/^hacking/d' test-requirements.txt || die
96 + distutils-r1_python_prepare_all
97 +}
98 +
99 +python_compile_all() {
100 + use doc && esetup.py build_sphinx
101 +}
102 +
103 +# Note: Tests fail due to requiring installation
104 +#
105 +# Installation appears to fail due to the use of namespace packages but root
106 +# cause was never truly established.
107 +#
108 +# Tests fail with:
109 +# ImportError: No module named 'oslo.utils
110 +
111 +#RESTRICT="test"
112 +
113 +python_test() {
114 + distutils_install_for_testing
115 +
116 + cd "${TEST_DIR}"/lib || die
117 +
118 + rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPTYHON}"
119 +
120 + testr init || die "testr init failed under ${EPYTHON}"
121 + testr run || die "testr run failed under ${EPYTHON}"
122 +}
123 +
124 +python_install_all() {
125 + use doc && local HTML_DOCS=( doc/build/html/. )
126 +
127 + distutils-r1_python_install_all
128 +}