Group :: Development/Python
RPM: pylint
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define name pylint
%define version 0.15.2
%define release alt1
%setup_python_module %name
Name: %name
Version: %version
Release: %release
Summary: Python code static checker
License: GPLv2+
Group: Development/Python
BuildArch: noarch
Url: http://www.logilab.org/project/name/pylint
Source: %name-%version.tar.gz
Packager: Andrey Rahmatullin <wrar at altlinux.ru>
%py_requires logilab.astng
%description
Pylint is a Python source code analyzer which looks for programming
errors, helps enforcing a coding standard and sniffs for some code
smells (as defined in Martin Fowler's Refactoring book)
Pylint can be seen as another PyChecker since nearly all tests you
can do with PyChecker can also be done with Pylint. However, Pylint
offers some more features, like checking length of lines of code,
checking if variable names are well-formed according to your coding
standard, or checking if declared interfaces are truly implemented,
and much more.
Additionally, it is possible to write plugins to add your own checks.
%prep
%setup -n %name-%version
%build
env CFLAGS="%optflags" %__python setup.py build
%install
%__python setup.py install --root=%buildroot --optimize=2 --record=INSTALLED_FILES
grep -v test/ INSTALLED_FILES > INSTALLED_FILES2
rm -rf %buildroot%python_sitelibdir/%name/test
%files -f INSTALLED_FILES2
%doc ChangeLog README TODO doc/
%changelog
…
Full changelog you can see here
%define version 0.15.2
%define release alt1
%setup_python_module %name
Name: %name
Version: %version
Release: %release
Summary: Python code static checker
License: GPLv2+
Group: Development/Python
BuildArch: noarch
Url: http://www.logilab.org/project/name/pylint
Source: %name-%version.tar.gz
Packager: Andrey Rahmatullin <wrar at altlinux.ru>
%py_requires logilab.astng
%description
Pylint is a Python source code analyzer which looks for programming
errors, helps enforcing a coding standard and sniffs for some code
smells (as defined in Martin Fowler's Refactoring book)
Pylint can be seen as another PyChecker since nearly all tests you
can do with PyChecker can also be done with Pylint. However, Pylint
offers some more features, like checking length of lines of code,
checking if variable names are well-formed according to your coding
standard, or checking if declared interfaces are truly implemented,
and much more.
Additionally, it is possible to write plugins to add your own checks.
%prep
%setup -n %name-%version
%build
env CFLAGS="%optflags" %__python setup.py build
%install
%__python setup.py install --root=%buildroot --optimize=2 --record=INSTALLED_FILES
grep -v test/ INSTALLED_FILES > INSTALLED_FILES2
rm -rf %buildroot%python_sitelibdir/%name/test
%files -f INSTALLED_FILES2
%doc ChangeLog README TODO doc/
%changelog
…
Full changelog you can see here