diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-02-24 21:04:16 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2013-02-24 21:04:16 +0000 |
commit | 5a824ac09748632163bdc3f0d4716ba992bb4b59 (patch) | |
tree | a486b8b8f948a574d5855d468f12fae7dc87d356 | |
parent | Change awk dependency to virtual/awk, wrt bug #455666 (diff) | |
download | gentoo-2-5a824ac09748632163bdc3f0d4716ba992bb4b59.tar.gz gentoo-2-5a824ac09748632163bdc3f0d4716ba992bb4b59.tar.bz2 gentoo-2-5a824ac09748632163bdc3f0d4716ba992bb4b59.zip |
Migrate to distutils-r1. Add upstream bug references.
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 9627F456F9DA7643!)
-rw-r--r-- | dev-python/testtools/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/testtools/testtools-0.9.24-r1.ebuild | 47 |
2 files changed, 53 insertions, 1 deletions
diff --git a/dev-python/testtools/ChangeLog b/dev-python/testtools/ChangeLog index e4d5e1a04687..d1a4cea16980 100644 --- a/dev-python/testtools/ChangeLog +++ b/dev-python/testtools/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/testtools # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/testtools/ChangeLog,v 1.54 2013/01/13 12:59:43 fauli Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/testtools/ChangeLog,v 1.55 2013/02/24 21:04:16 mgorny Exp $ + +*testtools-0.9.24-r1 (24 Feb 2013) + + 24 Feb 2013; Michał Górny <mgorny@gentoo.org> +testtools-0.9.24-r1.ebuild: + Migrate to distutils-r1. Add upstream bug references. 13 Jan 2013; Christian Faulhammer <fauli@gentoo.org> -testtools-0.9.8.ebuild, -testtools-0.9.11.ebuild, -testtools-0.9.14.ebuild, -testtools-0.9.16.ebuild: diff --git a/dev-python/testtools/testtools-0.9.24-r1.ebuild b/dev-python/testtools/testtools-0.9.24-r1.ebuild new file mode 100644 index 000000000000..cb8449ff79be --- /dev/null +++ b/dev-python/testtools/testtools-0.9.24-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/testtools/testtools-0.9.24-r1.ebuild,v 1.1 2013/02/24 21:04:16 mgorny Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7,3_1,3_2,3_3} pypy{1_9,2_0} ) + +inherit distutils-r1 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 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" +IUSE="" + +DEPEND="" +RDEPEND="" + +python_compile() { + distutils-r1_python_compile + + if [[ ! -e "${BUILD_DIR}"/lib/testtools/_compat2x.py ]]; then + die "_compat2x.py removed upstream; fix src_compile" + fi + + # _compat2x.py is expected to have syntax incompatible with python 3. + # This breaks compileall. Replace with "raise SyntaxError". + # https://bugs.launchpad.net/testtools/+bug/941958 + if [[ ${EPYTHON} == python3* ]]; then + echo "raise SyntaxError" > "${BUILD_DIR}"/lib/testtools/_compat2x.py + fi +} + +python_test() { + # XXX: tests are non-fatal currently... + # https://bugs.launchpad.net/testtools/+bug/1132542 + esetup.py test +} + +# dev-python/subunit imports some objects from testtools.tests.helpers, so +# tests need to be installed. |