commit:     1142eac6173b9904cea44902f0bababd7d9b54fd
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Mon Feb 17 13:53:45 2025 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Mon Feb 17 13:53:45 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1142eac6

dev-python/hunter: treeclean

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 dev-python/hunter/Manifest                |  1 -
 dev-python/hunter/files/fix_backend.patch | 12 -----
 dev-python/hunter/hunter-3.6.1.ebuild     | 79 -------------------------------
 dev-python/hunter/metadata.xml            | 71 ---------------------------
 4 files changed, 163 deletions(-)

diff --git a/dev-python/hunter/Manifest b/dev-python/hunter/Manifest
deleted file mode 100644
index 4ab653d99..000000000
--- a/dev-python/hunter/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST hunter-3.6.1.gh.tar.gz 626351 BLAKE2B 
077d61faa8348434ca4bb76b4f703ea341d10df0a822cd57575881082c009f3d94f3808642bd569726c20450d42c5d24a95919f099701e31cf44a50cbeb2f0b7
 SHA512 
1215da594c51cfce6341e3193de14a3386de4d28f0e0745c11b8bd6ba45d33d91628b8abfb528716968f119fa6ef64e7e2fb9ee222af16bfc8519eda354edd11

diff --git a/dev-python/hunter/files/fix_backend.patch 
b/dev-python/hunter/files/fix_backend.patch
deleted file mode 100644
index 5410ea8f7..000000000
--- a/dev-python/hunter/files/fix_backend.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-Upstream uses custom file as backend
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -4,7 +4,7 @@ requires = [
-     "wheel",
-     "setuptools_scm>=3.3.1,!=4.0.0",
- ]
--build-backend = "backend"
-+build-backend = "setuptools.build_meta"
- backend-path = ["build_backend"]
- 
- [tool.ruff.per-file-ignores]

diff --git a/dev-python/hunter/hunter-3.6.1.ebuild 
b/dev-python/hunter/hunter-3.6.1.ebuild
deleted file mode 100644
index 94327131e..000000000
--- a/dev-python/hunter/hunter-3.6.1.ebuild
+++ /dev/null
@@ -1,79 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-PYTHON_COMPAT=( python3_{11..12} )
-DISTUTILS_USE_PEP517=setuptools
-
-# Docs depend on dev-python/sphinx-py3doc-enhanced-theme
-# Which was treecleaned from ::gentoo
-# DOCS_BUILDER="sphinx"
-# DOCS_DEPEND="dev-python/sphinx-py3doc-enhanced-theme"
-# DOCS_DIR="docs"
-
-inherit distutils-r1 # docs
-
-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}.gh.tar.gz"
-S="${WORKDIR}/python-${P}"
-
-LICENSE="BSD-2"
-SLOT="0"
-KEYWORDS="~amd64"
-
-BDEPEND="
-       dev-python/cython[${PYTHON_USEDEP}]
-       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}]
-       )
-"
-
-# DOCS=( AUTHORS.rst CHANGELOG.rst README.rst )
-
-PATCHES=(
-       # Upstream uses a custom file to define backend as setuptools
-       "${FILESDIR}/fix_backend.patch"
-)
-
-distutils_enable_tests pytest
-
-EPYTEST_DESELECT=(
-       # I think it needs internet
-       tests/test_remote.py::test_manhole_clean_exit
-       # Need a py.io module that does not seem to exist
-       tests/test_util.py::test_safe_repr
-       # Permission denied in a chroot
-       tests/test_remote.py::test_gdb
-       tests/test_remote.py::test_gdb_clean_exit
-)
-
-python_test() {
-       # Need to import files in tests folder
-       cd "${S}/tests" || die
-       if [[ "${EPYTHON}" == "python3.12" ]]; then
-               EPYTEST_DESELECT+=(
-                       # From what I could understand, it fail because of a 
change in pathlib in 3.12
-                       tests/test_cookbook.py::test_profile
-                       tests/test_integration.py::test_errorsnooper
-                       tests/test_integration.py::test_errorsnooper_fastmode
-               )
-       fi
-       epytest
-}
-
-src_prepare() {
-       # Need a module that does not exist (see 
https://github.com/ionelmc/python-hunter/issues/116)
-       rm "${S}/tests/test_tracer.py" || die
-       distutils-r1_src_prepare
-}

diff --git a/dev-python/hunter/metadata.xml b/dev-python/hunter/metadata.xml
deleted file mode 100644
index 1d92289a1..000000000
--- a/dev-python/hunter/metadata.xml
+++ /dev/null
@@ -1,71 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
-<pkgmetadata>
-       <!-- maintainer-needed -->
-       <longdescription lang="en">
-Hunter is a flexible code tracing toolkit, not for measuring coverage, but for 
debugging, logging, inspection and other nefarious purposes. It has a simple 
Python API, a convenient terminal API and a CLI tool to attach to processes.
-Design notes
-
-Hunter doesn't do everything. As a design goal of this library some things are 
made intentionally austere and verbose (to avoid complexity, confusion and 
inconsistency). This has few consequences:
-
-       There are Operators but there's no negation operator. Instead you're 
expected to negate a Query object, eg: ~Q(module='re').
-       There are no specialized operators or filters - all filters behave 
exactly the same. For example:
-               No filter for packages. You're expected to filter by module 
with an operator.
-               No filter for arguments, return values or variables. You're 
expected to write your own filter function and deal with the problems of poking 
into objects.
-       Layering is minimal. There's are some helpers that do some argument 
processing and conversions to save you some typing but that's about it.
-       The library doesn't try to hide the mechanics of tracing in Python - 
it's 1:1 regarding what Python sends to a trace function if you'd be using 
sys.settrace.
-       Doesn't have any storage. You are expected to redirect output to a file.
-
-You should look at it like it's a tool to help you understand and debug big 
applications, or a framework ridding you of the boring parts of settrace, not 
something that helps you learn Python.
-FAQ
-Why not Smiley?
-
-There's some obvious overlap with smiley but there are few fundamental 
differences:
-
-       Complexity. Smiley is simply over-engineered:
-               It uses IPC and a SQL database.
-               It has a webserver. Lots of dependencies.
-               It uses threads. Side-effects and subtle bugs are introduced in 
your code.
-               It records everything. Tries to dump any variable. Often fails 
and stops working.
-
-       Why do you need all that just to debug some stuff in a terminal? Simply 
put, it's a nice idea but the design choices work against you when you're 
already neck-deep into debugging your own code. In my experience Smiley has 
been very buggy and unreliable. Your mileage may vary of course.
-
-       Tracing long running code. This will make Smiley record lots of data, 
making it unusable.
-
-       Now because Smiley records everything, you'd think it's better suited 
for short programs. But alas, if your program runs quickly then it's pointless 
to record the execution. You can just run it again.
-
-       It seems there's only one situation where it's reasonable to use 
Smiley: tracing io-bound apps remotely. Those apps don't execute lots of code, 
they just wait on network so Smiley's storage won't blow out of proportion and 
tracing overhead might be acceptable.
-
-       Use-cases. It seems to me Smiley's purpose is not really debugging 
code, but more of a "non interactive monitoring" tool.
-
-In contrast, Hunter is very simple:
-
-       Few dependencies.
-
-       Low overhead (tracing/filtering code has an optional Cython extension).
-
-       No storage. This simplifies lots of things.
-
-       The only cost is that you might need to run the code multiple times to 
get the filtering/actions right. This means Hunter is not really suited for 
"post-mortem" debugging. If you can't reproduce the problem anymore then Hunter 
won't be of much help.
-
-Why not pytrace?
-
-Pytrace is another tracer tool. It seems quite similar to Smiley - it uses a 
sqlite database for the events, threads and IPC, thus it's reasonable to expect 
the same kind of problems.
-Why not PySnooper or snoop?
-
-snoop is a refined version of PySnooper. Both are more suited to tracing small 
programs or functions as the output is more verbose and less suited to the 
needs of tracing a big application where Hunter provides more flexible setup, 
filtering capabilities, speed and brevity.
-Why not coverage?
-
-For purposes of debugging coverage is a great tool but only as far as 
"debugging by looking at what code is (not) run". Checking branch coverage is 
good but it will only get you as far.
-
-From the other perspective, you'd be wondering if you could use Hunter to 
measure coverage-like things. You could do it but for that purpose Hunter is 
very "rough": it has no builtin storage. You'd have to implement your own 
storage. You can do it but it wouldn't give you any advantage over making your 
own tracer if you don't need to "pre-filter" whatever you're recording.
-
-In other words, filtering events is the main selling point of Hunter - it's 
fast (cython implementation) and the query API is flexible enough.
-       </longdescription>
-       <upstream>
-               <remote-id type="github">ionelmc/python-hunter</remote-id>
-               <remote-id type="pypi">hunter</remote-id>
-               <doc>https://python-hunter.readthedocs.io/</doc>
-               
<changelog>https://python-hunter.readthedocs.io/en/latest/changelog.html</changelog>
-       </upstream>
-</pkgmetadata>

Reply via email to