1 |
commit: ac595048c0f06a3c13a65b5f7b6ea89e10a8a29e |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 6 16:24:48 2017 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 6 16:57:37 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac595048 |
7 |
|
8 |
dev-python/oslo-utils: 3.22.1 bup |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
dev-python/oslo-utils/Manifest | 1 + |
13 |
dev-python/oslo-utils/oslo-utils-3.22.1.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 8167f33206b..459124c42f0 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.0.tar.gz 84490 SHA256 aa72be266fee787541c02baa9ac341ec4b1b01b0d5a097db459aee05b27b12fb SHA512 09b53b5a322133ace2d68bba871746b88f709b50385b93bea0c4398ceb6a848a3019f2fc68f0bb645963a95432b9e616e733720ebb57aff61108d8e22bc11e70 WHIRLPOOL b464196269e165db0aaa9807a5e284f5905f5aaf95e6fd66cf3580838eb07611dacc3f69f2d21c7516c75694d6d246cb6c719756fca61b136388875a2e921236 |
22 |
+DIST oslo-utils-3.22.1.tar.gz 84249 SHA256 9825db6337ce10e7c383d2598f87865605d35af15fa9ece7212838ba7d33730e SHA512 afb21f8267f815e192a667fec247ae2e0d8163d7872805d36c4399928b475e34790136810607e8706ea37e32eb31da2fdc2b9defb2e06f7ba0a7235b2de1abc9 WHIRLPOOL 501cb7c18b2997635b5a2ffd91fd472f84168730e2cc76cb13f4937e657448e535d614e9eea64595bce31211af4e1ce0590cb8e313dd31785fe7700c4776585a |
23 |
|
24 |
diff --git a/dev-python/oslo-utils/oslo-utils-3.22.1.ebuild b/dev-python/oslo-utils/oslo-utils-3.22.1.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..605a8deb92e |
27 |
--- /dev/null |
28 |
+++ b/dev-python/oslo-utils/oslo-utils-3.22.1.ebuild |
29 |
@@ -0,0 +1,95 @@ |
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-1.8[${PYTHON_USEDEP}]" |
51 |
+DEPEND=" |
52 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
53 |
+ ${CDEPEND} |
54 |
+ test? ( |
55 |
+ >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/testtools-1.4.0[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/oslotest-1.10.0[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/coverage-4.0.0[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/mock-2.0.0[${PYTHON_USEDEP}] |
63 |
+ >=dev-python/oslo-config-3.14.0[${PYTHON_USEDEP}] |
64 |
+ !~dev-python/oslo-config-3.18.0[${PYTHON_USEDEP}] |
65 |
+ >=dev-python/bandit-1.1.0[${PYTHON_USEDEP}] |
66 |
+ >=dev-python/reno-1.8.0[${PYTHON_USEDEP}] |
67 |
+ ) |
68 |
+ doc? ( |
69 |
+ >=dev-python/oslo-sphinx-4.7.0[${PYTHON_USEDEP}] |
70 |
+ >=dev-python/sphinx-1.2.1[${PYTHON_USEDEP}] |
71 |
+ <dev-python/sphinx-1.4[${PYTHON_USEDEP}] |
72 |
+ >=dev-python/reno-1.8.0[${PYTHON_USEDEP}] |
73 |
+ ) |
74 |
+" |
75 |
+RDEPEND=" |
76 |
+ ${CDEPEND} |
77 |
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
78 |
+ virtual/python-funcsigs[${PYTHON_USEDEP}] |
79 |
+ >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}] |
80 |
+ >=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}] |
81 |
+ >=dev-python/monotonic-0.6[${PYTHON_USEDEP}] |
82 |
+ >=dev-python/pytz-2013.6[${PYTHON_USEDEP}] |
83 |
+ >=dev-python/netaddr-0.7.13[${PYTHON_USEDEP}] |
84 |
+ !~dev-python/netaddr-0.7.16[${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 |
+} |