14
0
forked from pool/python-pylint
Files
python-pylint/python-pylint.spec
Dirk Mueller 9c0029ba80 - update to 0.19.0 (bnc#555993):
* include James Lingard string format checker
   * include simple message (ids) listing by Vincent Férotin (#9791)
   * --errors-only does not hide fatal error anymore
   * include james Lingard patches for ++/-- and duplicate key in dicts
   * include James Lingard patches for function call arguments checker
   * improved flymake code and doc provided by Derek Harland
   * refactor and fix the imports checker
   * fix #18862: E0601 false positive with lambda functions
   * fix #8764: More than one statement on a single line false positive with
     try/except/finally
   * fix #9215: false undefined variable error in lambda function
   * fix for w0108 false positive (Nathaniel)
   * fix test/fulltest.sh
   * #5821 added a utility function to run pylint in another process (patch provide by Vincent Férotin)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=5
2009-12-18 20:20:17 +00:00

94 lines
2.9 KiB
RPMSpec
Raw Blame History

#
# spec file for package python-pylint (Version 0.18.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: python-pylint
BuildRequires: python-devel
Summary: Syntax and style checker for Python code
Version: 0.19.0
Release: 1
Source: pylint-%{version}.tar.bz2
License: GPL v2 or later
Group: Development/Languages/Python
Url: http://www.logilab.org/projects/pylint/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: python-logilab-common >= 0.19.0
Requires: python-logilab-astng >= 0.16.1
Provides: pylint = 0.16.0
Obsoletes: pylint <= 0.16.0
%{py_requires}
%if 0%suse_version > 1110
BuildArch: noarch
%define py_sitedir %python_sitelib
%endif
%description
Pylint analyzes Python source code looking for bugs and signs of poor
quality.
Pylint is a python tool that checks if a module satisfy a coding
standard. Pylint can be seen as another PyChecker since nearly all
tests you can do with PyChecker can also be done with Pylint. But
Pylint offers some more features, like checking line-code's length,
checking if variable names are well-formed according to your coding
standard, or checking if declared interfaces are truly implemented, and
much more (see the complete check list).
The big advantage with Pylint is that it is highly configurable,
customizable, and you can easily write a small plugin to add a personal
feature.
Please send any comment, patch or question to the python-projects
mailing-list. Before asking a question, please first search the
archives in case it would have already been answered. You may want to
use google and add "site:lists.logilab.org" to your keywords to narrow
your search. We will soon provide our own search engine.
Authors:
--------
Sylvain Th<EFBFBD>nault
%prep
%setup -q -n pylint-%{version}
#%patch
%build
python setup.py build
%install
#export PYTHONOPTIMIZE=1 #--optimize=1
python setup.py install --prefix=%{_prefix} --root="$RPM_BUILD_ROOT"
rm -rf $RPM_BUILD_ROOT/%{py_sitedir}/pylint/test/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc TODO README ChangeLog examples/ doc/
%{_bindir}/*
%{py_sitedir}/pylint
%if 0%suse_version > 1010
%{py_sitedir}/*egg-info
%endif
%changelog