Gentoo Archives: gentoo-commits

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/hunter/
Date: Mon, 03 May 2021 23:33:06
Message-Id: 1620084445.143550df19c36e5906c8661a57cb0089e7b146af.cybertailor@gentoo
1 commit: 143550df19c36e5906c8661a57cb0089e7b146af
2 Author: Anna Vyalkova <cyber <AT> sysrq <DOT> in>
3 AuthorDate: Mon May 3 21:54:39 2021 +0000
4 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
5 CommitDate: Mon May 3 23:27:25 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=143550df
7
8 dev-python/hunter: fix tests and bump to 3.3.2
9
10 Dropped 3.1.3 because there's no way I'm messing with tests in another
11 one version! >.<
12
13 Closes: https://bugs.gentoo.org/787050
14 Signed-off-by: Anna Vyalkova <cyber <AT> sysrq.in>
15
16 dev-python/hunter/Manifest | 3 +-
17 dev-python/hunter/hunter-3.1.3.ebuild | 51 ----------------------
18 .../{hunter-3.3.1.ebuild => hunter-3.3.2.ebuild} | 23 +++++++++-
19 3 files changed, 23 insertions(+), 54 deletions(-)
20
21 diff --git a/dev-python/hunter/Manifest b/dev-python/hunter/Manifest
22 index a814d24eb..4766d81ce 100644
23 --- a/dev-python/hunter/Manifest
24 +++ b/dev-python/hunter/Manifest
25 @@ -1,2 +1 @@
26 -DIST hunter-3.1.3.tar.gz 422149 BLAKE2B 2834b3daa6be461b78d468aa331a587a476b7109f5ff9c70b27bb51b26f6a390d2074425f4d98ddc692d4e11f1ee14a77f5066650e82687ebaa586051afab4c8 SHA512 ea9cc935240526d2942568073cecfb2bef32d7caedd0b370850b208a56c652bf356ba0e5675281946419aafd966cbff148490f6f4439d0d808335a3e831adbf7
27 -DIST hunter-3.3.1.tar.gz 533218 BLAKE2B 9ad62c4c5649b3389a480732a3f6939f54fe39f25362e5f796d78ab8286d6aada326035882d81a09c985765c4acc6283e1bd6665c473ca3edb9a84a6f2b301e6 SHA512 8ac5d2f993bc7c75adae532d4bff5a905c7ec84d32389fcfabb4c5ca3d511a73dc84725d5a450be7d1281e006ec049a5b43c01a79890e0b00302b6b7df291d55
28 +DIST hunter-3.3.2.tar.gz 535119 BLAKE2B 25551f04d0b2dafa6875c5c5660d2c57417bdc113960ec2b8d224c88a6b9d08b38bfbbb2deb516e7a36704164318137f5675409850c2eeff2c486a819731c756 SHA512 e3b5e7a3729074cf52a7a209e6f54a1319b3e94ff50abe4e6d8f00f3953720e3c2380de066c2a0a4e56c7a348fdd947425ae19c8907bd420d10ffb271bc07516
29
30 diff --git a/dev-python/hunter/hunter-3.1.3.ebuild b/dev-python/hunter/hunter-3.1.3.ebuild
31 deleted file mode 100644
32 index 86af50715..000000000
33 --- a/dev-python/hunter/hunter-3.1.3.ebuild
34 +++ /dev/null
35 @@ -1,51 +0,0 @@
36 -# Copyright 1999-2020 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=7
40 -
41 -PYTHON_COMPAT=( python3_{7,8} )
42 -
43 -DISTUTILS_USE_SETUPTOOLS=rdepend
44 -
45 -inherit distutils-r1
46 -
47 -DESCRIPTION="Hunter is a flexible code tracing toolkit"
48 -HOMEPAGE="
49 - https://github.com/ionelmc/python-hunter
50 - https://pypi.org/project/hunter
51 -"
52 -SRC_URI="https://github.com/ionelmc/python-${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
53 -
54 -LICENSE="BSD-2"
55 -SLOT="0"
56 -KEYWORDS="~amd64 ~x86"
57 -
58 -RDEPEND="
59 - dev-python/colorama[${PYTHON_USEDEP}]
60 -"
61 -DEPEND="
62 - ${RDEPEND}
63 - test? (
64 - dev-python/aspectlib[${PYTHON_USEDEP}]
65 - dev-python/hunter[${PYTHON_USEDEP}]
66 - dev-python/manhole[${PYTHON_USEDEP}]
67 - dev-python/pytest-benchmark[${PYTHON_USEDEP}]
68 - dev-python/process-tests[${PYTHON_USEDEP}]
69 - )
70 -"
71 -BDEPEND="
72 - dev-python/cython[${PYTHON_USEDEP}]
73 - >=dev-python/setuptools_scm-3.3.1[${PYTHON_USEDEP}]
74 -"
75 -
76 -S="${WORKDIR}/python-${P}"
77 -
78 -distutils_enable_tests pytest
79 -distutils_enable_sphinx docs ">=dev-python/sphinx-py3doc-enhanced-theme-2.3.2"
80 -
81 -python_prepare_all() {
82 - # all tests in this file fail
83 - rm tests/test_remote.py || die
84 -
85 - distutils-r1_python_prepare_all
86 -}
87
88 diff --git a/dev-python/hunter/hunter-3.3.1.ebuild b/dev-python/hunter/hunter-3.3.2.ebuild
89 similarity index 59%
90 rename from dev-python/hunter/hunter-3.3.1.ebuild
91 rename to dev-python/hunter/hunter-3.3.2.ebuild
92 index 952cd2f05..51a71d901 100644
93 --- a/dev-python/hunter/hunter-3.3.1.ebuild
94 +++ b/dev-python/hunter/hunter-3.3.2.ebuild
95 @@ -25,7 +25,6 @@ DEPEND="
96 ${RDEPEND}
97 test? (
98 dev-python/aspectlib[${PYTHON_USEDEP}]
99 - dev-python/hunter[${PYTHON_USEDEP}]
100 dev-python/manhole[${PYTHON_USEDEP}]
101 dev-python/pytest-benchmark[${PYTHON_USEDEP}]
102 dev-python/process-tests[${PYTHON_USEDEP}]
103 @@ -45,5 +44,27 @@ python_prepare_all() {
104 # all tests in this file fail
105 rm tests/test_remote.py || die
106
107 + sed 's/setuptools_scm>=3.3.1,!=4.0.0,<6.0/setuptools_scm>=3.3.1/' \
108 + -i setup.py || die
109 +
110 distutils-r1_python_prepare_all
111 }
112 +
113 +python_compile() {
114 + distutils-r1_python_compile
115 +
116 + if use test; then
117 + "${EPYTHON}" tests/setup.py build_ext --force --inplace || die
118 + fi
119 +}
120 +
121 +python_test() {
122 + local -x PYTHONPATH="${S}/tests:${BUILD_DIR}/lib:${PYTHONPATH}"
123 + epytest --ignore=src \
124 + --deselect tests/test_integration.py::test_pth_activation \
125 + --deselect tests/test_integration.py::test_pth_sample4 \
126 + --deselect tests/test_integration.py::test_pth_sample2 \
127 + --deselect tests/test_integration.py::test_depth_limit_subprocess[depth_lt=2] \
128 + --deselect tests/test_integration.py::test_depth_limit_subprocess[depth_lt=3] \
129 + --deselect tests/test_integration.py::test_depth_limit_subprocess[depth_lt=4]
130 +}