guru/dev-python/manhole/manhole-1.6.0.ebuild
Andrew Ammerlaan 3a17225c8f
dev-python/manhole: add py3_7
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
2020-06-09 15:18:27 +02:00

55 lines
1.4 KiB
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7} )
DISTUTILS_USE_SETUPTOOLS=rdepend
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,python_gevent,${PYTHON_USEDEP}]
S="${WORKDIR}/${MYPN}-${PV}"
distutils_enable_tests pytest
distutils_enable_sphinx docs \
dev-python/sphinx-py3doc-enhanced-theme \
dev-python/sphinxcontrib-napoleon
python_test() {
pytest -vv \
--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_cli.py::test_help || die
}