diff options
author | Christian Faulhammer <fauli@gentoo.org> | 2011-07-03 14:50:32 +0000 |
---|---|---|
committer | Christian Faulhammer <fauli@gentoo.org> | 2011-07-03 14:50:32 +0000 |
commit | 9fb72102cc80d12c772a6e7527f47714fbf5d744 (patch) | |
tree | 1e5c566e319e91434fef61148efa990795f03c24 /dev-python/testtools | |
parent | Moved from sunrise overlay. Thanks to Patrick Nagel <mail@patrick-nagel.net>.... (diff) | |
download | gentoo-2-9fb72102cc80d12c772a6e7527f47714fbf5d744.tar.gz gentoo-2-9fb72102cc80d12c772a6e7527f47714fbf5d744.tar.bz2 gentoo-2-9fb72102cc80d12c772a6e7527f47714fbf5d744.zip |
version bump, disable support for Python 3 as it does break regularly
(Portage version: 2.1.9.42/cvs/Linux i686)
Diffstat (limited to 'dev-python/testtools')
-rw-r--r-- | dev-python/testtools/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/testtools/testtools-0.9.11.ebuild | 37 |
2 files changed, 44 insertions, 1 deletions
diff --git a/dev-python/testtools/ChangeLog b/dev-python/testtools/ChangeLog index 1c85c7b9f501..d3a4459fb46c 100644 --- a/dev-python/testtools/ChangeLog +++ b/dev-python/testtools/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/testtools # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/testtools/ChangeLog,v 1.29 2011/04/17 15:22:08 fauli Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/testtools/ChangeLog,v 1.30 2011/07/03 14:50:32 fauli Exp $ + +*testtools-0.9.11 (03 Jul 2011) + + 03 Jul 2011; Christian Faulhammer <fauli@gentoo.org> + +testtools-0.9.11.ebuild: + version bump, disable support for Python 3 as it does break regularly *testtools-0.9.10 (17 Apr 2011) diff --git a/dev-python/testtools/testtools-0.9.11.ebuild b/dev-python/testtools/testtools-0.9.11.ebuild new file mode 100644 index 000000000000..11864dc60852 --- /dev/null +++ b/dev-python/testtools/testtools-0.9.11.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/testtools/testtools-0.9.11.ebuild,v 1.1 2011/07/03 14:50:32 fauli Exp $ + +EAPI="3" +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 +} + +# Below will work as soon as upstream really develops for Python 3 and beyond +# 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. |