dev-python/manhole: treeclean

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova 2025-02-17 18:53:39 +05:00
parent 5dcde4ad5d
commit 670032ae1e
No known key found for this signature in database
GPG Key ID: E7B76EDC50864BB1
4 changed files with 0 additions and 105 deletions

View File

@ -1 +0,0 @@
DIST manhole-1.8.0.gh.tar.gz 30823 BLAKE2B 7de4966faaa5a386097d9e3015318f3df5422f9f4525347ea93bc1b3cc988236e2db9dcdf7c5e4f058ad816c74beebab210af65fd331e2347da9c05035a22128 SHA512 041452d602895f7ceaafc74ac50713acd470120b022a942946de83f90d2d839ee15b333dfc329f88597b13e0b3fee436af526beae95a3ff94e51376fd2cc27e6

View File

@ -1,11 +0,0 @@
Use importlib as imp is removed in python3.12
--- a/tests/test_manhole.py
+++ b/tests/test_manhole.py
@@ -1,6 +1,6 @@
from __future__ import print_function
-import imp
+import importlib
import os
import re
import select

View File

@ -1,75 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} pypy3 )
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="Debugging manhole for python application"
HOMEPAGE="
https://github.com/ionelmc/python-manhole
https://pypi.org/project/manhole/
"
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 ~arm ~arm64 ~x86"
BDEPEND="
test? (
dev-python/process-tests[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
)
"
# DOCS=( AUTHORS.rst CHANGELOG.rst README.rst )
PATCHES=(
"${FILESDIR}/importlib.patch"
)
distutils_enable_tests pytest
EPYTEST_DESELECT=(
# Need an internet connection
tests/test_manhole.py::test_simple
tests/test_manhole.py::test_connection_handler_exec
tests/test_manhole.py::test_daemon_connection
tests/test_manhole.py::test_non_daemon_connection
tests/test_manhole.py::test_locals_after_fork
tests/test_manhole.py::test_socket_path
tests/test_manhole.py::test_with_fork
tests/test_manhole.py::test_with_forkpty
tests/test_manhole.py::test_oneshot_on_usr2_error
# Need the python package signalfd
tests/test_manhole.py::test_sigprocmask
tests/test_manhole.py::test_sigprocmask_negative
tests/test_manhole.py::test_sigmask
# Usually passes but sometimes fails (bug #792225)
tests/test_manhole.py::test_stderr_doesnt_deadlock
# Cannot find a file or directory
tests/test_manhole.py::test_uwsgi
# Broken
tests/test_manhole_cli.py::test_help
)
python_test() {
[[ ${EPYTHON} == pypy3 ]] && \
EPYTEST_DESELECT+=( tests/test_manhole.py::test_log_fh )
distutils-r1_python_test
}

View File

@ -1,18 +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">
Manhole is in-process service that will accept unix domain socket connections and present the stacktraces for all threads and an interactive prompt. It can either work as a python daemon thread waiting for connections at all times or a signal handler (stopping your application and waiting for a connection).
Access to the socket is restricted to the application's effective user id or root.
This is just like Twisted's manhole. It's simpler (no dependencies), it only runs on Unix domain sockets (in contrast to Twisted's manhole which can run on telnet or ssh) and it integrates well with various types of applications.
</longdescription>
<upstream>
<remote-id type="github">ionelmc/python-manhole</remote-id>
<remote-id type="pypi">manhole</remote-id>
<doc>https://python-manhole.readthedocs.io/</doc>
<changelog>https://python-manhole.readthedocs.io/en/latest/changelog.html</changelog>
</upstream>
</pkgmetadata>