commit: 714f98c5d4436417f5cf23cc5874080a8b3f0efd
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Mon Jun 14 02:19:00 2021 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Mon Jun 14 02:27:31 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=714f98c5
dev-python/hunter: add 3.3.4
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
dev-python/hunter/Manifest | 1 +
dev-python/hunter/hunter-3.3.4.ebuild | 63 +++++++++++++++++++++++++++++++++++
2 files changed, 64 insertions(+)
diff --git a/dev-python/hunter/Manifest b/dev-python/hunter/Manifest
index 35e192ec6..97a75678d 100644
--- a/dev-python/hunter/Manifest
+++ b/dev-python/hunter/Manifest
@@ -1 +1,2 @@
DIST hunter-3.3.3.tar.gz 535662 BLAKE2B
f2aa247eec34de982ab56430a0517c483609edc72d3d366a725dabf28ff6621a49411dd41a7ae16846960bb22ec4a7dc1cdb2b528a620e9eac9dc26dabec6213
SHA512
661b0f33653a6175f2172e45386c822552464a06129e2f5c8d4b88f6142a4aecc69bd657dc98ef7ffbb3d93cde537aa3a2e5f68bbced6f03b6514d39cfb99df4
+DIST hunter-3.3.4.tar.gz 535981 BLAKE2B
c3d9f3a6cd77c830d3430a1bf55bfd89c4bf69402d6e17489116a13d483afd1e9fe7ba396a200385d27a5c76557f5856ec468a23735a526283d2db0d160cfcae
SHA512
d51b55207118a26a48d12b97fc164c9b4a14e9d590bf3d85c0677ddf4354dbf800fec4757186a575e5062e297cfb86ee9185e6beff7ad45695e6dc5cba4ac324
diff --git a/dev-python/hunter/hunter-3.3.4.ebuild
b/dev-python/hunter/hunter-3.3.4.ebuild
new file mode 100644
index 000000000..fea16decc
--- /dev/null
+++ b/dev-python/hunter/hunter-3.3.4.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..9} )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+
+inherit distutils-r1
+
+DESCRIPTION="Hunter is a flexible code tracing toolkit"
+HOMEPAGE="
+ https://github.com/ionelmc/python-hunter
+ https://pypi.org/project/hunter
+"
+SRC_URI="https://github.com/ionelmc/python-${PN}/archive/v${PV}.tar.gz ->
${P}.tar.gz"
+S="${WORKDIR}/python-${P}"
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/colorama[${PYTHON_USEDEP}]"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-python/aspectlib[${PYTHON_USEDEP}]
+ dev-python/ipdb[${PYTHON_USEDEP}]
+ dev-python/manhole[${PYTHON_USEDEP}]
+ dev-python/process-tests[${PYTHON_USEDEP}]
+ dev-python/pytest-benchmark[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ )
+"
+BDEPEND="
+ dev-python/cython[${PYTHON_USEDEP}]
+ >=dev-python/setuptools_scm-3.3.1[${PYTHON_USEDEP}]
+"
+
+PATCHES=( "${FILESDIR}/remove-setuptools_scm-upper-constraint.patch" )
+
+distutils_enable_tests pytest
+distutils_enable_sphinx docs ">=dev-python/sphinx-py3doc-enhanced-theme-2.3.2"
+
+python_compile() {
+ distutils-r1_python_compile
+
+ if use test; then
+ "${EPYTHON}" tests/setup.py build_ext --force --inplace || die
+ fi
+}
+
+python_test() {
+ local -x PYTHONPATH="${S}/tests:${BUILD_DIR}/lib:${PYTHONPATH}"
+ epytest -vv \
+ --deselect
tests/test_integration.py::test_pid_prefix[True-CodePrinter] \
+ --deselect
tests/test_integration.py::test_pid_prefix[False-CodePrinter] \
+ --deselect
tests/test_integration.py::test_pid_prefix[True-CallPrinter] \
+ --deselect
tests/test_integration.py::test_pid_prefix[False-CallPrinter] \
+ --deselect tests/test_remote.py::test_manhole \
+ --deselect tests/test_remote.py::test_manhole_clean_exit \
+ --deselect tests/test_tracer.py::test_perf_stdlib[cython] \
+ || die
+}