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: Wed, 22 Nov 2017 02:00:50
Message-Id: 1511316017.827c6a43e1fb90f5d98e21c1440b723bc2d7339c.prometheanfire@gentoo
1 commit: 827c6a43e1fb90f5d98e21c1440b723bc2d7339c
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 22 01:59:06 2017 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 22 02:00:17 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=827c6a43
7
8 dev-python/oslo-utils: 3.28.1 bup
9
10 Package-Manager: Portage-2.3.14, Repoman-2.3.6
11
12 dev-python/oslo-utils/Manifest | 1 +
13 dev-python/oslo-utils/oslo-utils-3.28.1.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 874041d6443..27f45fbace5 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.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 +DIST oslo-utils-3.28.1.tar.gz 85889 SHA256 fd8e687cdc5b3d042073f6c7258b342afa455cc050a59e8d2616bacc38c8b782 SHA512 f46c097378af27b8b1e7c9ff0908e3077c19c819ca02a9c181a54fd77a62506668ca22b42d5127a9e49f62244d034b5cef0b7c8c751b55a651a6f46fff0b4c02 WHIRLPOOL 2656d46c8fb609c4c8ef804a94d66aa3535bbeb993a954ceef4b24f1b48825a307d17d13863d3dcdc6aa7fc98d9e371f87a7bd9b46618e3b7b616973bde94665
24
25 diff --git a/dev-python/oslo-utils/oslo-utils-3.28.1.ebuild b/dev-python/oslo-utils/oslo-utils-3.28.1.ebuild
26 new file mode 100644
27 index 00000000000..74c65f56966
28 --- /dev/null
29 +++ b/dev-python/oslo-utils/oslo-utils-3.28.1.ebuild
30 @@ -0,0 +1,99 @@
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=( python2_7 python3_{4,5,6} )
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-2.0.0[${PYTHON_USEDEP}]
52 + !~dev-python/pbr-2.1.0[${PYTHON_USEDEP}]"
53 +DEPEND="
54 + dev-python/setuptools[${PYTHON_USEDEP}]
55 + ${CDEPEND}
56 + test? (
57 + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
58 + >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}]
59 + >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
60 + >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
61 + >=dev-python/testtools-1.4.0[${PYTHON_USEDEP}]
62 + >=dev-python/oslotest-1.10.0[${PYTHON_USEDEP}]
63 + >=dev-python/coverage-4.0.0[${PYTHON_USEDEP}]
64 + !~dev-python/coverage-4.4.0[${PYTHON_USEDEP}]
65 + >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
66 + >=dev-python/oslo-config-4.0.0[${PYTHON_USEDEP}]
67 + !~dev-python/oslo-config-4.3.0[${PYTHON_USEDEP}]
68 + !~dev-python/oslo-config-4.4.0[${PYTHON_USEDEP}]
69 + >=dev-python/bandit-1.1.0[${PYTHON_USEDEP}]
70 + >=dev-python/reno-1.8.0[${PYTHON_USEDEP}]
71 + )
72 + doc? (
73 + >=dev-python/sphinx-1.6.2[${PYTHON_USEDEP}]
74 + >=dev-python/openstackdocstheme-1.16.0[${PYTHON_USEDEP}]
75 + >=dev-python/reno-1.8.0[${PYTHON_USEDEP}]
76 + !~dev-python/reno-2.3.1[${PYTHON_USEDEP}]
77 + )
78 +"
79 +RDEPEND="
80 + ${CDEPEND}
81 + >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
82 + virtual/python-funcsigs[${PYTHON_USEDEP}]
83 + >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}]
84 + >=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}]
85 + !~dev-python/oslo-i18n-3.15.2[${PYTHON_USEDEP}]
86 + >=dev-python/monotonic-0.6[${PYTHON_USEDEP}]
87 + >=dev-python/pytz-2013.6[${PYTHON_USEDEP}]
88 + >=dev-python/netaddr-0.7.13[${PYTHON_USEDEP}]
89 + !~dev-python/netaddr-0.7.16[${PYTHON_USEDEP}]
90 + >=dev-python/netifaces-0.10.4[${PYTHON_USEDEP}]
91 + >=dev-python/debtcollector-1.2.0[${PYTHON_USEDEP}]
92 + >=dev-python/pyparsing-2.1.0[${PYTHON_USEDEP}]
93 +"
94 +
95 +python_prepare_all() {
96 + sed -i '/^hacking/d' test-requirements.txt || die
97 + distutils-r1_python_prepare_all
98 +}
99 +
100 +python_compile_all() {
101 + use doc && esetup.py build_sphinx
102 +}
103 +
104 +# Note: Tests fail due to requiring installation
105 +#
106 +# Installation appears to fail due to the use of namespace packages but root
107 +# cause was never truly established.
108 +#
109 +# Tests fail with:
110 +# ImportError: No module named 'oslo.utils
111 +
112 +#RESTRICT="test"
113 +
114 +python_test() {
115 + distutils_install_for_testing
116 +
117 + cd "${TEST_DIR}"/lib || die
118 +
119 + rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPTYHON}"
120 +
121 + testr init || die "testr init failed under ${EPYTHON}"
122 + testr run || die "testr run failed under ${EPYTHON}"
123 +}
124 +
125 +python_install_all() {
126 + use doc && local HTML_DOCS=( doc/build/html/. )
127 +
128 + distutils-r1_python_install_all
129 +}