summaryrefslogtreecommitdiff
path: root/dev-python/line-profiler
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/line-profiler')
-rw-r--r--dev-python/line-profiler/Manifest1
-rw-r--r--dev-python/line-profiler/line-profiler-5.1.0.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/line-profiler/Manifest b/dev-python/line-profiler/Manifest
index 4b17af0d628d..ed56922381eb 100644
--- a/dev-python/line-profiler/Manifest
+++ b/dev-python/line-profiler/Manifest
@@ -1 +1,2 @@
DIST line_profiler-5.0.2.gh.tar.gz 222335 BLAKE2B 4b5d890de6bb2172550adae338a8cdb62ebbd6afb16bd0d53fed198bd1ba3fdbf7231e236910960af47838f9034fbcc7de109f869ba83edb763531b89f889171 SHA512 1283c37667e34014efd4660285de849ef2059889033f998c4a360db9740c355d740e81309b500ee0f642939f511a8d8d4c4b58e2c043b128294b0733d74a170d
+DIST line_profiler-5.1.0.gh.tar.gz 356660 BLAKE2B 3d72973679bab7b5a23fdd486aa3db65dfbfc93255ae46c59641191ce84a004f5dac24a469ff66473d9e0624727ccd02e88e921463e5164f15e06ed98e7d2e1e SHA512 24e981b292aa4eb931f96d36c6403bdaaca9748ff8203bf8decc2ee54c9282b6ee6ab536d89ca4b229cda33486b9fd8aad830bf084f639edd68f125bbb90ca51
diff --git a/dev-python/line-profiler/line-profiler-5.1.0.ebuild b/dev-python/line-profiler/line-profiler-5.1.0.ebuild
new file mode 100644
index 000000000000..6365a44014fe
--- /dev/null
+++ b/dev-python/line-profiler/line-profiler-5.1.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{13..14} )
+
+inherit distutils-r1
+
+MY_P=line_profiler-${PV}
+DESCRIPTION="Line-by-line profiler"
+HOMEPAGE="
+ https://github.com/pyutils/line_profiler/
+ https://pypi.org/project/line-profiler/
+"
+SRC_URI="
+ https://github.com/pyutils/line_profiler/archive/v${PV}.tar.gz
+ -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+# NB: while building the C extension is optional for some reason, it is
+# unconditionally required at runtime.
+
+RDEPEND="
+ dev-python/ipython[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ dev-python/cython[${PYTHON_USEDEP}]
+ test? (
+ dev-python/coverage[${PYTHON_USEDEP}]
+ dev-python/ubelt[${PYTHON_USEDEP}]
+ )
+"
+
+EPYTEST_PLUGINS=( xdoctest )
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+export LINE_PROFILER_BUILD_METHOD=cython
+
+EPYTEST_IGNORE=(
+ # Internet (isolated builds)
+ test_cython.py
+)
+
+python_test() {
+ cd tests || die
+ epytest
+}