14
0
forked from pool/python-pylint

Accepting request 353383 from home:TheBlackCat:branches:devel:languages:python

Update to version 1.5.3

OBS-URL: https://build.opensuse.org/request/show/353383
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=63
This commit is contained in:
Todd R
2016-01-13 10:21:11 +00:00
committed by Git OBS Bridge
parent d02d259c2e
commit 034dc6cf30
4 changed files with 104 additions and 50 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0561af4d6bd4fa9e8e02f3997fe93684f7187c57bcef9db8c2ea9fb0d7d2f022
size 342461

3
pylint-1.5.3.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c0a5d4123873455292d1e360cceb1ee8527edb74783ddb4882cf22a2de86be76
size 422412

View File

@@ -1,3 +1,65 @@
-------------------------------------------------------------------
Wed Jan 13 10:15:52 UTC 2016 - toddrme2178@gmail.com
- Update to version 1.5.3:
* Handle the import fallback idiom with regard to wrong-import-order.
Closes issue #750.
* Decouple the displaying of reports from the displaying of messages
Some reporters are aggregating the messages instead of displaying
them when they are available. The actual displaying was conflatted
in the generate_reports. Unfortunately this behaviour was flaky
and in the case of the JSON reporter, the messages weren't shown
at all if a file had syntax errors or if it was missing.
In order to fix this, the aggregated messages can now be
displayed with Reporter.display_message, while the reports are
displayed with display_reports.
Closes issues #766 and #765.
* Ignore function calls with variadic arguments without a context.
Inferring variadic positional arguments and keyword arguments
will result into empty Tuples and Dicts, which can lead in
some cases to false positives with regard to no-value-for-parameter.
In order to avoid this, until we'll have support for call context
propagation, we're ignoring such cases if detected.
Closes issue #722.
* Treat AsyncFunctionDef just like FunctionDef nodes,
by implementing visit_asyncfunctiondef in terms of
visit_functiondef.
Closes issue #767.
* Take in account kwonlyargs when verifying that arguments
are defined with the check_docs extension.
Closes issue #745.
* Suppress reporting 'unneeded-not' inside `__ne__` methods
Closes issue #749.
- update to version 1.5.2:
* Don't crash if graphviz is not installed, instead emit a warning
letting the user to know. Closes issue #168.
* Accept only functions and methods for the deprecated-method
checker. This prevents a crash which can occur when an object
doesn't have .qname() method after the inference.
* Don't emit super-on-old-class on classes with unknown bases.
Closes issue #721.
* Allow statements in `if` or `try` blocks containing imports.
Closes issue #714.
- update to version 1.5.1:
* Fix a crash which occurred when old visit methods are encountered
in plugin modules. Closes issue #711.
* Add wrong-import-position to check_messages's decorator arguments
for ImportChecker.leave_module This fixes an esoteric bug which
occurs when ungrouped-imports and wrong-import-order are disabled
and pylint is executed on multiple files. What happens is that
without wrong-import-position in check_messages, leave_module will
never be called, which means that the first non-import node from
other files might leak into the current file, leading to
wrong-import-position being emitted by pylint.
* Fix a crash which occurred when old visit methods are encountered
in plugin modules. Closes issue #711.
* Don't emit import-self and cyclic-import for relative imports of
modules with the same name as the package itself. Closes issues
#708 and #706.
- update to version 1.5.0:
* long list of changes, see Changelog file for details
- Cleanup update-alternatives
-------------------------------------------------------------------
Wed Sep 2 14:16:15 UTC 2015 - mcihar@suse.cz

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pylint
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,22 +16,20 @@
#
%define modname pylint
Name: python-%{modname}
Version: 1.4.4
Name: python-pylint
Version: 1.5.3
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/
Url: https://github.com/pycqa/pylint
Source: https://pypi.python.org/packages/source/p/pylint/pylint-%{version}.tar.gz
BuildRequires: python-astroid >= 1.2.0
BuildRequires: python-devel
BuildRequires: python-logilab-common >= 0.55
BuildRequires: python-astroid
BuildRequires: python-six
BuildRequires: python-tk
Requires: python-astroid >= 1.2.0
Requires: python-logilab-common >= 0.55
Recommends: python-tk
Requires: python-astroid
Requires: python-six
Requires: python-tk
Provides: pylint = %{version}
Obsoletes: pylint < %{version}
Requires(post): update-alternatives
@@ -60,65 +58,59 @@ customizable, and you can easily write a small plugin to add a personal
feature.
%prep
%setup -q -n %{modname}-%{version}
%setup -q -n pylint-%{version}
%build
python setup.py build
%install
#export PYTHONOPTIMIZE=1 #--optimize=1
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# fix non-executable rpmlint warning
chmod +x %{buildroot}%{python_sitelib}/%{modname}/epylint.py
# update-alternatives
mv %{buildroot}%{_bindir}/pylint %{buildroot}%{_bindir}/pylint-%{py_ver}
mv %{buildroot}%{_bindir}/epylint %{buildroot}%{_bindir}/epylint-%{py_ver}
mv %{buildroot}%{_bindir}/pylint-gui %{buildroot}%{_bindir}/pylint-gui-%{py_ver}
mv %{buildroot}%{_bindir}/pyreverse %{buildroot}%{_bindir}/pyreverse-%{py_ver}
mv %{buildroot}%{_bindir}/symilar %{buildroot}%{_bindir}/symilar-%{py_ver}
ln -s %{_bindir}/pylint-%{py_ver} %{buildroot}%{_bindir}/pylint
ln -s %{_bindir}/epylint-%{py_ver} %{buildroot}%{_bindir}/epylint
ln -s %{_bindir}/pylint-gui-%{py_ver} %{buildroot}%{_bindir}/pylint-gui
ln -s %{_bindir}/pyreverse-%{py_ver} %{buildroot}%{_bindir}/pyreverse
ln -s %{_bindir}/symilar-%{py_ver} %{buildroot}%{_bindir}/symilar
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --no-compile
%pre
# Since /usr/bin/pylint, etc. became ghosted to be used with update-alternatives, we have to get rid
# of the old binary resulting from the non-update-alternativies-ified package:
[[ ! -L %{_bindir}/pylint ]] && rm -f %{_bindir}/pylint
[[ ! -L %{_bindir}/epylint ]] && rm -f %{_bindir}/epylint
[[ ! -L %{_bindir}/pylint-gui ]] && rm -f %{_bindir}/pylint-gui
[[ ! -L %{_bindir}/pyreverse ]] && rm -f %{_bindir}/pyreverse
[[ ! -L %{_bindir}/symilar ]] && rm -f %{_bindir}/symilar
exit 0
# fix non-executable rpmlint warning
chmod +x %{buildroot}%{python_sitelib}/pylint/epylint.py
# Prepare for update-alternatives usage
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for p in pylint epylint pylint-gui pyreverse symilar ; do
mv %{buildroot}%{_bindir}/$p %{buildroot}%{_bindir}/$p-%{py_ver}
ln -s -f %{_sysconfdir}/alternatives/$p %{buildroot}%{_bindir}/$p
# create a dummy target for /etc/alternatives/$p
touch %{buildroot}%{_sysconfdir}/alternatives/$p
done
%post
update-alternatives \
%_sbindir/update-alternatives \
--install %{_bindir}/pylint pylint %{_bindir}/pylint-%{py_ver} 30 \
--slave %{_bindir}/epylint epylint %{_bindir}/epylint-%{py_ver} \
--slave %{_bindir}/pylint-gui pylint-gui %{_bindir}/pylint-gui-%{py_ver} \
--slave %{_bindir}/pyreverse pyreverse %{_bindir}/pyreverse-%{py_ver} \
--slave %{_bindir}/symilar symilar %{_bindir}/symilar-%{py_ver}
%preun
%postun
if [ $1 -eq 0 ] ; then
update-alternatives --remove pylint %{_bindir}/pylint-%{py_ver}
%_sbindir/update-alternatives --remove pylint %{_bindir}/pylint-%{py_ver}
fi
%files
%defattr(-,root,root)
%doc ChangeLog COPYING README examples/
%doc ChangeLog COPYING README.rst
%doc examples/
%{_bindir}/pylint
%{_bindir}/epylint
%{_bindir}/pylint-gui
%{_bindir}/pyreverse
%{_bindir}/symilar
%{_bindir}/pylint-%{py_ver}
%{_bindir}/epylint-%{py_ver}
%{_bindir}/pylint-gui-%{py_ver}
%{_bindir}/pyreverse-%{py_ver}
%{_bindir}/symilar-%{py_ver}
%ghost %{_bindir}/pylint
%ghost %{_bindir}/epylint
%ghost %{_bindir}/pylint-gui
%ghost %{_bindir}/pyreverse
%ghost %{_bindir}/symilar
%{python_sitelib}/%{modname}/
%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info
%ghost %{_sysconfdir}/alternatives/pylint
%ghost %{_sysconfdir}/alternatives/epylint
%ghost %{_sysconfdir}/alternatives/pylint-gui
%ghost %{_sysconfdir}/alternatives/pyreverse
%ghost %{_sysconfdir}/alternatives/symilar
%{python_sitelib}/pylint/
%{python_sitelib}/pylint-%{version}-py*.egg-info
%changelog