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: Mon, 14 Jun 2021 02:27:40
Message-Id: 1623637651.714f98c5d4436417f5cf23cc5874080a8b3f0efd.Alessandro-Barbieri@gentoo
1 commit: 714f98c5d4436417f5cf23cc5874080a8b3f0efd
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Mon Jun 14 02:19:00 2021 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Mon Jun 14 02:27:31 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=714f98c5
7
8 dev-python/hunter: add 3.3.4
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.4.ebuild | 63 +++++++++++++++++++++++++++++++++++
14 2 files changed, 64 insertions(+)
15
16 diff --git a/dev-python/hunter/Manifest b/dev-python/hunter/Manifest
17 index 35e192ec6..97a75678d 100644
18 --- a/dev-python/hunter/Manifest
19 +++ b/dev-python/hunter/Manifest
20 @@ -1 +1,2 @@
21 DIST hunter-3.3.3.tar.gz 535662 BLAKE2B f2aa247eec34de982ab56430a0517c483609edc72d3d366a725dabf28ff6621a49411dd41a7ae16846960bb22ec4a7dc1cdb2b528a620e9eac9dc26dabec6213 SHA512 661b0f33653a6175f2172e45386c822552464a06129e2f5c8d4b88f6142a4aecc69bd657dc98ef7ffbb3d93cde537aa3a2e5f68bbced6f03b6514d39cfb99df4
22 +DIST hunter-3.3.4.tar.gz 535981 BLAKE2B c3d9f3a6cd77c830d3430a1bf55bfd89c4bf69402d6e17489116a13d483afd1e9fe7ba396a200385d27a5c76557f5856ec468a23735a526283d2db0d160cfcae SHA512 d51b55207118a26a48d12b97fc164c9b4a14e9d590bf3d85c0677ddf4354dbf800fec4757186a575e5062e297cfb86ee9185e6beff7ad45695e6dc5cba4ac324
23
24 diff --git a/dev-python/hunter/hunter-3.3.4.ebuild b/dev-python/hunter/hunter-3.3.4.ebuild
25 new file mode 100644
26 index 000000000..fea16decc
27 --- /dev/null
28 +++ b/dev-python/hunter/hunter-3.3.4.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 +}