summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2013-05-06 15:31:47 +0000
committerMatthew Thode <prometheanfire@gentoo.org>2013-05-06 15:31:47 +0000
commitd1503c8c48a2fac77c284a1e7c38a7ed79647f1b (patch)
tree2d87bc01f6df5de5f13d134507185bb95b29a67c /dev-python/hgtools
parentinitial import from sci overlay (diff)
downloadgentoo-2-d1503c8c48a2fac77c284a1e7c38a7ed79647f1b.tar.gz
gentoo-2-d1503c8c48a2fac77c284a1e7c38a7ed79647f1b.tar.bz2
gentoo-2-d1503c8c48a2fac77c284a1e7c38a7ed79647f1b.zip
fixing python 3.2 tests for bug 450666
(Portage version: 2.1.11.55/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3)
Diffstat (limited to 'dev-python/hgtools')
-rw-r--r--dev-python/hgtools/ChangeLog8
-rw-r--r--dev-python/hgtools/files/hgtools-doctest-2.0.2.patch11
-rw-r--r--dev-python/hgtools/hgtools-2.0.2-r1.ebuild31
3 files changed, 49 insertions, 1 deletions
diff --git a/dev-python/hgtools/ChangeLog b/dev-python/hgtools/ChangeLog
index 690d623b081f..400f9f7cfbc1 100644
--- a/dev-python/hgtools/ChangeLog
+++ b/dev-python/hgtools/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/hgtools
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/hgtools/ChangeLog,v 1.5 2013/01/06 23:07:24 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/hgtools/ChangeLog,v 1.6 2013/05/06 15:31:47 prometheanfire Exp $
+
+*hgtools-2.0.2-r1 (06 May 2013)
+
+ 06 May 2013; Matthew Thode <prometheanfire@gentoo.org>
+ +files/hgtools-doctest-2.0.2.patch, +hgtools-2.0.2-r1.ebuild:
+ fixing python 3.2 tests for bug 450666
06 Jan 2013; Michał Górny <mgorny@gentoo.org> hgtools-2.0.2.ebuild,
metadata.xml:
diff --git a/dev-python/hgtools/files/hgtools-doctest-2.0.2.patch b/dev-python/hgtools/files/hgtools-doctest-2.0.2.patch
new file mode 100644
index 000000000000..328e6eee54bd
--- /dev/null
+++ b/dev-python/hgtools/files/hgtools-doctest-2.0.2.patch
@@ -0,0 +1,11 @@
+--- hgtools-2.0.2/hgtools/versioning.py 2012-10-09 10:35:38.000000000 +0800
++++ hgtools-2.0.2.new/hgtools/versioning.py 2013-05-04 16:45:14.883913556 +0800
+@@ -60,7 +60,7 @@
+
+ def as_number(self):
+ """
+- >>> str(SummableVersion('1.9.3').as_number())
++ >>> str(round(SummableVersion('1.9.3').as_number(), 12))
+ '1.93'
+ """
+ def combine(subver, ver):
diff --git a/dev-python/hgtools/hgtools-2.0.2-r1.ebuild b/dev-python/hgtools/hgtools-2.0.2-r1.ebuild
new file mode 100644
index 000000000000..4b0f798c5208
--- /dev/null
+++ b/dev-python/hgtools/hgtools-2.0.2-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/hgtools/hgtools-2.0.2-r1.ebuild,v 1.1 2013/05/06 15:31:47 prometheanfire Exp $
+
+EAPI=5
+# python3.2+: bug #450666 (doctest failure)
+PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} pypy{1_9,2_0} )
+
+inherit distutils-r1 eutils
+
+DESCRIPTION="Classes and setuptools plugin for Mercurial repositories"
+HOMEPAGE="https://bitbucket.org/jaraco/hgtools/"
+SRC_URI="mirror://pypi/h/${PN}/${P}.zip"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE="test"
+
+DEPEND="app-arch/unzip
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+RDEPEND="dev-vcs/mercurial"
+
+src_prepare() {
+ epatch "${FILESDIR}/hgtools-doctest-2.0.2.patch"
+}
+
+python_test() {
+ py.test "${BUILD_DIR}"/lib test || die
+}