dev-python/sshtunnel: Fix test invocation
authorAaron W. Swenson <titanofold@gentoo.org>
Sun, 7 Apr 2019 13:46:08 +0000 (09:46 -0400)
committerAaron W. Swenson <titanofold@gentoo.org>
Sun, 7 Apr 2019 13:47:16 +0000 (09:47 -0400)
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 <titanofold@gentoo.org>
dev-python/sshtunnel/sshtunnel-0.1.4-r1.ebuild [new file with mode: 0644]

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 (file)
index 0000000..38675ff
--- /dev/null
@@ -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
+}