summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <idella4@gentoo.org>2013-01-07 07:30:38 +0000
committerIan Delaney <idella4@gentoo.org>2013-01-07 07:30:38 +0000
commitdb759753ad77824dda750a7c8afb5fbe2a7cf84d (patch)
tree6b1853c6886daa24d22cde9c6d140390c8bd34ec /dev-python/pylint
parentcommitting manifests (diff)
downloadgentoo-2-db759753ad77824dda750a7c8afb5fbe2a7cf84d.tar.gz
gentoo-2-db759753ad77824dda750a7c8afb5fbe2a7cf84d.tar.bz2
gentoo-2-db759753ad77824dda750a7c8afb5fbe2a7cf84d.zip
EAPI to 4, restricted pypy subsequent to test failures, added gtktest.patch skipping over 1 new test which otherwise needs full virtualx to pass, fixes Bug #44952 by flameeyes
(Portage version: 2.1.11.30/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python/pylint')
-rw-r--r--dev-python/pylint/ChangeLog8
-rw-r--r--dev-python/pylint/files/pylint-0.26.0-gtktest.patch32
-rw-r--r--dev-python/pylint/pylint-0.26.0.ebuild13
3 files changed, 48 insertions, 5 deletions
diff --git a/dev-python/pylint/ChangeLog b/dev-python/pylint/ChangeLog
index 75788de245b8..3d6ca5706e6d 100644
--- a/dev-python/pylint/ChangeLog
+++ b/dev-python/pylint/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/pylint
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pylint/ChangeLog,v 1.91 2013/01/01 14:15:38 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pylint/ChangeLog,v 1.92 2013/01/07 07:30:38 idella4 Exp $
+
+ 07 Jan 2013; Ian Delaney <idella4@gentoo.org>
+ +files/pylint-0.26.0-gtktest.patch, pylint-0.26.0.ebuild:
+ EAPI to 4, restricted pypy subsequent to test failures, added gtktest.patch
+ skipping over 1 new test which otherwise needs full virtualx to pass, fixes
+ Bug #44952 by flameeyes
01 Jan 2013; Agostino Sarubbo <ago@gentoo.org> pylint-0.26.0.ebuild:
Add ~alpha, wrt bug #449220
diff --git a/dev-python/pylint/files/pylint-0.26.0-gtktest.patch b/dev-python/pylint/files/pylint-0.26.0-gtktest.patch
new file mode 100644
index 000000000000..c7e8ca39e621
--- /dev/null
+++ b/dev-python/pylint/files/pylint-0.26.0-gtktest.patch
@@ -0,0 +1,32 @@
+test_gtk_import can't connect to an X, decided by consensus to skip due to onerous
+overhead required by virtualx eclass to see it pass.
+diff -ur pylint-0.26.0.orig/test/test_regr.py pylint-0.26.0/test/test_regr.py
+--- test/test_regr.py 2012-07-18 14:34:04.000000000 +0800
++++ test/test_regr.py 2013-01-08 06:11:08.846289350 +0800
+@@ -75,16 +75,16 @@
+ sys.path.pop(0)
+ os.chdir(cwd)
+
+- def test_gtk_import(self):
+- try:
+- import gtk
+- except ImportError:
+- self.skipTest('test skipped: gtk is not available')
+- except RuntimeError: # RuntimeError when missing display
+- self.skipTest('no display, can\'t run this test')
+- linter.check(join(REGR_DATA, 'pygtk_import.py'))
+- got = linter.reporter.finalize().strip()
+- self.assertEqual(got, '')
++# def test_gtk_import(self):
++# try:
++# import gtk
++# except ImportError:
++# self.skipTest('test skipped: gtk is not available')
++# except RuntimeError: # RuntimeError when missing display
++# self.skipTest('no display, can\'t run this test')
++# linter.check(join(REGR_DATA, 'pygtk_import.py'))
++# got = linter.reporter.finalize().strip()
++# self.assertEqual(got, '')
+
+ def test_numarray_inference(self):
+ try:
diff --git a/dev-python/pylint/pylint-0.26.0.ebuild b/dev-python/pylint/pylint-0.26.0.ebuild
index 5e33327ca5a6..ffcdab801750 100644
--- a/dev-python/pylint/pylint-0.26.0.ebuild
+++ b/dev-python/pylint/pylint-0.26.0.ebuild
@@ -1,13 +1,13 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pylint/pylint-0.26.0.ebuild,v 1.3 2013/01/01 14:15:38 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pylint/pylint-0.26.0.ebuild,v 1.4 2013/01/07 07:30:38 idella4 Exp $
-EAPI="3"
+EAPI="4"
PYTHON_DEPEND="*:2.5"
SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="2.4"
+RESTRICT_PYTHON_ABIS="2.7-pypy-*"
-inherit distutils
+inherit distutils eutils
DESCRIPTION="Python code static checker"
HOMEPAGE="http://www.logilab.org/project/pylint http://pypi.python.org/pypi/pylint"
@@ -27,6 +27,11 @@ DEPEND="${RDEPEND}
DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
DOCS="doc/*.txt"
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gtktest.patch
+ distutils_src_prepare
+}
+
src_test() {
testing() {
# Test suite broken with Python 3.