From 74b4f7bbbe2d0eaed38146fab23b5cc936e8cdee3d4be366f4162057566c6e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 8 Dec 2014 10:30:09 +0000 Subject: [PATCH] Accepting request 264382 from home:Nijel:branches:devel:languages:python - Lower tk dependency to Recommends as it's only needed for optional GUI - Update to 1.4.0: * Added new options for controlling the loading of C extensions. By default, only C extensions from the stdlib will be loaded into the active Python interpreter for inspection, because they can run arbitrary code on import. The option `--extension-pkg-whitelist` can be used to specify modules or packages that are safe to load. * Change default max-line-length to 100 rather than 80 * Drop BaseRawChecker class which were only there for backward compat for a while now * Don't try to analyze string formatting with objects coming from function arguments. Closes issue #373. * Port source code to be Python 2/3 compatible. This drops the need for 2to3, but does drop support for Python 2.5. * Each message now comes with a confidence level attached, and can be filtered base on this level. This allows to filter out all messages that were emitted even though an inference failure happened during checking. * Improved presenting unused-import message. Closes issue #293. * Add new checker for finding spelling errors. New messages: wrong-spelling-in-comment, wrong-spelling-in-docstring. New options: spelling-dict, spelling-ignore-words. * Add new '-j' option for running checks in sub-processes. * Added new checks for line endings if they are mixed (LF vs CRLF) or if they are not as expected. New messages: mixed-line-endings, unexpected-line-ending-format. New option: expected-line-ending-format. * 'dangerous-default-value' no longer evaluates the value of the arguments, which could result in long error messages or sensitive data being leaked. OBS-URL: https://build.opensuse.org/request/show/264382 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=58 --- pylint-1.3.1.zip | 3 -- pylint-1.4.0.tar.gz | 3 ++ ...2d72bfc2410665579823cb308fa64c471867b.diff | 22 +++++++++ python-pylint.changes | 47 +++++++++++++++++++ python-pylint.spec | 10 ++-- 5 files changed, 78 insertions(+), 7 deletions(-) delete mode 100644 pylint-1.3.1.zip create mode 100644 pylint-1.4.0.tar.gz create mode 100644 pylint-1cf2d72bfc2410665579823cb308fa64c471867b.diff diff --git a/pylint-1.3.1.zip b/pylint-1.3.1.zip deleted file mode 100644 index 5669302..0000000 --- a/pylint-1.3.1.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aff686868c2f557fa68c97c164f60bca88cdc2d56c0ca189370c30307a378b8d -size 471013 diff --git a/pylint-1.4.0.tar.gz b/pylint-1.4.0.tar.gz new file mode 100644 index 0000000..18965e3 --- /dev/null +++ b/pylint-1.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:816646b9d5fd0c33f9e3b009953c46727d22bec3e880712d69b39b1b630fa3ca +size 331577 diff --git a/pylint-1cf2d72bfc2410665579823cb308fa64c471867b.diff b/pylint-1cf2d72bfc2410665579823cb308fa64c471867b.diff new file mode 100644 index 0000000..d4c6ed7 --- /dev/null +++ b/pylint-1cf2d72bfc2410665579823cb308fa64c471867b.diff @@ -0,0 +1,22 @@ +# HG changeset patch +# User Pedro Algarvio +# Date 1417201785 0 +# Branch hotfix/py26-compat +# Node ID 1cf2d72bfc2410665579823cb308fa64c471867b +# Parent f9bbf45c2bd5b08d2836c5a6da8d430e404cb135 +New style tuple syntax is only supported on Python >= 2.7 + +diff --git a/setup.py b/setup.py +--- a/setup.py ++++ b/setup.py +@@ -120,8 +120,8 @@ + for directory in include_dirs: + dest = join(self.install_dir, base, directory) + if sys.version_info >= (3, 0): +- exclude = {'invalid_encoded_data*', +- 'unknown_encoding*'} ++ exclude = set(['invalid_encoded_data*', ++ 'unknown_encoding*']) + else: + exclude = set() + shutil.rmtree(dest, ignore_errors=True) diff --git a/python-pylint.changes b/python-pylint.changes index e88d189..e2b4b9e 100644 --- a/python-pylint.changes +++ b/python-pylint.changes @@ -1,3 +1,50 @@ +------------------------------------------------------------------- +Mon Dec 8 10:08:10 UTC 2014 - mcihar@suse.cz + +- Lower tk dependency to Recommends as it's only needed for optional GUI + +------------------------------------------------------------------- +Mon Dec 8 10:06:19 UTC 2014 - mcihar@suse.cz + +- Update to 1.4.0: + * Added new options for controlling the loading of C extensions. + By default, only C extensions from the stdlib will be loaded + into the active Python interpreter for inspection, because they + can run arbitrary code on import. The option + `--extension-pkg-whitelist` can be used to specify modules + or packages that are safe to load. + * Change default max-line-length to 100 rather than 80 + * Drop BaseRawChecker class which were only there for backward + compat for a while now + * Don't try to analyze string formatting with objects coming from + function arguments. Closes issue #373. + * Port source code to be Python 2/3 compatible. This drops the + need for 2to3, but does drop support for Python 2.5. + * Each message now comes with a confidence level attached, and + can be filtered base on this level. This allows to filter out + all messages that were emitted even though an inference failure + happened during checking. + * Improved presenting unused-import message. Closes issue #293. + * Add new checker for finding spelling errors. New messages: + wrong-spelling-in-comment, wrong-spelling-in-docstring. + New options: spelling-dict, spelling-ignore-words. + * Add new '-j' option for running checks in sub-processes. + * Added new checks for line endings if they are mixed (LF vs CRLF) + or if they are not as expected. New messages: mixed-line-endings, + unexpected-line-ending-format. New option: expected-line-ending-format. + * 'dangerous-default-value' no longer evaluates the value of the arguments, + which could result in long error messages or sensitive data being leaked. + Closes issue #282 + * Fix a false positive with string formatting checker, when + encountering a string which uses only position-based arguments. + Closes issue #285. + * Fix a false positive with string formatting checker, when using + keyword argument packing. Closes issue #288. + * Proper handle class level scope for lambdas. + * Handle 'too-few-format-args' or 'too-many-format-args' for format + strings with both named and positional fields. Closes issue #286. +- Switched to tar.gz upstream + ------------------------------------------------------------------- Tue Nov 4 16:16:09 UTC 2014 - mcihar@suse.cz diff --git a/python-pylint.spec b/python-pylint.spec index d4eb78b..0514439 100644 --- a/python-pylint.spec +++ b/python-pylint.spec @@ -18,21 +18,22 @@ %define modname pylint Name: python-%{modname} -Version: 1.3.1 +Version: 1.4.0 Release: 0 Summary: Syntax and style checker for Python code License: GPL-2.0+ Group: Development/Languages/Python Url: http://www.logilab.org/projects/pylint/ -Source: https://pypi.python.org/packages/source/p/pylint/pylint-%{version}.zip +Source: https://pypi.python.org/packages/source/p/pylint/pylint-%{version}.tar.gz +# PATCH-FIX-UPSTREAM pylint-1cf2d72bfc2410665579823cb308fa64c471867b.diff -- Python 2.6 compatibility +Patch0: pylint-1cf2d72bfc2410665579823cb308fa64c471867b.diff BuildRequires: python-astroid >= 1.2.0 BuildRequires: python-devel BuildRequires: python-logilab-common >= 0.55 BuildRequires: python-tk -BuildRequires: unzip Requires: python-astroid >= 1.2.0 Requires: python-logilab-common >= 0.55 -Requires: python-tk +Recommends: python-tk Provides: pylint = %{version} Obsoletes: pylint < %{version} Requires(post): update-alternatives @@ -62,6 +63,7 @@ feature. %prep %setup -q -n %{modname}-%{version} +%patch0 -p1 %build python setup.py build