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: Fri, 16 Feb 2018 06:08:25
Message-Id: 1518760036.5f5c5a28455ddfcb53de7dfd721e8c17916d9504.prometheanfire@gentoo
1 commit: 5f5c5a28455ddfcb53de7dfd721e8c17916d9504
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 16 05:47:16 2018 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 16 05:47:16 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f5c5a28
7
8 dev-python/oslo-utils: 3.35.0 bup
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 dev-python/oslo-utils/Manifest | 1 +
13 dev-python/oslo-utils/oslo-utils-3.35.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 77350c09ca0..6f0f84d4049 100644
18 --- a/dev-python/oslo-utils/Manifest
19 +++ b/dev-python/oslo-utils/Manifest
20 @@ -1 +1,2 @@
21 DIST oslo-utils-3.28.1.tar.gz 85889 BLAKE2B b789bcee79f30a59a178c51997b42bc63bc67b998aedf2972b7f01c098992236eb2535a4e7fc43cbde5888340b0b14930093b49142fc9434fa7ea0069733b7d7 SHA512 f46c097378af27b8b1e7c9ff0908e3077c19c819ca02a9c181a54fd77a62506668ca22b42d5127a9e49f62244d034b5cef0b7c8c751b55a651a6f46fff0b4c02
22 +DIST oslo-utils-3.35.0.tar.gz 86107 BLAKE2B 2b4e00af5993799e43b40d63c667fb582984f8abbdd768203e0c95d2ecaf0f8ea10ba70ed520c116ed0da841dcac479d81881b4061ffe3529d8fe26917bb264f SHA512 dee75fd36b1c3fbccbb432408769c15d17b7dfdeef3b6f7056218670ca2c7e97a1e98acae3e06810f842a8e20fab1cf419b23153cde94c93e6b60e498ae2f527
23
24 diff --git a/dev-python/oslo-utils/oslo-utils-3.35.0.ebuild b/dev-python/oslo-utils/oslo-utils-3.35.0.ebuild
25 new file mode 100644
26 index 00000000000..90b8d63dc81
27 --- /dev/null
28 +++ b/dev-python/oslo-utils/oslo-utils-3.35.0.ebuild
29 @@ -0,0 +1,95 @@
30 +# Copyright 1999-2018 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/testrepository-0.0.18[${PYTHON_USEDEP}]
58 + >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
59 + >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
60 + >=dev-python/oslotest-1.10.0[${PYTHON_USEDEP}]
61 + >=dev-python/ddt-1.0.1[${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-5.1.0[${PYTHON_USEDEP}]
66 + >=dev-python/bandit-1.1.0[${PYTHON_USEDEP}]
67 + )
68 + doc? (
69 + >=dev-python/sphinx-1.6.2[${PYTHON_USEDEP}]
70 + !~dev-python/sphinx-1.6.6[${PYTHON_USEDEP}]
71 + >=dev-python/openstackdocstheme-1.18.1[${PYTHON_USEDEP}]
72 + >=dev-python/reno-2.5.0[${PYTHON_USEDEP}]
73 + >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]
74 + )
75 +"
76 +RDEPEND="
77 + ${CDEPEND}
78 + >=dev-python/six-1.10.0[${PYTHON_USEDEP}]
79 + virtual/python-funcsigs[${PYTHON_USEDEP}]
80 + >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}]
81 + >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}]
82 + >=dev-python/monotonic-0.6[${PYTHON_USEDEP}]
83 + >=dev-python/pytz-2013.6[${PYTHON_USEDEP}]
84 + >=dev-python/netaddr-0.7.18[${PYTHON_USEDEP}]
85 + >=dev-python/netifaces-0.10.4[${PYTHON_USEDEP}]
86 + >=dev-python/debtcollector-1.2.0[${PYTHON_USEDEP}]
87 + >=dev-python/pyparsing-2.1.0[${PYTHON_USEDEP}]
88 +"
89 +
90 +python_prepare_all() {
91 + sed -i '/^hacking/d' test-requirements.txt || die
92 + distutils-r1_python_prepare_all
93 +}
94 +
95 +python_compile_all() {
96 + use doc && esetup.py build_sphinx
97 +}
98 +
99 +# Note: Tests fail due to requiring installation
100 +#
101 +# Installation appears to fail due to the use of namespace packages but root
102 +# cause was never truly established.
103 +#
104 +# Tests fail with:
105 +# ImportError: No module named 'oslo.utils
106 +
107 +#RESTRICT="test"
108 +
109 +python_test() {
110 + distutils_install_for_testing
111 +
112 + cd "${TEST_DIR}"/lib || die
113 +
114 + rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPTYHON}"
115 +
116 + testr init || die "testr init failed under ${EPYTHON}"
117 + testr run || die "testr run failed under ${EPYTHON}"
118 +}
119 +
120 +python_install_all() {
121 + use doc && local HTML_DOCS=( doc/build/html/. )
122 +
123 + distutils-r1_python_install_all
124 +}