From 72f70fcd542c933f0f411bddba9524bbe8d52bee Mon Sep 17 00:00:00 2001 From: "Aaron W. Swenson" Date: Sun, 7 Apr 2019 09:46:08 -0400 Subject: [PATCH] dev-python/sshtunnel: Fix test invocation Drop dev-python/tox requirement in favor of some direct dependencies on pytest, and no longer adds additional files to the image. Bug: https://bugs.gentoo.org/668146 Bug: https://bugs.gentoo.org/671484 Bug: https://bugs.gentoo.org/682260 Package-Manager: Portage-2.3.62, Repoman-2.3.11 Signed-off-by: Aaron W. Swenson --- .../sshtunnel/sshtunnel-0.1.4-r1.ebuild | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 dev-python/sshtunnel/sshtunnel-0.1.4-r1.ebuild diff --git a/dev-python/sshtunnel/sshtunnel-0.1.4-r1.ebuild b/dev-python/sshtunnel/sshtunnel-0.1.4-r1.ebuild new file mode 100644 index 000000000000..38675ffce8b4 --- /dev/null +++ b/dev-python/sshtunnel/sshtunnel-0.1.4-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 + +DESCRIPTION="Pure python SSH tunnels" +HOMEPAGE="https://pypi.python.org/pypi/sshtunnel" +SRC_URI="mirror://pypi/s/sshtunnel/${P}.tar.gz" + +KEYWORDS="~amd64 ~arm ~x86" +LICENSE="MIT" +SLOT="0" + +IUSE="test" + +RDEPEND="dev-python/paramiko[${PYTHON_USEDEP}]" + +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-cov[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +python_test() { + py.test --showlocals --cov sshtunnel --durations=10 -n4 tests +} -- 2.26.2