summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-10-17 22:16:10 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-10-17 22:16:10 +0000
commit8bbc8e3b83652473de97253515fc682d3b6c14df (patch)
treee6c2c251a9394b2956ca109b507df95b322bf9e4 /dev-python/testtools
parentUpdate live ebuild for upstream svm->github migration, bug 338362. Thanks to ... (diff)
downloadgentoo-2-8bbc8e3b83652473de97253515fc682d3b6c14df.tar.gz
gentoo-2-8bbc8e3b83652473de97253515fc682d3b6c14df.tar.bz2
gentoo-2-8bbc8e3b83652473de97253515fc682d3b6c14df.zip
Version bump. Install tests (bug #341095).
(Portage version: 2.2_rc97_p2/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/testtools')
-rw-r--r--dev-python/testtools/ChangeLog8
-rw-r--r--dev-python/testtools/testtools-0.9.7.ebuild38
2 files changed, 45 insertions, 1 deletions
diff --git a/dev-python/testtools/ChangeLog b/dev-python/testtools/ChangeLog
index 4084d165c272..698c7115afe8 100644
--- a/dev-python/testtools/ChangeLog
+++ b/dev-python/testtools/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/testtools
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/testtools/ChangeLog,v 1.15 2010/09/23 21:41:19 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/testtools/ChangeLog,v 1.16 2010/10/17 22:16:10 arfrever Exp $
+
+*testtools-0.9.7 (17 Oct 2010)
+
+ 17 Oct 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ +testtools-0.9.7.ebuild:
+ Version bump. Install tests (bug #341095).
*testtools-0.9.6 (23 Sep 2010)
diff --git a/dev-python/testtools/testtools-0.9.7.ebuild b/dev-python/testtools/testtools-0.9.7.ebuild
new file mode 100644
index 000000000000..76c24600e848
--- /dev/null
+++ b/dev-python/testtools/testtools-0.9.7.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/testtools/testtools-0.9.7.ebuild,v 1.1 2010/10/17 22:16:10 arfrever Exp $
+
+EAPI="3"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit distutils versionator
+
+SERIES="$(get_version_component_range 1-2)"
+
+DESCRIPTION="Extensions to the Python unittest library"
+HOMEPAGE="https://launchpad.net/testtools http://pypi.python.org/pypi/testtools"
+SRC_URI="http://launchpad.net/${PN}/${SERIES}/${PV}/+download/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_prepare() {
+ distutils_src_prepare
+
+ # Fix tests with Python 3.
+ sed -e 's/raise RuntimeError, "Something went wrong!"/raise RuntimeError("Something went wrong!")/' -i testtools/tests/test_monkey.py
+}
+
+src_test() {
+ testing() {
+ PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" -m testtools.run testtools.tests.test_suite
+ }
+ python_execute_function testing
+}
+
+# dev-python/subunit imports some objects from testtools.tests.helpers, so tests need to be installed.