Hello community, here is the log from the commit of package python-pylint for openSUSE:Factory checked in at Fri Sep 3 15:23:24 CEST 2010. -------- --- python-pylint/python-pylint.changes 2010-06-07 19:23:25.000000000 +0200 +++ python-pylint/python-pylint.changes 2010-08-26 19:52:09.000000000 +0200 @@ -1,0 +2,8 @@ +Thu Aug 26 17:45:55 UTC 2010 - alexandre@exatati.com.br + +- Update to 0.21.2: + * fix #36193: import checker raise exception on cyclic import + * fix #28796: regression in --generated-members introduced pylint 0.20 + * some documentation cleanups + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- pylint-0.21.1.tar.bz2 New: ---- pylint-0.21.2.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pylint.spec ++++++ --- /var/tmp/diff_new_pack.sd2q7n/_old 2010-09-03 15:22:41.000000000 +0200 +++ /var/tmp/diff_new_pack.sd2q7n/_new 2010-09-03 15:22:41.000000000 +0200 @@ -1,5 +1,5 @@ # -# spec file for package python-pylint (Version 0.21.1) +# spec file for package python-pylint (Version 0.21.2) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -18,7 +18,7 @@ Name: python-pylint -Version: 0.21.1 +Version: 0.21.2 Release: 1 License: GPLv2+ Summary: Syntax and style checker for Python code @@ -28,8 +28,8 @@ BuildRequires: python-devel Requires: python-logilab-astng >= 0.20.0 Requires: python-logilab-common >= 0.49.0 -Provides: pylint = 0.16.0 -Obsoletes: pylint <= 0.16.0 +Provides: pylint = %{version} +Obsoletes: pylint <= %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build %{py_requires} %if 0%suse_version > 1110 ++++++ pylint-0.21.1.tar.bz2 -> pylint-0.21.2.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pylint-0.21.1/ChangeLog new/pylint-0.21.2/ChangeLog --- old/pylint-0.21.1/ChangeLog 2010-06-04 16:19:45.000000000 +0200 +++ new/pylint-0.21.2/ChangeLog 2010-08-26 10:13:00.000000000 +0200 @@ -1,8 +1,18 @@ ChangeLog for PyLint ==================== +2010-08-26 -- 0.21.2 + * fix #36193: import checker raise exception on cyclic import + + * fix #28796: regression in --generated-members introduced pylint 0.20 + + * some documentation cleanups + + + 2010-06-04 -- 0.21.1 - * fix #28962: pylint crash with new options, due to missing stats data while writing the Statistics by types report + * fix #28962: pylint crash with new options, due to missing stats data while + writing the Statistics by types report * updated man page to 0.21 or greater command line usage (fix debian #582494) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pylint-0.21.1/PKG-INFO new/pylint-0.21.2/PKG-INFO --- old/pylint-0.21.1/PKG-INFO 2010-06-07 13:05:43.000000000 +0200 +++ new/pylint-0.21.2/PKG-INFO 2010-08-26 11:34:24.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: pylint -Version: 0.21.1 +Version: 0.21.2 Summary: python code static checker Home-page: http://www.logilab.org/project/pylint Author: Logilab diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pylint-0.21.1/__pkginfo__.py new/pylint-0.21.2/__pkginfo__.py --- old/pylint-0.21.1/__pkginfo__.py 2010-06-04 16:19:45.000000000 +0200 +++ new/pylint-0.21.2/__pkginfo__.py 2010-08-26 10:06:33.000000000 +0200 @@ -18,21 +18,19 @@ modname = distname = 'pylint' -numversion = (0, 21, 1) +numversion = (0, 21, 2) version = '.'.join([str(num) for num in numversion]) +install_requires = ['logilab-common >= 0.50.1', + 'logilab-astng >= 0.20.1'] -install_requires = ['logilab-common >= 0.50.1', 'logilab-astng >= 0.20.1'] - -pyversions = ["2.3", "2.4", "2.5", '2.6'] # maybe 2.2 as well - -author = 'Logilab' -author_email = 'python-projects@lists.logilab.org' -mailinglist = "mailto://%s" % author_email +license = 'GPL' +description = "python code static checker" web = "http://www.logilab.org/project/%s" % distname ftp = "ftp://ftp.logilab.org/pub/%s" % modname -license = 'GPL' -copyright = 'Logilab S.A.' +mailinglist = "mailto://python-projects@lists.logilab.org" +author = 'Logilab' +author_email = 'python-projects@lists.logilab.org' classifiers = ['Development Status :: 4 - Beta', 'Environment :: Console', @@ -46,7 +44,6 @@ ] -description = "python code static checker" long_desc = """\ Pylint is a Python source code analyzer which looks for programming errors, helps enforcing a coding standard and sniffs for some code @@ -61,7 +58,9 @@ . Additionally, it is possible to write plugins to add your own checks.""" +pyversions = ["2.3", "2.4", "2.5", '2.6'] # maybe 2.2 as well + from os.path import join -scripts = [join('bin', filename) for filename in - ('pylint', 'pylint-gui', "symilar", "epylint", "pyreverse")] +scripts = [join('bin', filename) + for filename in ('pylint', 'pylint-gui', "symilar", "epylint", "pyreverse")] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pylint-0.21.1/checkers/imports.py new/pylint-0.21.2/checkers/imports.py --- old/pylint-0.21.1/checkers/imports.py 2010-06-04 16:19:45.000000000 +0200 +++ new/pylint-0.21.2/checkers/imports.py 2010-08-26 10:05:53.000000000 +0200 @@ -213,9 +213,9 @@ def close(self): """called before visiting project (i.e set of modules)""" # don't try to compute cycles if the associated message is disabled - if self.linter.is_message_enabled('RP0401'): + if self.linter.is_message_enabled('R0401'): for cycle in get_cycles(self.import_graph): - self.add_message('RP0401', args=' -> '.join(cycle)) + self.add_message('R0401', args=' -> '.join(cycle)) def visit_import(self, node): """triggered when an import statement is seen""" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pylint-0.21.1/checkers/typecheck.py new/pylint-0.21.2/checkers/typecheck.py --- old/pylint-0.21.1/checkers/typecheck.py 2010-05-11 12:31:23.000000000 +0200 +++ new/pylint-0.21.2/checkers/typecheck.py 2010-08-26 10:05:53.000000000 +0200 @@ -102,8 +102,9 @@ accessed.'} ), ) - def __init__(self, linter=None): - BaseChecker.__init__(self, linter) + + def open(self): + # do this in open since config not fully initialized in __init__ self.generated_members = list(self.config.generated_members) if self.config.zope: self.generated_members.extend(('REQUEST', 'acl_users', 'aq_parent')) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pylint-0.21.1/doc/FAQ.txt new/pylint-0.21.2/doc/FAQ.txt --- old/pylint-0.21.1/doc/FAQ.txt 2010-05-11 12:31:23.000000000 +0200 +++ new/pylint-0.21.2/doc/FAQ.txt 2010-08-26 10:05:53.000000000 +0200 @@ -233,6 +233,16 @@ # pylint: disable-msg=W0401, E0202 # pylint: enable-msg=C0302 +4.5 What is the format of the configuration file? +--------------------------------------------------- + +pylint uses ConfigParser from the standard library to parse the configuration file. +It means that if you need to disable a lot of messages, you can use tricks like: :: + + disable= W0401, # because I do not want it + E0202, # I have a good reason, trust me + C0302 # that's it + 5. Classes and Inheritance ========================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pylint-0.21.1/doc/flymake.txt new/pylint-0.21.2/doc/flymake.txt --- old/pylint-0.21.1/doc/flymake.txt 2009-08-27 11:37:52.000000000 +0200 +++ new/pylint-0.21.2/doc/flymake.txt 2010-08-26 10:05:53.000000000 +0200 @@ -37,6 +37,7 @@ ;; appear in the minibuffer (defun show-fly-err-at-point () "If the cursor is sitting on a flymake error, display the message in the minibuffer" + (require 'cl) (interactive) (let ((line-no (line-number-at-pos))) (dolist (elem flymake-err-info) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pylint-0.21.1/doc/manual.txt new/pylint-0.21.2/doc/manual.txt --- old/pylint-0.21.1/doc/manual.txt 2010-05-11 12:31:23.000000000 +0200 +++ new/pylint-0.21.2/doc/manual.txt 2010-08-26 10:05:53.000000000 +0200 @@ -76,7 +76,7 @@ deb ftp://ftp.logilab.org/pub/debian unstable/ -to your */etc/apt/sources.list* file. Pylint is also available in the +to your */etc/apt/sources.list* file. Pylint is also available in the standard Debian distribution (but add our public debian repository anyway if you want to get the latest releases and upgrades earlier) @@ -96,7 +96,7 @@ You'll have to install dependencies in a similar way. -Windows users may get valuable information about pylint installation on +Windows users may get valuable information about pylint installation on `this page`_. .. _`this page`: http://thinkhole.org/wp/2006/01/16/installing-pylint-on-windows/ @@ -156,11 +156,11 @@ installed version of a module instead of the development version. It is also possible to analyze python files, with a few -restriction. The thing to keep in mind is that pylint will try to +restriction. The thing to keep in mind is that pylint will try to convert the file name to a module name, and only be able to process the file if it succeeds. :: - pylint mymodule.py + pylint mymodule.py should always work since the current working directory is automatically added on top of the python path :: @@ -201,7 +201,7 @@ The default format for the output is raw text. But passing pylint the ``--output-format=html`` or ``-h y`` or ``-o html`` option will produce an HTML document. -There are several sections in pylint's output. +There are several sections in pylint's output. Source code analysis section '''''''''''''''''''''''''''' @@ -228,7 +228,7 @@ a caret pointing to the error. This may be generalized in future versions of pylint. -Example (extracted from a run of pylint on itself...): +Example (extracted from a run of pylint on itself...): :: @@ -245,22 +245,22 @@ Reports section -''''''''''''''' +''''''''''''''' Following the analysis message, pylint will display a set of reports, each one focusing on a particular aspect of the project, such as number of messages by categories, modules dependencies... For instance, the metrics report displays summaries gathered from the -current run. +current run. * the number of processed modules * for each module, the percentage of errors and warnings * the total number of errors and warnings * percentage of classes, functions and modules with docstrings, and - a comparison from the previous run + a comparison from the previous run * percentage of classes, functions and modules with correct name (according to the coding standard), and a comparison from the - previous run + previous run * a list of external dependencies found in the code, and where they appear Also, a global evaluation for the code is computed, and an @@ -272,7 +272,7 @@ Command line options -------------------- -First of all, we have two basic (but useful) options. +First of all, we have two basic (but useful) options. --version show program's version number and exit -h, --help show help about the command line options @@ -302,7 +302,7 @@ --zope Initialize Zope products before starting --ignore=file Add <file> (may be a directory) to the black - list. It should be a base name, not a path. + list. It should be a base name, not a path. You may set this option multiple times. --statistics=y_or_n Compute statistics on collected data. --persistent=y_or_n Pickle collected data for later comparisons. @@ -383,14 +383,14 @@ Use the python-projects@logilab.org mailing list for anything related to Pylint. This is in most cases better than sending an email directly to the author, since others will benefit from the exchange, and you'll -be more likely answered by someone subscribed to the list. This is a +be more likely answered by someone subscribed to the list. This is a moderated mailing list, so if you're not subscribed email you send will have to be validated first before actually being sent on the list. You can subscribe to this mailing list at http://lists.logilab.org/mailman/listinfo/python-projects -Archives are available at +Archives are available at http://lists.logilab.org/pipermail/python-projects/ If you prefer speaking french instead of english, you can use the @@ -400,7 +400,7 @@ * archives: http://lists.logilab.org/pipermail/forum-fr Notice though that this list has a very low traffic since most pylint related -discussions are done on the python-projects mailing list. +discussions are done on the python-projects mailing list. @@ -447,14 +447,14 @@ # no error print self.bla # pylint: disable-msg=E1101 # error - print self.blop + print self.blop def meth4(self): """test re-enabling""" # pylint: disable-msg=E1101 # no error print self.bla - print self.blop + print self.blop # pylint: enable-msg=E1101 # error print self.blip @@ -508,7 +508,7 @@ # pylint: disable-msg=E1101 # no error print self.bla - print self.blop + print self.blop @@ -549,7 +549,7 @@ visit_<lowered class name> leave_<lowered class name> methods for the nodes it's interested in. To get description of the different -classes used in an ast tree, look at the `compiler.ast documentation`. +classes used in an ast tree, look at the `compiler.ast documentation`. Checkers are ordered by priority. For each module, pylint's engine: 1. give the module source file as a stream to raw checkers @@ -590,13 +590,13 @@ Contribution Instructions -------------------------- -Got a patch for pylint? There a few steps you must take to make sure your +Got a patch for pylint? There a few steps you must take to make sure your patch gets accepted. * Test your code - * Pylint keeps a set of unit tests in the /test directory. To get your - patch accepted you must write (or change) a test input file and message - file in the appropriate input and messages folders. + * Pylint keeps a set of unit tests in the /test directory. To get your + patch accepted you must write (or change) a test input file and message + file in the appropriate input and messages folders. * In the test folder of pylint run ./fulltest.sh (python version), make sure all tests pass before submitting a patch * Create a diff file @@ -604,9 +604,9 @@ version control) :: hg diff > <yourname>.diff - + * E-mail the mailing list with your diff file - + Other information ================= @@ -617,13 +617,13 @@ * emacs (of course) * eric3 * eclipse (using the pydev_ plugin, see also - http://msdl.cs.mcgill.ca/MSDL/people/denis/meetings/pythonDev) + http://msdl.cs.mcgill.ca/MSDL/people/denis/meetings/pythonDev) To use pylint from within vim, see -http://www.gonzo.kiev.ua/projects/pylint.vim +http://www.vim.org/scripts/script.php?script_id=891 To use pylint from within komodo_, see -http://mateusz.loskot.net/2006/01/15/running-pylint-from-komodo/ +http://mateusz.loskot.net/2006/01/15/running-pylint-from-komodo/ To use pylint from within gedit_, see http://live.gnome.org/Gedit/PylintPlugin @@ -631,22 +631,26 @@ To use pylint from within WingIDE_, see http://www.wingware.com/doc/edit/pylint +Pylint is also integrated in spyder_, a matlab-like environnement. + .. _pydev: http://pydev.sourceforge.net .. _komodo: http://www.activestate.com/Products/Komodo/ .. _gedit: http://www.gnome.org/projects/gedit/ .. _WingIDE: http://www.wingware.com/ +.. _spyder: http://code.google.com/p/spyderlib/ + Some projects using Pylint -------------------------- The following projects are known to use pylint to help develop better -code: +code: * OSAF Chandler (http://www.osafoundation.org/) * Xen (http://www.xensource.com/) * CPS (http://www.nuxeo.org) * ERP5 (http://www.erp5.org/) * pyxmpp (http://pyxmpp.jabberstudio.org/) -* mercurial +* mercurial * eXe (http://exelearning.org/) * PrimaGIS (http://www.primagis.org) * python-cdd (https://projetos.ossystems.com.br/projects/python-cdd) @@ -655,8 +659,8 @@ * RunJob (http://projects.fnal.gov/runjob/) * Slugathon (http://slugathon.python-hosting.com/) * Topographica (http://topographica.org/Home/index.html) (at least they intend to do so) -* http://browsershots.org -* many more... +* http://browsershots.org +* many more... Also notice that the CheeseCake_ kwalitee reporting tool uses pylint to analyze the source code. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pylint-0.21.1/lint.py new/pylint-0.21.2/lint.py --- old/pylint-0.21.1/lint.py 2010-05-11 12:31:23.000000000 +0200 +++ new/pylint-0.21.2/lint.py 2010-08-26 10:05:53.000000000 +0200 @@ -208,9 +208,11 @@ {'type' : 'csv', 'metavar': '<msg ids>', 'short': 'd', 'group': 'Messages control', - 'help' : 'Disable the message, report, category or checker with the ' - 'given id(s). You can either give multiple identifier ' - 'separated by comma (,) or put this option multiple time.'}), + 'help' : 'Disable the message, report, category or checker ' + 'with the given id(s). You can either give multiple identifier' + ' separated by comma (,) or put this option multiple time ' + '(only on the command line, not in the configuration file ' + 'where it should appears only once).'}), ) option_groups = ( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pylint-0.21.1/pylint.egg-info/PKG-INFO new/pylint-0.21.2/pylint.egg-info/PKG-INFO --- old/pylint-0.21.1/pylint.egg-info/PKG-INFO 2010-06-07 13:05:41.000000000 +0200 +++ new/pylint-0.21.2/pylint.egg-info/PKG-INFO 2010-08-26 11:34:22.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: pylint -Version: 0.21.1 +Version: 0.21.2 Summary: python code static checker Home-page: http://www.logilab.org/project/pylint Author: Logilab diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pylint-0.21.1/test/input/func_interfaces.py new/pylint-0.21.2/test/input/func_interfaces.py --- old/pylint-0.21.1/test/input/func_interfaces.py 2010-05-11 12:31:23.000000000 +0200 +++ new/pylint-0.21.2/test/input/func_interfaces.py 2010-08-26 10:05:53.000000000 +0200 @@ -97,3 +97,18 @@ def besilent(self): """public method 2/2""" + + +class EmptyImplements: + """no pb""" + __implements__ = () + def __init__(self): + """only to make pylint happier""" + + def please(self): + """public method 1/2""" + + def besilent(self): + """public method 2/2""" + + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org