mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 19:43:24 -04:00
dev-python/manhole: fix tests and bump to 1.8.0
Closes: https://bugs.gentoo.org/784041 Signed-off-by: Anna Vyalkova <cyber@sysrq.in>
This commit is contained in:
52
dev-python/manhole/manhole-1.8.0.ebuild
Normal file
52
dev-python/manhole/manhole-1.8.0.ebuild
Normal file
@@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7,8} )
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN="python-${PN}"
|
||||
|
||||
DESCRIPTION="Debugging manhole for python application"
|
||||
HOMEPAGE="
|
||||
https://github.com/ionelmc/python-manhole
|
||||
https://pypi.org/project/manhole
|
||||
"
|
||||
SRC_URI="https://github.com/ionelmc/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="
|
||||
test? (
|
||||
dev-python/eventlet[${PYTHON_USEDEP}]
|
||||
dev-python/gevent[${PYTHON_USEDEP}]
|
||||
dev-python/process-tests[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
distutils_enable_sphinx docs \
|
||||
dev-python/sphinx-py3doc-enhanced-theme \
|
||||
dev-python/sphinxcontrib-napoleon
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
epytest \
|
||||
--deselect tests/test_manhole.py::test_non_daemon_connection \
|
||||
--deselect tests/test_manhole.py::test_daemon_connection \
|
||||
--deselect tests/test_manhole.py::test_uwsgi \
|
||||
--deselect tests/test_manhole.py::test_fork_exec \
|
||||
--deselect tests/test_manhole.py::test_connection_handler_exec[str] \
|
||||
--deselect tests/test_manhole.py::test_connection_handler_exec[func] \
|
||||
--deselect tests/test_manhole.py::test_environ_variable_activation \
|
||||
--deselect tests/test_manhole_cli.py::test_help
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user