Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pympler/
Date: Wed, 03 May 2017 00:21:45
Message-Id: 1493770896.894c243f616c899c57f93483a03b7bd90ed60daf.zmedico@gentoo
1 commit: 894c243f616c899c57f93483a03b7bd90ed60daf
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 3 00:17:16 2017 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Wed May 3 00:21:36 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=894c243f
7
8 dev-python/pympler: version bump to 0.4.3
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 dev-python/pympler/Manifest | 1 +
13 dev-python/pympler/pympler-0.4.3.ebuild | 53 +++++++++++++++++++++++++++++++++
14 2 files changed, 54 insertions(+)
15
16 diff --git a/dev-python/pympler/Manifest b/dev-python/pympler/Manifest
17 index cd57e12d3b0..e669fc74562 100644
18 --- a/dev-python/pympler/Manifest
19 +++ b/dev-python/pympler/Manifest
20 @@ -1,2 +1,3 @@
21 DIST Pympler-0.4.1.tar.gz 395535 SHA256 6a8bfd2972c4ec34ac8750358515950be4a4ca13dfa6a05a9a22419786745f90 SHA512 3f7e2d88ca431ae73cf49d5140c10de4eab10c1627cdacc12e216c89410add16cb5e1faedc484ea765e4b866b905a5379bb21e7d41b9b8d622c4ac7b1b16a8a3 WHIRLPOOL 4b35b554cabda8b9ab633409f1c91728956cad31c1a41d3b66a8d2cbf2e1283edd32017181d5f9c8bd66a1bac7ba398c292dd60fd9cdc268fec86222b4a790c8
22 DIST Pympler-0.4.2.tar.gz 395765 SHA256 3c3f9d8eb3dddf4f29c433433ea77c9c3f2f0dcc06575c0c2a9d81b2602893b2 SHA512 ae6e7718ecf8e7bc46ce968dd3b57543c4a3e882a07d7cb68ee38e60debc157ce2410c66b23c14179c47fef1b89647886289d9e4fdfc5f9e9ecd87a052f204aa WHIRLPOOL cc1e0ddb1509d92f3cc44f8e09c84a4fdc59fb273d0d5c2e10c421c97d0b83468dd7ffbf8d9817a480683afefb0f7dcf79993aa4ec7a7fb6b1789fc655ecb9c6
23 +DIST pympler-0.4.3.tar.gz 259409 SHA256 80dfbda9c9dc36d8cc6696b9f1066d4c6bdb87371f58fe7940fad8918b8c288f SHA512 de4a36e8e5b639c1b78460677d821a5ad829c01a568496a5df4682ab32fea14e24c47260aed96c68722285e3fdb4b202348a7cbfcb95531ca2954bd8d5cebb68 WHIRLPOOL 21324bd5b30be363e4295e6191aa2bc884b97b4224623c019fe888f394bc5bca59391f69503fbb0c799f3e93b68f6920728843197a0fd8680ac975ec4b6234e4
24
25 diff --git a/dev-python/pympler/pympler-0.4.3.ebuild b/dev-python/pympler/pympler-0.4.3.ebuild
26 new file mode 100644
27 index 00000000000..bac8394e16c
28 --- /dev/null
29 +++ b/dev-python/pympler/pympler-0.4.3.ebuild
30 @@ -0,0 +1,53 @@
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=( python2_7 python3_{4,5,6} )
37 +
38 +inherit distutils-r1
39 +
40 +MY_PN="Pympler"
41 +MY_P="${MY_PN}-${PV}"
42 +
43 +DESCRIPTION="Memory profiling for Python applications"
44 +HOMEPAGE="https://code.google.com/p/pympler/ https://pypi.python.org/pypi/Pympler https://github.com/pympler/pympler"
45 +SRC_URI="https://github.com/pympler/pympler/archive/${PV}.tar.gz -> ${P}.tar.gz"
46 +# The PyPi tarball is missing the documentation
47 +#SRC_URI="mirror://pypi/P/${MY_PN}/${MY_P}.tar.gz"
48 +
49 +SLOT="0"
50 +LICENSE="Apache-2.0"
51 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
52 +IUSE="doc test"
53 +
54 +RDEPEND="dev-python/bottle[${PYTHON_USEDEP}]"
55 +DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
56 + test? ( ${RDEPEND} )"
57 +
58 +python_prepare_all() {
59 + rm pympler/util/bottle.py || die
60 + sed \
61 + -e '/import bottle/s:^.*$:import bottle:g' \
62 + -i pympler/web.py || die
63 + # test_flatsize and AsizeofTest always fail
64 + sed '14,106d' -i test/asizeof/test_asizeof.py || die
65 + distutils-r1_python_prepare_all
66 +}
67 +
68 +python_compile_all() {
69 + if use doc; then
70 + python_setup
71 + sphinx-build -b html doc/{source,html} || die
72 + fi
73 +}
74 +
75 +python_test() {
76 + # https://github.com/pympler/pympler/issues/22
77 + esetup.py try
78 +}
79 +
80 +python_install_all() {
81 + use doc && local HTML_DOCS=( doc/html/. )
82 + distutils-r1_python_install_all
83 +}