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/line_profiler/
Date: Thu, 30 Dec 2021 08:57:47
Message-Id: 1640854652.bfe5d7cc158d2e2fd8831996705b23347fab2630.mgorny@gentoo
1 commit: bfe5d7cc158d2e2fd8831996705b23347fab2630
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 30 07:56:26 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 30 08:57:32 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfe5d7cc
7
8 dev-python/line_profiler: Bump to 3.4.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/line_profiler/Manifest | 1 +
13 .../line_profiler/line_profiler-3.4.0.ebuild | 49 ++++++++++++++++++++++
14 2 files changed, 50 insertions(+)
15
16 diff --git a/dev-python/line_profiler/Manifest b/dev-python/line_profiler/Manifest
17 index 1f108077af1e..44f1472cfacd 100644
18 --- a/dev-python/line_profiler/Manifest
19 +++ b/dev-python/line_profiler/Manifest
20 @@ -1 +1,2 @@
21 DIST line_profiler-3.3.1.gh.tar.gz 56700 BLAKE2B 030c0fc742a6773ebb55a54a3c21d3d5e5d6d5d258a2c3cd2071ff93917411b65e100bfc6549d9c60d9a7c361c53b291d8b81538acaf5b83665c04129d25bc02 SHA512 8a3704a6df2abe71283cb2da23b738932c6f4b42aedcdefda0d318fd4b894d56831a855c4be4430657308530a04d1e96b0e15a60edca06621bdd5370c0bf9911
22 +DIST line_profiler-3.4.0.gh.tar.gz 49076 BLAKE2B 1fa2d7462913b21b5c3d69be64492fd5002d10c6c454cb3129860e4156cf04fbbd839b140f229b586ff9f0b195baae435bc461c4bab1405c38da49bf348827c3 SHA512 79a6e71ec083aacbc95fab5e044a2a38119bced505e5b9720288e32103773dc64a8bbbf6c2c7913b7b5057420cb31c3943cc1dce2d7d029df82b6b59e451c357
23
24 diff --git a/dev-python/line_profiler/line_profiler-3.4.0.ebuild b/dev-python/line_profiler/line_profiler-3.4.0.ebuild
25 new file mode 100644
26 index 000000000000..ec2f97295311
27 --- /dev/null
28 +++ b/dev-python/line_profiler/line_profiler-3.4.0.ebuild
29 @@ -0,0 +1,49 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8..10} )
36 +# force it to match scikit-build
37 +CMAKE_MAKEFILE_GENERATOR=ninja
38 +
39 +inherit cmake distutils-r1
40 +
41 +DESCRIPTION="Line-by-line profiler"
42 +HOMEPAGE="https://github.com/pyutils/line_profiler/"
43 +SRC_URI="
44 + https://github.com/pyutils/line_profiler/archive/v${PV}.tar.gz
45 + -> ${P}.gh.tar.gz"
46 +
47 +SLOT="0"
48 +LICENSE="BSD"
49 +KEYWORDS="~amd64 ~x86"
50 +
51 +RDEPEND="dev-python/ipython[${PYTHON_USEDEP}]"
52 +# technically, the package claims to support non-scikit-build build
53 +# but it's clearly unmaintained and broken at the moment
54 +BDEPEND="
55 + dev-python/cython[${PYTHON_USEDEP}]
56 + dev-python/scikit-build[${PYTHON_USEDEP}]
57 + test? (
58 + dev-python/coverage[${PYTHON_USEDEP}]
59 + dev-python/ubelt[${PYTHON_USEDEP}]
60 + )"
61 +
62 +distutils_enable_tests --install pytest
63 +
64 +src_prepare() {
65 + cmake_src_prepare
66 + distutils-r1_src_prepare
67 +}
68 +
69 +python_test() {
70 + distutils_install_for_testing
71 + cd tests || die
72 + epytest
73 +}
74 +
75 +python_install() {
76 + distutils-r1_python_install
77 + python_optimize
78 +}