summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-04-22 16:38:22 +0200
committerMichał Górny <mgorny@gentoo.org>2017-04-22 18:40:59 +0200
commit155887af399206854a3eb94379406ecc2963e1d1 (patch)
treebcb892be22d43f3f0e525742d920b4fb8da59353 /dev-python/click-threading
parentdev-python/click-threading: Add missing PYTHON_USEDEP (diff)
downloadgentoo-155887af399206854a3eb94379406ecc2963e1d1.tar.gz
gentoo-155887af399206854a3eb94379406ecc2963e1d1.tar.bz2
gentoo-155887af399206854a3eb94379406ecc2963e1d1.zip
dev-python/click-threading: Enable the test suite
Diffstat (limited to 'dev-python/click-threading')
-rw-r--r--dev-python/click-threading/Manifest2
-rw-r--r--dev-python/click-threading/click-threading-0.3.0.ebuild13
2 files changed, 10 insertions, 5 deletions
diff --git a/dev-python/click-threading/Manifest b/dev-python/click-threading/Manifest
index 5bd3ce648891..ae6485c5a843 100644
--- a/dev-python/click-threading/Manifest
+++ b/dev-python/click-threading/Manifest
@@ -1,2 +1,2 @@
DIST click-threading-0.1.2.tar.gz 3232 SHA256 85045457e02f16fba3110dc6b16e980bf3e65433808da2b550dd513206d9b94a SHA512 4612c5314800a76e65468fb80c9495e14605bbda8b5e25e8d78e8baaa9392e424d673d942bd7d0f3955e0241ddc4b87aa348dcb7f3b9516ba94fb8352c0400b6 WHIRLPOOL b821aaca4566cdb6e58ae3eb9dd5892521dd393c8e472399193aa12d9e8754930e778595fe80f3ea6dacc61e4a2ff8f3e68c2f3cbfd0226ecf103309b02ed6eb
-DIST click-threading-0.3.0.tar.gz 3379 SHA256 4e73ae723086df8ca790f1e47d9926da4fa1fb5cb1d4196440817d459dd8c945 SHA512 30de50a7e317eb0a54cf9c556c803cade1ba7fd4cced5ce9e99c25da7423ea13400c9315025266745745bc2fbc0c59c2da34545d74e8e723f2f05bcd8bb2fd33 WHIRLPOOL e7200a751af971ef588c904cad43f6d0c99606496d3e1d20c3586bf811aed35b7a9e1c118a8cc2a558a3e41ef73ac18e2c1c41d3c6e9fd675b006bbb9df69c47
+DIST click-threading-0.3.0-gh.tar.gz 3759 SHA256 e4e266b1800e9b58f52a16ca9358c43e290a5a92836fd68fa1938464c5e6e26d SHA512 ca535a54f5d88c70c3f8f05f2d423e1b9b0f0b3793a1c04cdc90b61d4fa99f6906a327143dacb2b946ba8c1a9977d9c96ce9caeac9638521641d574316a0bad6 WHIRLPOOL 3b272c181b42b0e51e17f84ad2d79e6e373eec11f623f4e22a24a2b587ae66af5785d94929073868e9c7145491150b2d161e3938b7159dadcc65da7befbdc110
diff --git a/dev-python/click-threading/click-threading-0.3.0.ebuild b/dev-python/click-threading/click-threading-0.3.0.ebuild
index a4e64b9970c6..2233319f5524 100644
--- a/dev-python/click-threading/click-threading-0.3.0.ebuild
+++ b/dev-python/click-threading/click-threading-0.3.0.ebuild
@@ -8,14 +8,19 @@ inherit distutils-r1
DESCRIPTION="Multithreaded Click apps made easy."
HOMEPAGE="https://github.com/click-contrib/click-threading https://pypi.python.org/pypi/click-threading"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+SRC_URI="https://github.com/click-contrib/${PN}/archive/${PV}.tar.gz -> ${P}-gh.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
+IUSE="test"
-DEPEND=">=dev-python/click-5.0[${PYTHON_USEDEP}]"
-RDEPEND="${DEPEND}"
+RDEPEND=">=dev-python/click-5.0[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
DOCS=( README.rst )
+
+python_test() {
+ py.test -v || die "Tests fail with ${EPYTHON}"
+}