diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-10-07 15:58:54 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-10-07 15:58:54 +0000 |
commit | d869d5fe115cbd245ea321817b96c9d9d5fc1f30 (patch) | |
tree | 7a08c0698cf4bb946c2eb15a967300b567fc73bd /dev-python | |
parent | alpha/arm/ia64/s390/sh/sparc stable wrt #285434 (diff) | |
download | gentoo-2-d869d5fe115cbd245ea321817b96c9d9d5fc1f30.tar.gz gentoo-2-d869d5fe115cbd245ea321817b96c9d9d5fc1f30.tar.bz2 gentoo-2-d869d5fe115cbd245ea321817b96c9d9d5fc1f30.zip |
Version bump.
(Portage version: 14510-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/coverage/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/coverage/coverage-3.1.ebuild | 38 | ||||
-rw-r--r-- | dev-python/coverage/files/coverage-3.1-python-3.patch | 50 |
3 files changed, 95 insertions, 1 deletions
diff --git a/dev-python/coverage/ChangeLog b/dev-python/coverage/ChangeLog index 6d7054b62b39..2182d79849da 100644 --- a/dev-python/coverage/ChangeLog +++ b/dev-python/coverage/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/coverage # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/coverage/ChangeLog,v 1.10 2009/09/05 18:37:05 arfrever Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/coverage/ChangeLog,v 1.11 2009/10/07 15:58:54 arfrever Exp $ + +*coverage-3.1 (07 Oct 2009) + + 07 Oct 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +coverage-3.1.ebuild, +files/coverage-3.1-python-3.patch: + Version bump. 05 Sep 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> coverage-3.0.1.ebuild: diff --git a/dev-python/coverage/coverage-3.1.ebuild b/dev-python/coverage/coverage-3.1.ebuild new file mode 100644 index 000000000000..f7b9e09ef468 --- /dev/null +++ b/dev-python/coverage/coverage-3.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/coverage/coverage-3.1.ebuild,v 1.1 2009/10/07 15:58:54 arfrever Exp $ + +EAPI="2" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils + +DESCRIPTION="Measures code coverage during Python execution" +HOMEPAGE="http://nedbatchelder.com/code/modules/coverage.html" +SRC_URI="http://pypi.python.org/packages/source/c/coverage/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="test" + +RDEPEND="" +DEPEND="dev-python/setuptools + test? ( >=dev-python/nose-0.10.3 )" + +PYTHON_MODNAME="coverage" + +src_prepare() { + epatch "${FILESDIR}/${P}-python-3.patch" + distutils_src_prepare +} + +src_test() { + testing() { + # Future version of dev-python/nose will support Python 3. + [[ "${PYTHON_ABI}" == 3.* ]] && return + + "$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" nosetests + } + python_execute_function testing +} diff --git a/dev-python/coverage/files/coverage-3.1-python-3.patch b/dev-python/coverage/files/coverage-3.1-python-3.patch new file mode 100644 index 000000000000..64ad6888abe6 --- /dev/null +++ b/dev-python/coverage/files/coverage-3.1-python-3.patch @@ -0,0 +1,50 @@ +--- setup.py ++++ setup.py +@@ -28,33 +28,22 @@ + # Pull in the tools we need. + import sys + +-if sys.hexversion < 0x03000000: +- # In Py 2.x, use setuptools. +- from ez_setup import use_setuptools +- use_setuptools() +- +- from setuptools import setup +- from distutils.core import Extension ++from ez_setup import use_setuptools ++use_setuptools() + +- more_setup_args = dict( +- entry_points = { +- 'console_scripts': [ +- 'coverage = coverage:main', +- ] +- }, +- +- # We need to get HTML assets from our htmlfiles dir. +- zip_safe = False, +- ) +-else: +- # No setuptools yet for Py 3.x, so do without. +- from distutils.core import setup, Extension ++from setuptools import setup ++from distutils.core import Extension ++ ++more_setup_args = dict( ++ entry_points = { ++ 'console_scripts': [ ++ 'coverage = coverage:main', ++ ] ++ }, + +- more_setup_args = dict( +- scripts = [ +- 'scripts/coverage', +- ], +- ) ++ # We need to get HTML assets from our htmlfiles dir. ++ zip_safe = False, ++ ) + + + # Get or massage our metadata. |