Gentoo Archives: gentoo-commits

From: Benda XU <heroxbd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/memory_profiler/
Date: Sun, 09 Feb 2020 12:46:29
Message-Id: 1581252227.a9ed6e5fe6c474c5166f5a238bd720ed49bae90a.heroxbd@gentoo
1 commit: a9ed6e5fe6c474c5166f5a238bd720ed49bae90a
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
3 AuthorDate: Thu Jan 16 13:33:46 2020 +0000
4 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 9 12:43:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9ed6e5f
7
8 dev-python/memory_profiler: Fix ebuild
9
10 Add examples flag
11 Add py3_8
12 Put setuptools in rdepend
13
14 Bug: https://github.com/gentoo/gentoo/pull/14344
15 Bug: https://bugs.gentoo.org/705872
16
17 Package-Manager: Portage-2.3.84, Repoman-2.3.20
18 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
19 Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>
20
21 dev-python/memory_profiler/Manifest | 1 +
22 .../memory_profiler/memory_profiler-0.57.ebuild | 55 ++++++++++++++++++++++
23 2 files changed, 56 insertions(+)
24
25 diff --git a/dev-python/memory_profiler/Manifest b/dev-python/memory_profiler/Manifest
26 index 68353143866..faca695e6ef 100644
27 --- a/dev-python/memory_profiler/Manifest
28 +++ b/dev-python/memory_profiler/Manifest
29 @@ -1,3 +1,4 @@
30 DIST memory_profiler-0.47.tar.gz 33725 BLAKE2B 66fc0e5c579febeea9dcd5132caa6fdbccdb5cb0a2c9083f5abf8aa03baaaafe1f77f72cdbe4d5384c6ce27fd4760511f9a947fda46eee1d81e7125c1dcd2970 SHA512 110e16ecad33068d31cf53b2f0b775d65230d51345f24a4d7d3cafafb706b10a0c7e2d98a799256b0366f1bafa9b69c060222595bb4eb9e1689301428a36fc3d
31 DIST memory_profiler-0.54.0.tar.gz 31376 BLAKE2B 4c89a046bdce36a139448dde45c8cf952aaa8fe8e2089bf9574a8fb2ed1abb89991e54f59742b0ea1ae5315378c0799ef140752549f9a8d13a91bf0ceb021984 SHA512 ec5735b7e41e706ea35ce9fe0dd3963c51e50e5bdf7f1871c51bbbb2a0ae75abcdba23abd3a14979c26ce19e7ce7d2cf6782aefc77e0c17cfe4da573a6e249ae
32 DIST memory_profiler-0.55.0.tar.gz 40951 BLAKE2B ed6eefa0a522eaddfd0ebf3b118a57b7bcf6c7455057d1a9e891e826ba2b32a671fd86357d073f45c36ae5db418987a55e90a908cbb4aba3b3f972ba4580f9f6 SHA512 9f280af163b124809d0276b2a473f66d9f11071f38afbabf7247d4e49f120c137f69dde2cc3fb27fcc88cfc6dc71355ba01efeb102098c401c7e953462ed4a1b
33 +DIST memory_profiler-0.57.tar.gz 84096 BLAKE2B d2c5fe810b9ac2f1e52fb8630056ee825d3d56799c15a377bff914be3a04e11c872e557847ef2a107421d082515eb59906f931ad1873ae7fec58fef16caabb4c SHA512 c6e2f755656dc820dfc2cf7a659dc319b3d1aa0df144ac6a08db35f4b38a90a9b994cf9c8320b8370f51c97e0d0bf2f9c4a3ab070b4934879f8e579b732e426a
34
35 diff --git a/dev-python/memory_profiler/memory_profiler-0.57.ebuild b/dev-python/memory_profiler/memory_profiler-0.57.ebuild
36 new file mode 100644
37 index 00000000000..9b0b4220a75
38 --- /dev/null
39 +++ b/dev-python/memory_profiler/memory_profiler-0.57.ebuild
40 @@ -0,0 +1,55 @@
41 +# Copyright 1999-2020 Gentoo Authors
42 +# Distributed under the terms of the GNU General Public License v2
43 +
44 +EAPI=7
45 +
46 +PYTHON_COMPAT=( python3_{6,7,8} )
47 +
48 +DISTUTILS_USE_SETUPTOOLS=rdepend
49 +
50 +inherit distutils-r1
51 +
52 +DESCRIPTION="A module for monitoring memory usage of a python program"
53 +HOMEPAGE="https://pypi.org/project/memory_profiler/ https://github.com/fabianp/memory_profiler"
54 +SRC_URI="https://github.com/pythonprofilers/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
55 +
56 +IUSE="examples"
57 +
58 +LICENSE="BSD"
59 +SLOT="0"
60 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
61 +
62 +# dev-lang/mercury: collision on 'mprof'
63 +# https://bugs.gentoo.org/571176
64 +RDEPEND="dev-python/psutil[${PYTHON_USEDEP}]
65 + !dev-lang/mercury"
66 +
67 +distutils_enable_tests pytest
68 +
69 +python_test() {
70 + ${EPYTHON} -m memory_profiler test/test_as.py || die
71 + ${EPYTHON} -m memory_profiler test/test_func.py || die
72 + ${EPYTHON} -m memory_profiler test/test_gen.py || die
73 + ${EPYTHON} -m memory_profiler test/test_loop.py || die
74 + ${EPYTHON} -m memory_profiler test/test_loop_decorated.py || die
75 + ${EPYTHON} -m memory_profiler test/test_mprofile.py || die
76 + ${EPYTHON} -m memory_profiler test/test_nested.py || die
77 + ${EPYTHON} -m memory_profiler test/test_precision_command_line.py || die
78 + ${EPYTHON} -m memory_profiler test/test_unicode.py || die
79 +
80 + ${EPYTHON} test/test_exception.py || die
81 + ${EPYTHON} test/test_exit_code.py || die
82 + ${EPYTHON} test/test_global.py || die
83 + ${EPYTHON} test/test_import.py || die
84 + ${EPYTHON} test/test_memory_usage.py || die
85 + ${EPYTHON} test/test_mprof.py || die
86 + ${EPYTHON} test/test_precision_import.py || die
87 + ${EPYTHON} test/test_stream_unicode.py || die
88 + ${EPYTHON} test/test_tracemalloc.py || die
89 +}
90 +
91 +python_install_all() {
92 + use examples && dodoc -r examples
93 +
94 + distutils-r1_python_install_all
95 +}