forked from pool/python-pylint
Accepting request 286614 from home:Nijel:branches:devel:languages:python
- Update to 1.4.1: * Look only in the current function's scope for bad-super-call. Closes issue #403. * Check the return of properties when checking for not-callable. Closes issue #406. * Warn about using the input() or round() built-ins for Python 3. Closes issue #411. * Proper abstract method lookup while checking for abstract-class-instantiated. Closes issue #401. * Use a mro traversal for finding abstract methods. Closes issue #415. * Fix a false positive with catching-non-exception and tuples of exceptions. * Fix a false negative with raising-non-exception, when the raise used an uninferrable exception context. * Fix a false positive on Python 2 for raising-bad-type, when raising tuples in the form 'raise (ZeroDivisionError, None)'. * Fix a false positive with invalid-slots-objects, where the slot entry was an unicode string on Python 2. Closes issue #421. * Add a new warning, 'redundant-unittest-assert', emitted when using unittest's methods assertTrue and assertFalse with constant value as argument. Patch by Vlad Temian. * Add a new JSON reporter, usable through -f flag. * Add the method names for the 'signature-differs' and 'argument-differs' warnings. Closes issue #433. * Don't compile test files when installing. * Fix a crash which occurred when using multiple jobs and the files given as argument didn't exist at all. OBS-URL: https://build.opensuse.org/request/show/286614 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=59
This commit is contained in:
committed by
Git OBS Bridge
parent
74b4f7bbbe
commit
f7265cea79
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:816646b9d5fd0c33f9e3b009953c46727d22bec3e880712d69b39b1b630fa3ca
|
|
||||||
size 331577
|
|
3
pylint-1.4.1.tar.gz
Normal file
3
pylint-1.4.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3e383060edd432cbbd0e8bd686f5facfe918047ffe1bb401ab5897cb6ee0f030
|
||||||
|
size 338636
|
@@ -1,22 +0,0 @@
|
|||||||
# HG changeset patch
|
|
||||||
# User Pedro Algarvio <pedro@algarvio.me>
|
|
||||||
# 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)
|
|
@@ -1,3 +1,34 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 18 12:11:39 UTC 2015 - mcihar@suse.cz
|
||||||
|
|
||||||
|
- Update to 1.4.1:
|
||||||
|
* Look only in the current function's scope for bad-super-call.
|
||||||
|
Closes issue #403.
|
||||||
|
* Check the return of properties when checking for not-callable.
|
||||||
|
Closes issue #406.
|
||||||
|
* Warn about using the input() or round() built-ins for Python 3.
|
||||||
|
Closes issue #411.
|
||||||
|
* Proper abstract method lookup while checking for
|
||||||
|
abstract-class-instantiated. Closes issue #401.
|
||||||
|
* Use a mro traversal for finding abstract methods. Closes issue #415.
|
||||||
|
* Fix a false positive with catching-non-exception and tuples of
|
||||||
|
exceptions.
|
||||||
|
* Fix a false negative with raising-non-exception, when the raise used
|
||||||
|
an uninferrable exception context.
|
||||||
|
* Fix a false positive on Python 2 for raising-bad-type, when
|
||||||
|
raising tuples in the form 'raise (ZeroDivisionError, None)'.
|
||||||
|
* Fix a false positive with invalid-slots-objects, where the slot entry
|
||||||
|
was an unicode string on Python 2. Closes issue #421.
|
||||||
|
* Add a new warning, 'redundant-unittest-assert', emitted when using
|
||||||
|
unittest's methods assertTrue and assertFalse with constant value
|
||||||
|
as argument. Patch by Vlad Temian.
|
||||||
|
* Add a new JSON reporter, usable through -f flag.
|
||||||
|
* Add the method names for the 'signature-differs' and 'argument-differs'
|
||||||
|
warnings. Closes issue #433.
|
||||||
|
* Don't compile test files when installing.
|
||||||
|
* Fix a crash which occurred when using multiple jobs and the files
|
||||||
|
given as argument didn't exist at all.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Dec 8 10:08:10 UTC 2014 - mcihar@suse.cz
|
Mon Dec 8 10:08:10 UTC 2014 - mcihar@suse.cz
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pylint
|
# spec file for package python-pylint
|
||||||
#
|
#
|
||||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -18,15 +18,13 @@
|
|||||||
|
|
||||||
%define modname pylint
|
%define modname pylint
|
||||||
Name: python-%{modname}
|
Name: python-%{modname}
|
||||||
Version: 1.4.0
|
Version: 1.4.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Syntax and style checker for Python code
|
Summary: Syntax and style checker for Python code
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://www.logilab.org/projects/pylint/
|
Url: http://www.logilab.org/projects/pylint/
|
||||||
Source: https://pypi.python.org/packages/source/p/pylint/pylint-%{version}.tar.gz
|
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-astroid >= 1.2.0
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: python-logilab-common >= 0.55
|
BuildRequires: python-logilab-common >= 0.55
|
||||||
@@ -63,7 +61,6 @@ feature.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{modname}-%{version}
|
%setup -q -n %{modname}-%{version}
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
python setup.py build
|
||||||
|
Reference in New Issue
Block a user