From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 39064138239 for ; Sun, 29 Mar 2020 09:29:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 54DCEE0B29; Sun, 29 Mar 2020 09:29:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 26FD4E0B1D for ; Sun, 29 Mar 2020 09:29:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E274434FAC1 for ; Sun, 29 Mar 2020 09:29:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BD6F21AC for ; Sun, 29 Mar 2020 09:29:08 +0000 (UTC) From: "Alessandro Barbieri" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alessandro Barbieri" Message-ID: <1585474143.31bf152ba6cc3ebc667013e190e26a6d415b1c78.Alessandro-Barbieri@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/manhole/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/manhole/Manifest dev-python/manhole/manhole-1.6.0.ebuild dev-python/manhole/metadata.xml X-VCS-Directories: dev-python/manhole/ X-VCS-Committer: Alessandro-Barbieri X-VCS-Committer-Name: Alessandro Barbieri X-VCS-Revision: 31bf152ba6cc3ebc667013e190e26a6d415b1c78 X-VCS-Branch: dev Date: Sun, 29 Mar 2020 09:29:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 43db9683-d056-4df6-b3f1-d769dbd69f5b X-Archives-Hash: 01be9120bab8fa9cd9e7aae60f214129 commit: 31bf152ba6cc3ebc667013e190e26a6d415b1c78 Author: Alessandro Barbieri gmail com> AuthorDate: Sun Mar 29 09:17:09 2020 +0000 Commit: Alessandro Barbieri gmail com> CommitDate: Sun Mar 29 09:29:03 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=31bf152b dev-python/manhole: new package Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri gmail.com> dev-python/manhole/Manifest | 1 + dev-python/manhole/manhole-1.6.0.ebuild | 47 +++++++++++++++++++++++++++++++++ dev-python/manhole/metadata.xml | 20 ++++++++++++++ 3 files changed, 68 insertions(+) diff --git a/dev-python/manhole/Manifest b/dev-python/manhole/Manifest new file mode 100644 index 0000000..2d8dd7f --- /dev/null +++ b/dev-python/manhole/Manifest @@ -0,0 +1 @@ +DIST manhole-1.6.0.tar.gz 30111 BLAKE2B e6cffb465d72d579d3c901b5f163248ea28f3a208d2b487207a4f2d949994b7b778808b19a3bde0047bc71c2fe1865a12f9dcc5ac4f5407745879c8648df6c89 SHA512 179a87529e371c4480b6ab0ad6cc6cc9e3942f4be339cacaf1f1b100e447b8b1f2903a03879e9df3376c86ced4421aa5a16d934c9b250f91715b28d03dca000a diff --git a/dev-python/manhole/manhole-1.6.0.ebuild b/dev-python/manhole/manhole-1.6.0.ebuild new file mode 100644 index 0000000..37db2bb --- /dev/null +++ b/dev-python/manhole/manhole-1.6.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +inherit distutils-r1 + +MYPN="python-${PN}" + +DESCRIPTION="Debugging manhole for python application" +HOMEPAGE=" + https://github.com/ionelmc/python-manhole + https://pypi.org/project/python-manhole +" +SRC_URI="https://github.com/ionelmc/${MYPN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="" +DEPEND=" + ${RDEPEND} + test? ( + dev-python/eventlet[${PYTHON_USEDEP}] + dev-python/gevent[${PYTHON_USEDEP}] + dev-python/process-tests[${PYTHON_USEDEP}] + dev-python/pytest-travis-fold[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + www-servers/uwsgi[${PYTHON_USEDEP}] + ) +" + +S="${WORKDIR}/${MYPN}-${PV}" + +python_prepare_all() { + #no coverage + #sed -i 's|--cov-report term-missing||' setup.cfg || die + #sed -i 's|nocover: false|nocover: true|' setup.cfg || die + distutils-r1_python_prepare_all +} + +distutils_enable_tests pytest +distutils_enable_sphinx docs \ + dev-python/sphinx-py3doc-enhanced-theme \ + dev-python/sphinxcontrib-napoleon diff --git a/dev-python/manhole/metadata.xml b/dev-python/manhole/metadata.xml new file mode 100644 index 0000000..e407498 --- /dev/null +++ b/dev-python/manhole/metadata.xml @@ -0,0 +1,20 @@ + + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + +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. + + + ionelmc/python-manhole + manhole + +