summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2013-03-14 03:01:48 +0000
committerMike Gilbert <floppym@gentoo.org>2013-03-14 03:01:48 +0000
commit2987ee5e76aba76bfc85d2ab81aee89a6ca69eb4 (patch)
treed7ea862991feb8529bd9a2f826797ba3c4717f97 /dev-python
parentMove udev-acl and other binaries out from /usr/libexec and move them over to ... (diff)
downloadgentoo-2-2987ee5e76aba76bfc85d2ab81aee89a6ca69eb4.tar.gz
gentoo-2-2987ee5e76aba76bfc85d2ab81aee89a6ca69eb4.tar.bz2
gentoo-2-2987ee5e76aba76bfc85d2ab81aee89a6ca69eb4.zip
Version bump. Adds python3 support. Resolves bug 461338.
(Portage version: 2.2.0_alpha166/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/paver/ChangeLog8
-rw-r--r--dev-python/paver/files/paver-1.2.0-skip-cog-tests.patch34
-rw-r--r--dev-python/paver/paver-1.2.0.ebuild33
3 files changed, 74 insertions, 1 deletions
diff --git a/dev-python/paver/ChangeLog b/dev-python/paver/ChangeLog
index b523c021f121..19cdebb02b98 100644
--- a/dev-python/paver/ChangeLog
+++ b/dev-python/paver/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/paver
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/paver/ChangeLog,v 1.24 2013/02/11 03:02:57 floppym Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/paver/ChangeLog,v 1.25 2013/03/14 03:01:47 floppym Exp $
+
+*paver-1.2.0 (14 Mar 2013)
+
+ 14 Mar 2013; Mike Gilbert <floppym@gentoo.org>
+ +files/paver-1.2.0-skip-cog-tests.patch, +paver-1.2.0.ebuild:
+ Version bump. Adds python3 support. Resolves bug 461338.
11 Feb 2013; Mike Gilbert <floppym@gentoo.org> paver-1.1.1-r1.ebuild:
Add pypy.
diff --git a/dev-python/paver/files/paver-1.2.0-skip-cog-tests.patch b/dev-python/paver/files/paver-1.2.0-skip-cog-tests.patch
new file mode 100644
index 000000000000..1ee339dd3bba
--- /dev/null
+++ b/dev-python/paver/files/paver-1.2.0-skip-cog-tests.patch
@@ -0,0 +1,34 @@
+From 1b9641cd841fe5d22ba4c5ef4198e47995c74f04 Mon Sep 17 00:00:00 2001
+From: Almad <bugs@almad.net>
+Date: Wed, 27 Feb 2013 02:56:12 +0100
+Subject: [PATCH] Skip cog tests if tests are not installed (refs #93)
+
+---
+ paver/tests/test_doctools.py | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/paver/tests/test_doctools.py b/paver/tests/test_doctools.py
+index bc0cf8c..6104b3f 100644
+--- a/paver/tests/test_doctools.py
++++ b/paver/tests/test_doctools.py
+@@ -137,6 +137,8 @@ def test_include_lookup():
+ """, "Second was '%s'" % (second)
+
+ def test_cogging():
++ if not paver.doctools.has_cog:
++ raise SkipTest("Cog must be installed for this test")
+ _no25()
+ env = tasks.Environment(doctools)
+ tasks.environment = env
+@@ -159,6 +161,8 @@ def test_cogging():
+ assert "print sys.path" not in data
+
+ def test_cogging_with_markers_removed():
++ if not paver.doctools.has_cog:
++ raise SkipTest("Cog must be installed for this test")
+ _no25()
+ env = tasks.Environment(doctools)
+ tasks.environment = env
+--
+1.7.10
+
diff --git a/dev-python/paver/paver-1.2.0.ebuild b/dev-python/paver/paver-1.2.0.ebuild
new file mode 100644
index 000000000000..230220b66173
--- /dev/null
+++ b/dev-python/paver/paver-1.2.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/paver/paver-1.2.0.ebuild,v 1.1 2013/03/14 03:01:47 floppym Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python{2_5,2_6,2_7,3_2,3_3} pypy{1_9,2_0} )
+
+inherit distutils-r1
+
+MY_PN=${PN/p/P}
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="Python-based software project scripting tool along the lines of Make"
+HOMEPAGE="http://www.blueskyonmars.com/projects/paver/ http://pypi.python.org/pypi/Paver"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~x86"
+IUSE="test"
+
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )"
+
+S=${WORKDIR}/${MY_P}
+
+DOCS="README.rst"
+PATCHES=( "${FILESDIR}/${P}-skip-cog-tests.patch" )
+
+python_test() {
+ nosetests || die "Testing failed with ${EPYTHON}"
+}