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-serialization/
Date: Mon, 27 Feb 2017 02:16:23
Message-Id: 1488161708.f7fac187010aa4303360fed4aa86219f6749a067.prometheanfire@gentoo
1 commit: f7fac187010aa4303360fed4aa86219f6749a067
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 27 01:15:08 2017 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 27 02:15:08 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7fac187
7
8 dev-python/oslo-serialization: bup
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 dev-python/oslo-serialization/Manifest | 1 +
13 .../oslo-serialization-2.16.0.ebuild | 74 ++++++++++++++++++++++
14 2 files changed, 75 insertions(+)
15
16 diff --git a/dev-python/oslo-serialization/Manifest b/dev-python/oslo-serialization/Manifest
17 index 4ebafa65c2..b0c3bf591d 100644
18 --- a/dev-python/oslo-serialization/Manifest
19 +++ b/dev-python/oslo-serialization/Manifest
20 @@ -1,2 +1,3 @@
21 DIST oslo-serialization-1.11.0.tar.gz 20612 SHA256 b9a5b8bd4583957476464016f1c4d3ca01a30a0125acb1cd0ddd830715c88e1f SHA512 0fbe6282f26678208c22d31e6c221d63173688151b1eb228fd1dbbc184973c1039c43efa8d4f67f7f99dc3263d46021e6f0b7efcfbc4c13515d4a4d0f55cf0c2 WHIRLPOOL 3adb4c481ed8b8b789714b2d182b43cb7e948cfc49a73380c5abd3f662f00d10f8a10a41596f31c5a3ec98e75bbd170692a6fc8f720875fd4fe35d1b23df8e7a
22 DIST oslo-serialization-2.13.0.tar.gz 23273 SHA256 7bfdb1c10bc24c4887407a2ac46708b1fd16e9bc2ceb6bb3805696e8cebf6566 SHA512 0cbcc650c06a7468986971c92674ebb6ad66355c05584a9bb78099bb185818cf9a61fc44a98dada6e6879037cc54596d7095069ba1ce4e7e5ceb9348ea31a493 WHIRLPOOL 2ccb79d37b132af08b8c9174394f6c006587eeb8b69a94ef5af06e1fb85180e34ff652b3ce04c372c06808cedcae92183b56b26fc044e20f51080c664b8f58c2
23 +DIST oslo-serialization-2.16.0.tar.gz 28204 SHA256 0ef8dfa735a42dcfd7d804c5b14576df92407f842d5e12c1fad7eb0889c444fc SHA512 d6612d99e05e3c634d8b2a2e37183884f7aeec3608080bc2bbfcd8e436a64a678e1bb294024ddec0d276fc216fa92a9117a63eb085bc110500e07f1db172e5b0 WHIRLPOOL 5d43524577569a2ee194bc92f387fad10bf15e6922fa315f9559d6a7a6ecba95dfd977f30e7a9086e6120e38fc56f83d37e64f25bc113b6f212f03753f355cbd
24
25 diff --git a/dev-python/oslo-serialization/oslo-serialization-2.16.0.ebuild b/dev-python/oslo-serialization/oslo-serialization-2.16.0.ebuild
26 new file mode 100644
27 index 0000000000..6a5692c198
28 --- /dev/null
29 +++ b/dev-python/oslo-serialization/oslo-serialization-2.16.0.ebuild
30 @@ -0,0 +1,74 @@
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=( python{2_7,3_{4,5}} )
37 +
38 +inherit distutils-r1 vcs-snapshot
39 +
40 +MY_PN=${PN/-/.}
41 +
42 +DESCRIPTION="Oslo Serialization 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-1.8[${PYTHON_USEDEP}]"
52 +DEPEND="
53 + dev-python/setuptools[${PYTHON_USEDEP}]
54 + ${CDEPEND}
55 + test? (
56 + virtual/python-ipaddress[${PYTHON_USEDEP}]
57 + >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
58 + >=dev-python/netaddr-0.7.13[${PYTHON_USEDEP}]
59 + !~dev-python/netaddr-0.7.16[${PYTHON_USEDEP}]
60 + >=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}]
61 + >=dev-python/oslotest-1.10.0[${PYTHON_USEDEP}]
62 + )
63 + doc? (
64 + >=dev-python/oslo-sphinx-4.7.0[${PYTHON_USEDEP}]
65 + >=dev-python/sphinx-1.2.1[${PYTHON_USEDEP}]
66 + <dev-python/sphinx-1.4[${PYTHON_USEDEP}]
67 + >=dev-python/reno-1.8.0[${PYTHON_USEDEP}]
68 + )
69 +"
70 +RDEPEND="
71 + ${CDEPEND}
72 + >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
73 + >=dev-python/msgpack-0.4.0[${PYTHON_USEDEP}]
74 + >=dev-python/oslo-utils-3.18.0[${PYTHON_USEDEP}]
75 + >=dev-python/pytz-2013.6[${PYTHON_USEDEP}]
76 +"
77 +
78 +python_prepare_all() {
79 + use doc && esetup.py build_sphinx
80 + distutils-r1_python_prepare_all
81 +}
82 +
83 +# Note: Tests fail due to requiring installation.
84 +#
85 +# Installation appears to fail due ot the use of namespace packages but root
86 +# cause was never truly established.
87 +RESTRICT="test"
88 +
89 +python_test() {
90 + distutils_install_for_testing
91 +
92 + PYTHONPATH="${TEST_DIR}/lib:${PYTHONPATH}"
93 +
94 + rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPTYHON}"
95 +
96 + testr init || die "testr init failed under ${EPYTHON}"
97 + testr run || die "testr run failed under ${EPYTHON}"
98 +}
99 +
100 +python_install_all() {
101 + use doc && local HTML_DOCS=( doc/build/html/. )
102 +
103 + distutils-r1_python_install_all
104 +}