1 |
commit: 96c8b51427d8ee34e518e2f644723dee77250444 |
2 |
Author: Matthew Thode <mthode <AT> mthode <DOT> org> |
3 |
AuthorDate: Tue Sep 1 15:29:26 2015 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 1 15:29:26 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96c8b514 |
7 |
|
8 |
dev-python/oslo-utils: adding for liberty |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
dev-python/oslo-utils/Manifest | 1 + |
13 |
dev-python/oslo-utils/oslo-utils-2.4.0.ebuild | 91 +++++++++++++++++++++++++++ |
14 |
2 files changed, 92 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/oslo-utils/Manifest b/dev-python/oslo-utils/Manifest |
17 |
index d7c00aa..425be44 100644 |
18 |
--- a/dev-python/oslo-utils/Manifest |
19 |
+++ b/dev-python/oslo-utils/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
+DIST oslo-utils-2.4.0.tar.gz 56342 SHA256 fe210740eca9ef168afbb98038b94e48e3beb17f48b8a771f044a5fbfc7d0397 SHA512 6fa0b065f905c09c02748b76ef1818789fb96773beb1ac5d2bebb8edf76794e411961fd259e4ecda754ec0b8ebd3d8e323ac6ac3f971c4bf2d6755e2ca2ab64e WHIRLPOOL 888057b8720fc91b3b6ac85d8c6db88b2998d0cec1b495da7aaf10d2cd2cba0e482dd667479d5bf21d2414fc26e9373afd9d4fa8d433d9734d6a33fd789ae4c3 |
22 |
DIST oslo.utils-1.0.0.tar.gz 32719 SHA256 4d1fdb896eb7a690ddf2a04b47c347caefaf1117bb2be83723546fbaa5141864 SHA512 09c6b759f39eb90ec382f68f3cf70e600847bdc6c44802a82e279a10be75587fe5e67f5e5b136ab6ac338b69ff484a869dbf236e0e46fc72a90ca69619a53c9b WHIRLPOOL 470720887a248afc953c691ba8e659fb010b3b59708992a34387814487b3077f723879f603d931d1a14efd87fe95f868103ca7beaa8bb78c97a9510c28e8364c |
23 |
DIST oslo.utils-1.1.0.tar.gz 40359 SHA256 f12dfba246ff52e94ec005d5c5862c0300e6cd295ceb953b37b876571a544dc1 SHA512 6b6ffc086e88c0222e9931c78680f15f021b9e9bb211bcb9b4114cc62f47b5bf85846b58e7b792355c7bfe1c01dddcb78871f981fde719360c3889daa85a5ddc WHIRLPOOL f44c34acdecd1d4bd495c60e65d41cebdaa7ef1a39fc4a749a339161ec428e3d274462e34fa8729aa2e7bcdc1f0de66e8d3f87c022c6c91425f1778ca7bef145 |
24 |
DIST oslo.utils-1.2.1.tar.gz 54946 SHA256 9cd8bcde345554582fd12c6daab81a7327a90c72861aa644e8b7b3fbfed5deba SHA512 f928afe21ef908cb6f20beb42502c4709827fdcc7e44f81fd5adeb4ac8faf07649c813824702e0a1972e8100ec894f441017dfc3a887f1b56afd4bfa24846803 WHIRLPOOL c91b4e2eb283b46df6341d7f52ca61ee20b286c84afd8ca8a287627a7d3be914b343c9fd1ea141e02f2c7179c96921ab38c6d094666ba3979dc639fa5fb2e4f7 |
25 |
|
26 |
diff --git a/dev-python/oslo-utils/oslo-utils-2.4.0.ebuild b/dev-python/oslo-utils/oslo-utils-2.4.0.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..c65ee71 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/oslo-utils/oslo-utils-2.4.0.ebuild |
31 |
@@ -0,0 +1,91 @@ |
32 |
+# Copyright 1999-2015 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=5 |
37 |
+PYTHON_COMPAT=( python2_7 python3_3 python3_4 ) |
38 |
+ |
39 |
+inherit distutils-r1 vcs-snapshot |
40 |
+ |
41 |
+MY_PN=${PN/-/.} |
42 |
+ |
43 |
+DESCRIPTION="Oslo Utility library" |
44 |
+HOMEPAGE="http://launchpad.net/oslo" |
45 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="Apache-2.0" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+IUSE="doc test" |
51 |
+ |
52 |
+CDEPEND=" |
53 |
+ >=dev-python/pbr-1.4[${PYTHON_USEDEP}] |
54 |
+ <dev-python/pbr-2.0[${PYTHON_USEDEP}] |
55 |
+" |
56 |
+DEPEND=" |
57 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
58 |
+ ${CDEPEND} |
59 |
+ test? ( |
60 |
+ >=dev-python/fixtures-1.3.1[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}] |
63 |
+ >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/testtools-1.4.0[${PYTHON_USEDEP}] |
65 |
+ >=dev-python/oslotest-1.10.0[${PYTHON_USEDEP}] |
66 |
+ >=dev-python/mock-1.2[${PYTHON_USEDEP}] |
67 |
+ >=dev-python/oslo-config-2.1.0[${PYTHON_USEDEP}] |
68 |
+ ) |
69 |
+ doc? ( |
70 |
+ >=dev-python/oslo-sphinx-2.5.0[${PYTHON_USEDEP}] |
71 |
+ >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}] |
72 |
+ !~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}] |
73 |
+ <dev-python/sphinx-1.3[${PYTHON_USEDEP}] |
74 |
+ ) |
75 |
+" |
76 |
+RDEPEND=" |
77 |
+ ${CDEPEND} |
78 |
+ >=dev-python/Babel-1.3[${PYTHON_USEDEP}] |
79 |
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
80 |
+ >=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}] |
81 |
+ >=dev-python/oslo-i18n-1.5.0[${PYTHON_USEDEP}] |
82 |
+ >=dev-python/monotonic-0.3[${PYTHON_USEDEP}] |
83 |
+ >=dev-python/pytz-2013.6[${PYTHON_USEDEP}] |
84 |
+ >=dev-python/netaddr-0.7.12[${PYTHON_USEDEP}] |
85 |
+ >=dev-python/netifaces-0.10.4[${PYTHON_USEDEP}] |
86 |
+ >=dev-python/debtcollector-0.3.0[${PYTHON_USEDEP}] |
87 |
+" |
88 |
+ |
89 |
+python_prepare_all() { |
90 |
+ sed -i '/^hacking/d' test-requirements.txt || die |
91 |
+} |
92 |
+ |
93 |
+python_compile_all() { |
94 |
+ use doc && esetup.py build_sphinx |
95 |
+} |
96 |
+ |
97 |
+# Note: Tests fail due to requiring installation |
98 |
+# |
99 |
+# Installation appears to fail due to the use of namespace packages but root |
100 |
+# cause was never truly established. |
101 |
+# |
102 |
+# Tests fail with: |
103 |
+# ImportError: No module named 'oslo.utils |
104 |
+ |
105 |
+#RESTRICT="test" |
106 |
+ |
107 |
+python_test() { |
108 |
+ distutils_install_for_testing |
109 |
+ |
110 |
+ cd "${TEST_DIR}"/lib || die |
111 |
+ |
112 |
+ rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPTYHON}" |
113 |
+ |
114 |
+ testr init || die "testr init failed under ${EPYTHON}" |
115 |
+ testr run || die "testr run failed under ${EPYTHON}" |
116 |
+} |
117 |
+ |
118 |
+python_install_all() { |
119 |
+ use doc && local HTML_DOCS=( doc/build/html/. ) |
120 |
+ |
121 |
+ distutils-r1_python_install_all |
122 |
+} |