Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/manhole/
Date: Sun, 29 Mar 2020 09:29:15
Message-Id: 1585474143.31bf152ba6cc3ebc667013e190e26a6d415b1c78.Alessandro-Barbieri@gentoo
1 commit: 31bf152ba6cc3ebc667013e190e26a6d415b1c78
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sun Mar 29 09:17:09 2020 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Sun Mar 29 09:29:03 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=31bf152b
7
8 dev-python/manhole: new package
9
10 Package-Manager: Portage-2.3.96, Repoman-2.3.22
11 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
12
13 dev-python/manhole/Manifest | 1 +
14 dev-python/manhole/manhole-1.6.0.ebuild | 47 +++++++++++++++++++++++++++++++++
15 dev-python/manhole/metadata.xml | 20 ++++++++++++++
16 3 files changed, 68 insertions(+)
17
18 diff --git a/dev-python/manhole/Manifest b/dev-python/manhole/Manifest
19 new file mode 100644
20 index 0000000..2d8dd7f
21 --- /dev/null
22 +++ b/dev-python/manhole/Manifest
23 @@ -0,0 +1 @@
24 +DIST manhole-1.6.0.tar.gz 30111 BLAKE2B e6cffb465d72d579d3c901b5f163248ea28f3a208d2b487207a4f2d949994b7b778808b19a3bde0047bc71c2fe1865a12f9dcc5ac4f5407745879c8648df6c89 SHA512 179a87529e371c4480b6ab0ad6cc6cc9e3942f4be339cacaf1f1b100e447b8b1f2903a03879e9df3376c86ced4421aa5a16d934c9b250f91715b28d03dca000a
25
26 diff --git a/dev-python/manhole/manhole-1.6.0.ebuild b/dev-python/manhole/manhole-1.6.0.ebuild
27 new file mode 100644
28 index 0000000..37db2bb
29 --- /dev/null
30 +++ b/dev-python/manhole/manhole-1.6.0.ebuild
31 @@ -0,0 +1,47 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{6,7} )
38 +
39 +inherit distutils-r1
40 +
41 +MYPN="python-${PN}"
42 +
43 +DESCRIPTION="Debugging manhole for python application"
44 +HOMEPAGE="
45 + https://github.com/ionelmc/python-manhole
46 + https://pypi.org/project/python-manhole
47 +"
48 +SRC_URI="https://github.com/ionelmc/${MYPN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
49 +LICENSE="BSD-2"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~x86"
52 +
53 +RDEPEND=""
54 +DEPEND="
55 + ${RDEPEND}
56 + test? (
57 + dev-python/eventlet[${PYTHON_USEDEP}]
58 + dev-python/gevent[${PYTHON_USEDEP}]
59 + dev-python/process-tests[${PYTHON_USEDEP}]
60 + dev-python/pytest-travis-fold[${PYTHON_USEDEP}]
61 + dev-python/requests[${PYTHON_USEDEP}]
62 + www-servers/uwsgi[${PYTHON_USEDEP}]
63 + )
64 +"
65 +
66 +S="${WORKDIR}/${MYPN}-${PV}"
67 +
68 +python_prepare_all() {
69 + #no coverage
70 + #sed -i 's|--cov-report term-missing||' setup.cfg || die
71 + #sed -i 's|nocover: false|nocover: true|' setup.cfg || die
72 + distutils-r1_python_prepare_all
73 +}
74 +
75 +distutils_enable_tests pytest
76 +distutils_enable_sphinx docs \
77 + dev-python/sphinx-py3doc-enhanced-theme \
78 + dev-python/sphinxcontrib-napoleon
79
80 diff --git a/dev-python/manhole/metadata.xml b/dev-python/manhole/metadata.xml
81 new file mode 100644
82 index 0000000..e407498
83 --- /dev/null
84 +++ b/dev-python/manhole/metadata.xml
85 @@ -0,0 +1,20 @@
86 +<?xml version="1.0" encoding="UTF-8"?>
87 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
88 +
89 +<pkgmetadata>
90 + <maintainer type="person">
91 + <email>lssndrbarbieri@×××××.com</email>
92 + <name>Alessandro Barbieri</name>
93 + </maintainer>
94 + <longdescription>
95 +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).
96 +
97 +Access to the socket is restricted to the application's effective user id or root.
98 +
99 +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.
100 + </longdescription>
101 + <upstream>
102 + <remote-id type="github">ionelmc/python-manhole</remote-id>
103 + <remote-id type="pypi">manhole</remote-id>
104 + </upstream>
105 +</pkgmetadata>