Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/memory_profiler/
Date: Tue, 07 Dec 2021 22:24:01
Message-Id: 1638915833.3e4b3aa0f6382547a1b8447cf64153d2d268cb31.mgorny@gentoo
1 commit: 3e4b3aa0f6382547a1b8447cf64153d2d268cb31
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 7 22:19:23 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 7 22:23:53 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e4b3aa0
7
8 dev-python/memory_profiler: Bump to 0.59
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/memory_profiler/Manifest | 1 +
13 .../memory_profiler/memory_profiler-0.59.ebuild | 55 ++++++++++++++++++++++
14 dev-python/memory_profiler/metadata.xml | 2 +-
15 3 files changed, 57 insertions(+), 1 deletion(-)
16
17 diff --git a/dev-python/memory_profiler/Manifest b/dev-python/memory_profiler/Manifest
18 index eb26320def57..c6271af5f80f 100644
19 --- a/dev-python/memory_profiler/Manifest
20 +++ b/dev-python/memory_profiler/Manifest
21 @@ -1 +1,2 @@
22 DIST memory_profiler-0.58.0.gh.tar.gz 140692 BLAKE2B 2f3917d833dfcc722b61871c7e704e869527a389b10a81b473989b8455630f5defa5f5b21a172708070b89468c7dd66682cd3b9c0bf435e9be49651b69b50137 SHA512 5c02933acffc05f42d2ae98a069d36563e1d26515d439d94ad3903960dd06cd378faae3000b26c022770e71e83db6f770ceaf63cabb92f4159bda0ff9cc4e849
23 +DIST memory_profiler-0.59.gh.tar.gz 142586 BLAKE2B b9c8cffbd03f980937d30626facf431e6effd9a86a21fbe629f4238a2f78f2d65242637105ad3a07b4158a6335a541701bba657941bb23c9da0f49a1113402ee SHA512 f70ad8f871bd5068e2817049231abee7e535cb352f0444dcb0d9d072b9f4dda944e85ec7854855307a9748257da80f53dd50fe17fefbd73045dce1306f51f88d
24
25 diff --git a/dev-python/memory_profiler/memory_profiler-0.59.ebuild b/dev-python/memory_profiler/memory_profiler-0.59.ebuild
26 new file mode 100644
27 index 000000000000..afc8e46ebfb4
28 --- /dev/null
29 +++ b/dev-python/memory_profiler/memory_profiler-0.59.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/v${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 +}
86
87 diff --git a/dev-python/memory_profiler/metadata.xml b/dev-python/memory_profiler/metadata.xml
88 index 32bbc7982746..765b1c287e36 100644
89 --- a/dev-python/memory_profiler/metadata.xml
90 +++ b/dev-python/memory_profiler/metadata.xml
91 @@ -7,7 +7,7 @@
92 </maintainer>
93 <stabilize-allarches/>
94 <upstream>
95 - <remote-id type="pypi">memory_profiler</remote-id>
96 + <remote-id type="pypi">memory-profiler</remote-id>
97 <remote-id type="github">pythonprofilers/memory_profiler</remote-id>
98 <maintainer status="unknown">
99 <email>f@×××××.net</email>