From 3b08f674e3f771b49370edb144dab0958c8cf721 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 31 Aug 2021 08:59:54 +0100 Subject: gentoo resync : 31.08.2021 --- .../memory_profiler/memory_profiler-0.58.0.ebuild | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 dev-python/memory_profiler/memory_profiler-0.58.0.ebuild (limited to 'dev-python/memory_profiler/memory_profiler-0.58.0.ebuild') diff --git a/dev-python/memory_profiler/memory_profiler-0.58.0.ebuild b/dev-python/memory_profiler/memory_profiler-0.58.0.ebuild new file mode 100644 index 000000000000..6103471407d7 --- /dev/null +++ b/dev-python/memory_profiler/memory_profiler-0.58.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 + +DESCRIPTION="A module for monitoring memory usage of a python program" +HOMEPAGE="https://pypi.org/project/memory_profiler/ https://github.com/pythonprofilers/memory_profiler" +SRC_URI=" + https://github.com/pythonprofilers/memory_profiler/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +IUSE="examples" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" + +# 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 +} -- cgit v1.2.3