Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/hunter/
Date: Thu, 17 Jun 2021 16:01:57
Message-Id: 1623945711.6f2e0ebce3da18f811ec356fec0c8423a110d57f.Alessandro-Barbieri@gentoo
1 commit: 6f2e0ebce3da18f811ec356fec0c8423a110d57f
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Thu Jun 17 15:41:27 2021 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Thu Jun 17 16:01:51 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6f2e0ebc
7
8 dev-python/hunter: add 3.3.5
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 dev-python/hunter/Manifest | 1 +
13 dev-python/hunter/hunter-3.3.5.ebuild | 63 +++++++++++++++++++++++++++++++++++
14 2 files changed, 64 insertions(+)
15
16 diff --git a/dev-python/hunter/Manifest b/dev-python/hunter/Manifest
17 index ec461da4b..41b967bb8 100644
18 --- a/dev-python/hunter/Manifest
19 +++ b/dev-python/hunter/Manifest
20 @@ -1 +1,2 @@
21 DIST hunter-3.3.4.tar.gz 535981 BLAKE2B c3d9f3a6cd77c830d3430a1bf55bfd89c4bf69402d6e17489116a13d483afd1e9fe7ba396a200385d27a5c76557f5856ec468a23735a526283d2db0d160cfcae SHA512 d51b55207118a26a48d12b97fc164c9b4a14e9d590bf3d85c0677ddf4354dbf800fec4757186a575e5062e297cfb86ee9185e6beff7ad45695e6dc5cba4ac324
22 +DIST hunter-3.3.5.tar.gz 536004 BLAKE2B 2851449ab6c9e3b71a546f5464eda272053060bdc6fb2d75f3e746c4d103b25c2ecfbfd0449521a98fe12851d62044bb0f3bc9d083e1496f861679eff827eafc SHA512 7c8700ae010bc58c4fefb1f6a343ee4bb375e55c2ddf3ab6a7d9f94102f1bafa50d3723985031a7633be2928a8b47a2bad2c3a7676df6d6a1dee2e38dbf6c02d
23
24 diff --git a/dev-python/hunter/hunter-3.3.5.ebuild b/dev-python/hunter/hunter-3.3.5.ebuild
25 new file mode 100644
26 index 000000000..fea16decc
27 --- /dev/null
28 +++ b/dev-python/hunter/hunter-3.3.5.ebuild
29 @@ -0,0 +1,63 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{8..9} )
36 +DISTUTILS_USE_SETUPTOOLS=rdepend
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Hunter is a flexible code tracing toolkit"
41 +HOMEPAGE="
42 + https://github.com/ionelmc/python-hunter
43 + https://pypi.org/project/hunter
44 +"
45 +SRC_URI="https://github.com/ionelmc/python-${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
46 +S="${WORKDIR}/python-${P}"
47 +LICENSE="BSD-2"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +
51 +RDEPEND="dev-python/colorama[${PYTHON_USEDEP}]"
52 +DEPEND="
53 + ${RDEPEND}
54 + test? (
55 + dev-python/aspectlib[${PYTHON_USEDEP}]
56 + dev-python/ipdb[${PYTHON_USEDEP}]
57 + dev-python/manhole[${PYTHON_USEDEP}]
58 + dev-python/process-tests[${PYTHON_USEDEP}]
59 + dev-python/pytest-benchmark[${PYTHON_USEDEP}]
60 + dev-python/six[${PYTHON_USEDEP}]
61 + )
62 +"
63 +BDEPEND="
64 + dev-python/cython[${PYTHON_USEDEP}]
65 + >=dev-python/setuptools_scm-3.3.1[${PYTHON_USEDEP}]
66 +"
67 +
68 +PATCHES=( "${FILESDIR}/remove-setuptools_scm-upper-constraint.patch" )
69 +
70 +distutils_enable_tests pytest
71 +distutils_enable_sphinx docs ">=dev-python/sphinx-py3doc-enhanced-theme-2.3.2"
72 +
73 +python_compile() {
74 + distutils-r1_python_compile
75 +
76 + if use test; then
77 + "${EPYTHON}" tests/setup.py build_ext --force --inplace || die
78 + fi
79 +}
80 +
81 +python_test() {
82 + local -x PYTHONPATH="${S}/tests:${BUILD_DIR}/lib:${PYTHONPATH}"
83 + epytest -vv \
84 + --deselect tests/test_integration.py::test_pid_prefix[True-CodePrinter] \
85 + --deselect tests/test_integration.py::test_pid_prefix[False-CodePrinter] \
86 + --deselect tests/test_integration.py::test_pid_prefix[True-CallPrinter] \
87 + --deselect tests/test_integration.py::test_pid_prefix[False-CallPrinter] \
88 + --deselect tests/test_remote.py::test_manhole \
89 + --deselect tests/test_remote.py::test_manhole_clean_exit \
90 + --deselect tests/test_tracer.py::test_perf_stdlib[cython] \
91 + || die
92 +}