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: Fri, 16 Feb 2018 06:08:27
Message-Id: 1518761038.b933f4c7250c8c757156bcf4369c028cda5d50f3.prometheanfire@gentoo
1 commit: b933f4c7250c8c757156bcf4369c028cda5d50f3
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 16 06:03:58 2018 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 16 06:03:58 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b933f4c7
7
8 dev-python/oslo-serialization: 2.24.0 bup
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 dev-python/oslo-serialization/Manifest | 1 +
13 .../oslo-serialization-2.24.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 70dfe601845..388510e9041 100644
18 --- a/dev-python/oslo-serialization/Manifest
19 +++ b/dev-python/oslo-serialization/Manifest
20 @@ -1 +1,2 @@
21 DIST oslo-serialization-2.20.2.tar.gz 29486 BLAKE2B 73fda86ced11c7c6dfb1a15c761645583cee463521285dc194cc1aebd5ef100832190bb0b07f825472286dab8ffc4dbed5cf6183fd86128bd74d51c5d15996a8 SHA512 1bcf50a090a0ec74d1aca7de6cc83f7451778eae7335427d11f732120ec99163441ee0bde13df6e660574c7ac5fcafe746cdbcb421e57f02d782f2405d5e33c7
22 +DIST oslo-serialization-2.24.0.tar.gz 28948 BLAKE2B 8e57d14b21deefd8058f4dd677493072b0bfdc08bfb18faae2f6a09c4ab4e29ce544e479427a6c6557e0ca78fd7b525aa6a8ab3443a01c3d856ee3556f5f3f5e SHA512 8c2103409d9ec2ebfd45eefb56ed42b1ca52c0f8eaf5deff1020a67f813c8524d1bffd81d97a1ad28c80b4a5afeaebca829c4580e635f514900fd0835782990c
23
24 diff --git a/dev-python/oslo-serialization/oslo-serialization-2.24.0.ebuild b/dev-python/oslo-serialization/oslo-serialization-2.24.0.ebuild
25 new file mode 100644
26 index 00000000000..ef5eba50688
27 --- /dev/null
28 +++ b/dev-python/oslo-serialization/oslo-serialization-2.24.0.ebuild
29 @@ -0,0 +1,74 @@
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 Serialization 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 + virtual/python-ipaddress[${PYTHON_USEDEP}]
57 + >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
58 + >=dev-python/netaddr-0.7.18[${PYTHON_USEDEP}]
59 + >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}]
60 + >=dev-python/oslotest-1.10.0[${PYTHON_USEDEP}]
61 + >=dev-python/bandit-1.1.0[${PYTHON_USEDEP}]
62 + )
63 + doc? (
64 + >=dev-python/sphinx-1.6.2[${PYTHON_USEDEP}]
65 + >=dev-python/openstackdocstheme-1.17.0[${PYTHON_USEDEP}]
66 + >=dev-python/reno-2.5.0[${PYTHON_USEDEP}]
67 + )
68 +"
69 +RDEPEND="
70 + ${CDEPEND}
71 + >=dev-python/six-1.10.0[${PYTHON_USEDEP}]
72 + >=dev-python/msgpack-0.4.0[${PYTHON_USEDEP}]
73 + >=dev-python/oslo-utils-3.20.0[${PYTHON_USEDEP}]
74 + >=dev-python/pytz-2013.6[${PYTHON_USEDEP}]
75 +"
76 +
77 +python_prepare_all() {
78 + use doc && esetup.py build_sphinx
79 + distutils-r1_python_prepare_all
80 +}
81 +
82 +# Note: Tests fail due to requiring installation.
83 +#
84 +# Installation appears to fail due ot the use of namespace packages but root
85 +# cause was never truly established.
86 +RESTRICT="test"
87 +
88 +python_test() {
89 + distutils_install_for_testing
90 +
91 + PYTHONPATH="${TEST_DIR}/lib:${PYTHONPATH}"
92 +
93 + rm -rf .testrepository || die "couldn't remove '.testrepository' under ${EPTYHON}"
94 +
95 + testr init || die "testr init failed under ${EPYTHON}"
96 + testr run || die "testr run failed under ${EPYTHON}"
97 +}
98 +
99 +python_install_all() {
100 + use doc && local HTML_DOCS=( doc/build/html/. )
101 +
102 + distutils-r1_python_install_all
103 +}