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/mox3/
Date: Fri, 16 Feb 2018 06:08:21
Message-Id: 1518755417.aff904d8c848f025b859d5b5a70b6c03d2853edc.prometheanfire@gentoo
1 commit: aff904d8c848f025b859d5b5a70b6c03d2853edc
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 16 04:30:17 2018 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 16 04:30:17 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aff904d8
7
8 dev-python/mox3: 0.24.0 bup
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 dev-python/mox3/Manifest | 1 +
13 dev-python/mox3/mox3-0.24.0.ebuild | 58 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 59 insertions(+)
15
16 diff --git a/dev-python/mox3/Manifest b/dev-python/mox3/Manifest
17 index 6b162edae2d..dbd6b0459d7 100644
18 --- a/dev-python/mox3/Manifest
19 +++ b/dev-python/mox3/Manifest
20 @@ -1,2 +1,3 @@
21 DIST mox3-0.10.0.tar.gz 42424 BLAKE2B 124bb4525ed6d24ebf75037c1f049fc851d64bdf8eed29c26fcdabcfe5f6211aec7f16f5038b397978383bd11a81588b44aa790608bfdf5b8596daccf3230542 SHA512 1f56e17ae150339cb2f33dca065c246cf0ff2f633f182336a576e9ab0bd4512ec8f42a4cb128f38ede33fe7e796552768465cfc626abe4f734b7a06b4625710a
22 DIST mox3-0.12.0.tar.gz 42377 BLAKE2B d6a841c8b28d47f21ae8e6f65abb7e2079762d45ccf670decf5815c5a2638af615804e711534ddb0ebbafdae6609f30e50ea20f224a7ccc5a02148f1ab0d23b6 SHA512 73e0215bf127589f791721a0cb9b8e3dcc379a23199339e370d641850a0a14c264eb9db94fbb37c99f9925ee3ebd302de14ec12fe1c8809dd3ca9c10cfd75468
23 +DIST mox3-0.24.0.tar.gz 44846 BLAKE2B dd1a27b20fc821de79f1e1f209872c3fb66f39b2330d1dda04c5b17045e337c84920e4538d7971f025d1377f9e91abd2fca8167508c5614fee06d9fca92aaa75 SHA512 6c081cf2b1e529f3213f7f48d22ed5d2980420b2de8f49607b624d5861f8b784f2f36d8a32fae3e81fe8186c1a9c36e6c4ec7d9de172c41c0530523590ef97b6
24
25 diff --git a/dev-python/mox3/mox3-0.24.0.ebuild b/dev-python/mox3/mox3-0.24.0.ebuild
26 new file mode 100644
27 index 00000000000..58ae32874f3
28 --- /dev/null
29 +++ b/dev-python/mox3/mox3-0.24.0.ebuild
30 @@ -0,0 +1,58 @@
31 +# Copyright 1999-2018 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=5
35 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
36 +
37 +inherit distutils-r1
38 +
39 +DESCRIPTION="Mock object framework for Python"
40 +HOMEPAGE="http://www.openstack.org/"
41 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
42 +
43 +LICENSE="Apache-2.0"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm64 ~x86"
46 +IUSE="doc test"
47 +
48 +CDEPEND=">=dev-python/pbr-1.8[${PYTHON_USEDEP}]"
49 +CRDEPEND=">=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}]"
50 +DEPEND="
51 + dev-python/setuptools[${PYTHON_USEDEP}]
52 + ${CDEPEND}
53 + test? (
54 + ${CRDEPEND}
55 + >=dev-python/six-1.10.0[${PYTHON_USEDEP}]
56 + >=dev-python/subunit-1.0.0[${PYTHON_USEDEP}]
57 + >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
58 + >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
59 + )
60 + doc? (
61 + >=dev-python/oslo-sphinx-2.5.0[${PYTHON_USEDEP}]
62 + >=dev-python/sphinx-1.6.2[${PYTHON_USEDEP}]
63 + >=dev-python/openstackdocstheme-1.17.0[${PYTHON_USEDEP}]
64 + )
65 +"
66 +RDEPEND="
67 + ${CDEPEND}
68 + ${CRDEPEND}
69 +"
70 +
71 +PATCHES=( "${FILESDIR}"/${P}-RegexTest-python3.6.patch )
72 +
73 +python_compile_all() {
74 + use doc && esetup.py build_sphinx
75 +}
76 +
77 +python_test() {
78 + rm -rf .testrepository || die "could not remove '.testrepository' under ${EPYTHON}"
79 +
80 + testr init || die "testr init failed under ${EPYTHON}"
81 + testr run || die "testr run failed under ${EPYTHON}"
82 +}
83 +
84 +python_install_all() {
85 + use doc && local HTML_DOCS=( doc/build/html/. )
86 +
87 + distutils-r1_python_install_all
88 +}