1 |
commit: fb2b704bb4bea107d884103ebf678f2d4433546f |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 29 19:27:06 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 29 19:29:10 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb2b704b |
7 |
|
8 |
dev-python/memory_profiler: add 0.58.0, update HOMEPAGE |
9 |
|
10 |
Closes: https://bugs.gentoo.org/810826 |
11 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
12 |
|
13 |
dev-python/memory_profiler/Manifest | 1 + |
14 |
.../memory_profiler/memory_profiler-0.58.0.ebuild | 55 ++++++++++++++++++++++ |
15 |
2 files changed, 56 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/memory_profiler/Manifest b/dev-python/memory_profiler/Manifest |
18 |
index f3d7f6dc537..5eabe415abc 100644 |
19 |
--- a/dev-python/memory_profiler/Manifest |
20 |
+++ b/dev-python/memory_profiler/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST memory_profiler-0.57.tar.gz 84096 BLAKE2B d2c5fe810b9ac2f1e52fb8630056ee825d3d56799c15a377bff914be3a04e11c872e557847ef2a107421d082515eb59906f931ad1873ae7fec58fef16caabb4c SHA512 c6e2f755656dc820dfc2cf7a659dc319b3d1aa0df144ac6a08db35f4b38a90a9b994cf9c8320b8370f51c97e0d0bf2f9c4a3ab070b4934879f8e579b732e426a |
23 |
+DIST memory_profiler-0.58.0.gh.tar.gz 140692 BLAKE2B 2f3917d833dfcc722b61871c7e704e869527a389b10a81b473989b8455630f5defa5f5b21a172708070b89468c7dd66682cd3b9c0bf435e9be49651b69b50137 SHA512 5c02933acffc05f42d2ae98a069d36563e1d26515d439d94ad3903960dd06cd378faae3000b26c022770e71e83db6f770ceaf63cabb92f4159bda0ff9cc4e849 |
24 |
|
25 |
diff --git a/dev-python/memory_profiler/memory_profiler-0.58.0.ebuild b/dev-python/memory_profiler/memory_profiler-0.58.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..6103471407d |
28 |
--- /dev/null |
29 |
+++ b/dev-python/memory_profiler/memory_profiler-0.58.0.ebuild |
30 |
@@ -0,0 +1,55 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{8..10} ) |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+DESCRIPTION="A module for monitoring memory usage of a python program" |
40 |
+HOMEPAGE="https://pypi.org/project/memory_profiler/ https://github.com/pythonprofilers/memory_profiler" |
41 |
+SRC_URI=" |
42 |
+ https://github.com/pythonprofilers/memory_profiler/archive/${PV}.tar.gz |
43 |
+ -> ${P}.gh.tar.gz |
44 |
+" |
45 |
+ |
46 |
+IUSE="examples" |
47 |
+ |
48 |
+LICENSE="BSD" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" |
51 |
+ |
52 |
+# dev-lang/mercury: collision on 'mprof' |
53 |
+# https://bugs.gentoo.org/571176 |
54 |
+RDEPEND="dev-python/psutil[${PYTHON_USEDEP}] |
55 |
+ !dev-lang/mercury" |
56 |
+ |
57 |
+distutils_enable_tests pytest |
58 |
+ |
59 |
+python_test() { |
60 |
+ ${EPYTHON} -m memory_profiler test/test_as.py || die |
61 |
+ ${EPYTHON} -m memory_profiler test/test_func.py || die |
62 |
+ ${EPYTHON} -m memory_profiler test/test_gen.py || die |
63 |
+ ${EPYTHON} -m memory_profiler test/test_loop.py || die |
64 |
+ ${EPYTHON} -m memory_profiler test/test_loop_decorated.py || die |
65 |
+ ${EPYTHON} -m memory_profiler test/test_mprofile.py || die |
66 |
+ ${EPYTHON} -m memory_profiler test/test_nested.py || die |
67 |
+ ${EPYTHON} -m memory_profiler test/test_precision_command_line.py || die |
68 |
+ ${EPYTHON} -m memory_profiler test/test_unicode.py || die |
69 |
+ |
70 |
+ ${EPYTHON} test/test_exception.py || die |
71 |
+ ${EPYTHON} test/test_exit_code.py || die |
72 |
+ ${EPYTHON} test/test_global.py || die |
73 |
+ ${EPYTHON} test/test_import.py || die |
74 |
+ ${EPYTHON} test/test_memory_usage.py || die |
75 |
+ ${EPYTHON} test/test_mprof.py || die |
76 |
+ ${EPYTHON} test/test_precision_import.py || die |
77 |
+ ${EPYTHON} test/test_stream_unicode.py || die |
78 |
+ ${EPYTHON} test/test_tracemalloc.py || die |
79 |
+} |
80 |
+ |
81 |
+python_install_all() { |
82 |
+ use examples && dodoc -r examples |
83 |
+ |
84 |
+ distutils-r1_python_install_all |
85 |
+} |