summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Polatel <hawking@gentoo.org>2008-03-21 06:40:24 +0000
committerAli Polatel <hawking@gentoo.org>2008-03-21 06:40:24 +0000
commit3e3f8558c13a97da9dd3e08862d4c8845b575e80 (patch)
treec2837e98e77b9fdef8c67d1fbfee110850643528 /dev-python/pylint
parentVersion bump (diff)
downloadhistorical-3e3f8558c13a97da9dd3e08862d4c8845b575e80.tar.gz
historical-3e3f8558c13a97da9dd3e08862d4c8845b575e80.tar.bz2
historical-3e3f8558c13a97da9dd3e08862d4c8845b575e80.zip
Version bump. Added longdescription. Added myself as maintainer.
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'dev-python/pylint')
-rw-r--r--dev-python/pylint/ChangeLog12
-rw-r--r--dev-python/pylint/Manifest18
-rw-r--r--dev-python/pylint/files/pylint-0.14.0-tests-reset_cache.patch25
-rw-r--r--dev-python/pylint/files/pylint-0.14.0-tests-typo.patch5
-rw-r--r--dev-python/pylint/metadata.xml19
-rw-r--r--dev-python/pylint/pylint-0.14.0.ebuild79
6 files changed, 153 insertions, 5 deletions
diff --git a/dev-python/pylint/ChangeLog b/dev-python/pylint/ChangeLog
index 62f72b4d8860..959c00d29058 100644
--- a/dev-python/pylint/ChangeLog
+++ b/dev-python/pylint/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for dev-python/pylint
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pylint/ChangeLog,v 1.42 2007/07/11 14:58:46 pythonhead Exp $
+# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pylint/ChangeLog,v 1.43 2008/03/21 06:40:23 hawking Exp $
+
+*pylint-0.14.0 (21 Mar 2008)
+
+ 21 Mar 2008; Ali Polatel <hawking@gentoo.org>
+ +files/pylint-0.14.0-tests-reset_cache.patch,
+ +files/pylint-0.14.0-tests-typo.patch, metadata.xml,
+ +pylint-0.14.0.ebuild:
+ Version bump. Added longdescription. Added myself as maintainer.
11 Jul 2007; Rob Cakebread <pythonhead@gentoo.org> pylint-0.13.1.ebuild:
Removed test dep for egenix as its only needed for logilab-common
diff --git a/dev-python/pylint/Manifest b/dev-python/pylint/Manifest
index 56b99cdcae42..7c189222e755 100644
--- a/dev-python/pylint/Manifest
+++ b/dev-python/pylint/Manifest
@@ -1,7 +1,21 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX pylint-0.10.0-extra-gtk-disable.patch 280 RMD160 f6427e45b1397f6cacd95c03ce05ac49abbc497a SHA1 45901520fb453dc1b20ea697cda44be09f0e1ed3 SHA256 9be40e60cbb5835bab06ad6ec418ddec0c9b98b0385c109e57308dd191403000
AUX pylint-0.11.0-gui-no-tkinter.patch 381 RMD160 b533f5e137b4a3c12fff4c7644c1b3e5b3ffdedc SHA1 b9cfea551ee09ceb7bf4a976c2f3fd0c83273a83 SHA256 c4a45aadc0fcac494b0d92f67fa882ddab21a949ae52b490b3aa0670440f868f
AUX pylint-0.13.1-test-fixes.patch 1523 RMD160 ad2b41472a506dece2f2a492f75d3b896e37146a SHA1 1d5189f1f12dcdadeb5332b8ae1744c50ba0bb26 SHA256 2a3a7c06ac7e4c3179a8dfd3f8bc3493c09579a1b8dde0a0d00d5b9e10855fb5
+AUX pylint-0.14.0-tests-reset_cache.patch 869 RMD160 d550679534c1bbc39b44a9af5e834f4a84b200cd SHA1 ea7577a1e2705d2a8fd2db9aa37b0b138394dce8 SHA256 9fbc311ace92a14f0eeca17bb6cbdf902ec00e37b7452ccc5d5270d7fd1e3b89
+AUX pylint-0.14.0-tests-typo.patch 227 RMD160 bdf76718ba9ef791d0b7b5e10562eff45da26440 SHA1 1d7ac4f3b355282d2e2543a08f717fbbad94495f SHA256 9d8e4f32feeacd60b8264f42e1a70a34471499566b5184bba9f8bbd3c5701c0a
DIST pylint-0.13.1.tar.gz 178110 RMD160 e0f3e46131ff794e249d333c5736acc739e9ffa6 SHA1 9fdadd370b27089187bd8b592992e9d2b01aa6e2 SHA256 4d152c9f74a87a8e22e57aca71645a83e7393506b420a472eb09e2b83c0a6b43
+DIST pylint-0.14.0.tar.gz 182978 RMD160 d17dbe487963c35cf3f32410ad23082a8fa9982e SHA1 b0074cca2083792b5602f33d8e7be33a9ab4322f SHA256 a42b463fd31aba98f95b6336e4e1ef1a734cebe01fd20baeb1781d73182f8b31
EBUILD pylint-0.13.1.ebuild 2447 RMD160 964d2f8d38adcb07cf02a61e8b4ab0af857ccbee SHA1 1b4e9631f5b5462e18eb54e579bea1470fa484c2 SHA256 5bb24d550f453004551f26ca088d93d1bb1ea7fdef82f2af9c1306d205ad571a
-MISC ChangeLog 6620 RMD160 88b60f41f2e111a74bd31d0e18092bdc5b549942 SHA1 76d8297e6717a128fe633a0c7d81fa5281345a3c SHA256 1d8f5bddd5b8a46357c0d7d669491ad497ec81a75bb7d176fa8b6007c5141d66
-MISC metadata.xml 159 RMD160 900a8c55d7a7d2f6312594769aaf941bf9e99c7f SHA1 c8e604d56dae898258b5254d78cfeac0b981e288 SHA256 9f01104d3484792496faff4805eed0ecea2352a897151f3397d49a13800037b4
+EBUILD pylint-0.14.0.ebuild 2471 RMD160 d8110ff56bf945f025b7331a27905bc932b397f3 SHA1 c056abdaff895e19a84ed8746e3880ba0e42a963 SHA256 2e89569966535d5dfc0da7a2a9d6aaaa586ad418772de32e43f27e7155ef8ae6
+MISC ChangeLog 6891 RMD160 521cefde57c53e9bf0c6f0b92792a4cb01a6675e SHA1 f91fe3a1e67b4b186132b726c13f387f5156dc46 SHA256 0e13fc472838babbc09741dde2e4875f487ecabd6e06ba98aacea2ddeb545666
+MISC metadata.xml 939 RMD160 768bff9d0ca5c62db7ba3a3897cbb4766ba02a81 SHA1 9bd1a2704d53491938c83c32abfed1cd1f23de4e SHA256 b010a4a81127a7368a2ee60ccd2789093ad247139cac9e95e177533422b6e4f7
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.7 (GNU/Linux)
+
+iD8DBQFH41hBQU4yORhF8iARAgJrAKC3iD/p1n0/rcq/LrInqpUjeNNN9gCggyvG
+5lG5bvIWWzdSEl4rmBoDDYw=
+=IYi1
+-----END PGP SIGNATURE-----
diff --git a/dev-python/pylint/files/pylint-0.14.0-tests-reset_cache.patch b/dev-python/pylint/files/pylint-0.14.0-tests-reset_cache.patch
new file mode 100644
index 000000000000..521cb49348e0
--- /dev/null
+++ b/dev-python/pylint/files/pylint-0.14.0-tests-reset_cache.patch
@@ -0,0 +1,25 @@
+--- test/func_test.py 2007-03-09 10:51:45.000000000 +0200
++++ test/func_test.py 2008-03-21 08:09:44.043941833 +0200
+@@ -1,4 +1,4 @@
+-# Copyright (c) 2003-2007 LOGILAB S.A. (Paris, FRANCE).
++# Copyright (c) 2003-2008 LOGILAB S.A. (Paris, FRANCE).
+ # http://www.logilab.fr/ -- mailto:contact@logilab.fr
+ #
+ # This program is free software; you can redistribute it and/or modify it under
+@@ -26,6 +26,7 @@
+
+ from utils import get_tests_info, fix_path, TestReporter
+
++from logilab.astng import MANAGER
+ from pylint.lint import PyLinter
+ from pylint import checkers
+
+@@ -59,6 +60,8 @@
+ class LintTestUsingModule(testlib.TestCase):
+ package = 'input'
+ linter = linter
++ def setUp(self):
++ MANAGER.set_cache_size(200) # reset cache
+ def test_functionality(self):
+ tocheck = [self.package+'.'+self.module]
+ if self.depends:
diff --git a/dev-python/pylint/files/pylint-0.14.0-tests-typo.patch b/dev-python/pylint/files/pylint-0.14.0-tests-typo.patch
new file mode 100644
index 000000000000..3a7f4836c8b9
--- /dev/null
+++ b/dev-python/pylint/files/pylint-0.14.0-tests-typo.patch
@@ -0,0 +1,5 @@
+--- test/messages/func_w0702.txt 2006-05-07 00:31:55.000000000 +0300
++++ test/messages/func_w0702.txt 2008-03-21 08:09:44.138931778 +0200
+@@ -1 +1 @@
+-W: 10: No exception's type specified
++W: 10: No exception type(s) specified
diff --git a/dev-python/pylint/metadata.xml b/dev-python/pylint/metadata.xml
index de483c53568f..af19cd652e54 100644
--- a/dev-python/pylint/metadata.xml
+++ b/dev-python/pylint/metadata.xml
@@ -1,5 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>python</herd>
+ <herd>python</herd>
+ <maintainer>
+ <email>hawking@gentoo.org</email>
+ <name>Ali Polatel</name>
+ </maintainer>
+ <longdescription lang="en">
+ Pylint is a Python source code analyzer which looks for programming
+ errors, helps enforcing a coding standard and sniffs for some code
+ smells (as defined in Martin Fowler's Refactoring book).
+
+ Pylint can be seen as another PyChecker since nearly all tests you can
+ do with PyChecker can also be done with Pylint. However, Pylint offers
+ some more features, like checking length of lines of code, checking if
+ variable names are well-formed according to your coding standard, or
+ checking if declared interfaces are truly implemented, and much more.
+
+ Additionally, it is possible to write plugins to add your own checks.
+ </longdescription>
</pkgmetadata>
diff --git a/dev-python/pylint/pylint-0.14.0.ebuild b/dev-python/pylint/pylint-0.14.0.ebuild
new file mode 100644
index 000000000000..01911ee97a3b
--- /dev/null
+++ b/dev-python/pylint/pylint-0.14.0.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pylint/pylint-0.14.0.ebuild,v 1.1 2008/03/21 06:40:23 hawking Exp $
+
+inherit distutils eutils
+
+DESCRIPTION="PyLint is a tool to check if a Python module satisfies a coding standard"
+SRC_URI="ftp://ftp.logilab.org/pub/pylint/${P}.tar.gz"
+HOMEPAGE="http://www.logilab.org/projects/pylint/"
+
+IUSE="tk"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
+LICENSE="GPL-2"
+DEPEND="|| ( >=dev-python/optik-1.4 >=dev-lang/python-2.3 )
+ >=dev-python/logilab-common-0.21.0
+ >=dev-python/astng-0.17.0
+ tk? ( >=dev-lang/tk-8.4.9 )"
+
+DOCS="doc/*.txt"
+
+pkg_setup() {
+ if use tk && ! built_with_use dev-lang/python tk; then
+ eerror "You have USE='tk' enabled."
+ eerror "Python has not been compiled with tkinter support."
+ eerror "Please re-emerge python with the 'tk' USE-flag set."
+ die "Missing USE-flag for dev-lang/python"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Make the test that tries to import gtk a bit less strict
+ epatch "${FILESDIR}/${PN}-0.10.0-extra-gtk-disable.patch"
+
+ # Make pylint-gui print a gentoo-specific message if Tkinter is missing
+ epatch "${FILESDIR}/${PN}-0.11.0-gui-no-tkinter.patch"
+
+ # Upstream fixes for tests
+ epatch "${FILESDIR}/${P}-tests-typo.patch"
+ epatch "${FILESDIR}/${P}-tests-reset_cache.patch"
+}
+
+src_install() {
+ distutils_src_install
+ # do not install the test suite (we ran it from src_test already
+ # and it makes .py[co] generation very noisy because there are
+ # files with SyntaxErrors in there)
+ python_version
+ rm -rf "${D}"/usr/lib*/python${PYVER}/site-packages/pylint/test
+
+ doman man/pylint.1
+ dohtml doc/*.html
+}
+
+src_test() {
+ # The tests will not work properly from the source dir, so do a
+ # temporary install:
+ "${python}" setup.py install --home="${T}/test" || die "test copy failed"
+ # dir needs to be this or the tests fail
+ cd "${T}/test/lib/python/pylint/test"
+
+ # These fail, have not been able to track down why.
+ rm rpythoninput/func_unsupported_protocol.py || die "rm failed"
+ rm func_test_rpython.py || die "rm failed"
+ PYTHONPATH="${T}/test/lib/python" "${python}" runtests.py || \
+ die "tests failed"
+ cd "${S}"
+ rm -rf "${T}/test"
+}
+
+pkg_postinst() {
+ distutils_pkg_postinst
+ elog 'A couple of important configuration settings (like "disable-msg")'
+ elog 'moved from the "MASTER" to "MESSAGES CONTROL" section.'
+ elog 'See "pylint --help".'
+}