summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2016-03-02 11:41:35 +0100
committerPatrick Lauer <patrick@gentoo.org>2016-03-02 11:45:47 +0100
commit524a5dfa42f6ea18d17996bce15b61c1c1a604cb (patch)
tree143696de33a90e95d2619a5bb98d168cd5a32ef6 /dev-python/testresources
parentdev-python/ipdb: Bump (diff)
downloadgentoo-524a5dfa42f6ea18d17996bce15b61c1c1a604cb.tar.gz
gentoo-524a5dfa42f6ea18d17996bce15b61c1c1a604cb.tar.bz2
gentoo-524a5dfa42f6ea18d17996bce15b61c1c1a604cb.zip
dev-python/testresources: Bump
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-python/testresources')
-rw-r--r--dev-python/testresources/Manifest1
-rw-r--r--dev-python/testresources/testresources-1.0.0.ebuild38
2 files changed, 39 insertions, 0 deletions
diff --git a/dev-python/testresources/Manifest b/dev-python/testresources/Manifest
index 00ce0840b274..2968d45ede6b 100644
--- a/dev-python/testresources/Manifest
+++ b/dev-python/testresources/Manifest
@@ -1 +1,2 @@
DIST testresources-0.2.7.tar.gz 32050 SHA256 ad0a117383dd463827b199eaa92829b4d6a3147fbd97459820df53bae81d7231 SHA512 29518f7326272c56a5f2f3f1f7741959dde9265ba5ce7e0c7d7afabd91bd44a519d1cad82a11a41944ff12d65e541536476f87afcac9a7cbb4869743a38547b7 WHIRLPOOL c414223960fbd6a1c612d2c79c8b8956ab858aaaa76331ddefb1315dbdd6c6bc1d3a7641c098d7d558b332ee8f4262d8921240adb63f581a3127da6a617dc200
+DIST testresources-1.0.0.tar.gz 44501 SHA256 e9b2c70ecade3135629e66945a7ac19c6df18c59b3d8f02e95d24bc8e066c7cf SHA512 7c9f9cbcc62066ab4a75d68780d88925484eeee23e2e0ef0395b63ec2a92968a6969d1bd6f483945e32ff5566e686b426f2f37daf4f803d2ef779032ea97cc6b WHIRLPOOL f4a390df289f4e452e197b58cc6df2a162a5843d64ba03fc3a6918c1f0b6124ee9c98e3e08bbb4c8780344749a7e961a4482a005e7b2e23359ecc56f6cef8192
diff --git a/dev-python/testresources/testresources-1.0.0.ebuild b/dev-python/testresources/testresources-1.0.0.ebuild
new file mode 100644
index 000000000000..9121c8a96d1d
--- /dev/null
+++ b/dev-python/testresources/testresources-1.0.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="A pyunit extension for managing expensive test resources"
+HOMEPAGE="https://launchpad.net/testresources"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/nose[${PYTHON_USEDEP}]
+ dev-python/testtools[${PYTHON_USEDEP}]
+ dev-python/fixtures[${PYTHON_USEDEP}]
+ )"
+RDEPEND=""
+
+python_prepare_all() {
+ sed \
+ -e 's:testBasicSortTests:_&:g' \
+ -i testresources/tests/test_optimising_test_suite.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ nosetests --verbose || die "Tests failed under ${EPYTHON}"
+}