diff options
author | 2023-08-22 20:27:18 +0200 | |
---|---|---|
committer | 2023-08-22 20:28:52 +0200 | |
commit | 23a1868c7780d41bb58f0b088f871a6afc876bf9 (patch) | |
tree | a941cef47e3c1938a0e63d552a92463cbc9f5794 /dev-python/memory-profiler | |
parent | dev-python/memory_profiler: Prepare for rename (diff) | |
download | gentoo-23a1868c7780d41bb58f0b088f871a6afc876bf9.tar.gz gentoo-23a1868c7780d41bb58f0b088f871a6afc876bf9.tar.bz2 gentoo-23a1868c7780d41bb58f0b088f871a6afc876bf9.zip |
Rename dev-python/{memory_profiler → memory-profiler}
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/memory-profiler')
-rw-r--r-- | dev-python/memory-profiler/Manifest | 1 | ||||
-rw-r--r-- | dev-python/memory-profiler/memory-profiler-0.61.ebuild | 63 | ||||
-rw-r--r-- | dev-python/memory-profiler/metadata.xml | 17 |
3 files changed, 81 insertions, 0 deletions
diff --git a/dev-python/memory-profiler/Manifest b/dev-python/memory-profiler/Manifest new file mode 100644 index 000000000000..693a1a0e2468 --- /dev/null +++ b/dev-python/memory-profiler/Manifest @@ -0,0 +1 @@ +DIST memory_profiler-0.61.gh.tar.gz 144680 BLAKE2B 418ae6e7433dd58b00c8706209a7172c31ccf57d74255aa670b271bc9d76b339bd582b48886bed7b53062abd8eb421678c911b3495de4d541b949f340aad7091 SHA512 02c70a049107ad4df635e20e22eaaa91fd4e4fd29690b0a7c314e08ed6e076bbb81f85dd97924ed35f7f0133cfd3c7e55b35400449489733beb172debe592c4e diff --git a/dev-python/memory-profiler/memory-profiler-0.61.ebuild b/dev-python/memory-profiler/memory-profiler-0.61.ebuild new file mode 100644 index 000000000000..fd059fb2d78e --- /dev/null +++ b/dev-python/memory-profiler/memory-profiler-0.61.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..11} ) + +inherit distutils-r1 + +MY_P=memory_profiler-${PV} +DESCRIPTION="A module for monitoring memory usage of a python program" +HOMEPAGE=" + https://github.com/pythonprofilers/memory_profiler/ + https://pypi.org/project/memory-profiler/ +" +SRC_URI=" + https://github.com/pythonprofilers/memory_profiler/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~arm64 ~riscv x86 ~amd64-linux ~x86-linux" +IUSE="examples" + +# dev-lang/mercury: collision on 'mprof' +# https://bugs.gentoo.org/571176 +RDEPEND=" + dev-python/psutil[${PYTHON_USEDEP}] + !dev-lang/mercury +" + +distutils_enable_tests pytest + +python_test() { + "${EPYTHON}" -m memory_profiler test/test_as.py || die + "${EPYTHON}" -m memory_profiler test/test_func.py || die + "${EPYTHON}" -m memory_profiler test/test_gen.py || die + "${EPYTHON}" -m memory_profiler test/test_loop.py || die + "${EPYTHON}" -m memory_profiler test/test_loop_decorated.py || die + "${EPYTHON}" -m memory_profiler test/test_mprofile.py || die + "${EPYTHON}" -m memory_profiler test/test_nested.py || die + "${EPYTHON}" -m memory_profiler test/test_precision_command_line.py || die + "${EPYTHON}" -m memory_profiler test/test_unicode.py || die + + "${EPYTHON}" test/test_exception.py || die + "${EPYTHON}" test/test_exit_code.py || die + "${EPYTHON}" test/test_global.py || die + "${EPYTHON}" test/test_import.py || die + "${EPYTHON}" test/test_memory_usage.py || die + "${EPYTHON}" test/test_mprof.py || die + "${EPYTHON}" test/test_precision_import.py || die + "${EPYTHON}" test/test_stream_unicode.py || die + "${EPYTHON}" test/test_tracemalloc.py || die +} + +python_install_all() { + use examples && dodoc -r examples + + distutils-r1_python_install_all +} diff --git a/dev-python/memory-profiler/metadata.xml b/dev-python/memory-profiler/metadata.xml new file mode 100644 index 000000000000..765b1c287e36 --- /dev/null +++ b/dev-python/memory-profiler/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <stabilize-allarches/> + <upstream> + <remote-id type="pypi">memory-profiler</remote-id> + <remote-id type="github">pythonprofilers/memory_profiler</remote-id> + <maintainer status="unknown"> + <email>f@bianp.net</email> + <name>Fabian Pedregosa</name> + </maintainer> + </upstream> +</pkgmetadata> |