pylint/pylint.spec
2022-11-01 16:11:06 +08:00

111 lines
3.6 KiB
RPMSpec

Name: pylint
Version: 2.12.2
Release: 1
Summary: Analyzes Python code looking for bugs and signs of poor quality
License: GPLv2+
URL: http://www.pylint.org/
Source0: https://files.pythonhosted.org/packages/9d/6b/732db4470fb03760af3aada21189c95676c0ec514c3b044b42929e018224/pylint-2.12.2.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-toml
# For tests
BuildRequires: python3-astroid >= 2.0.2
BuildRequires: python3-isort
BuildRequires: python3-mccabe
BuildRequires: python3-pytest
BuildRequires: python3-pytest-runner
BuildRequires: python3-six
# For the main pylint package
Requires: python3-%{name} = %{version}-%{release}
%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.
%package -n python3-%{name}
Summary: %{summary}
Requires: python3-astroid >= 2.3.0
Requires: python3-setuptools
Requires: python3-mccabe
Requires: python3-isort
Obsoletes: python3-pylint-gui < 1.7
%{?python_provide:%python_provide python3-%{name}}
%description -n python3-%{name}
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
%autosetup -p1
%build
%py3_build
%install
%py3_install
rm -rf %{buildroot}%{python3_sitelib}/pylint/test
# Add -%%{python3_version} to the binaries and manpages for backwards compatibility
for NAME in epylint pylint pyreverse symilar; do
mv %{buildroot}%{_bindir}/{$NAME,${NAME}-%{python3_version}}
ln -s ${NAME}-%{python3_version} %{buildroot}%{_bindir}/${NAME}-3
ln -s ${NAME}-%{python3_version} %{buildroot}%{_bindir}/${NAME}
done
%files
%doc CONTRIBUTORS.txt
%license LICENSE
%{_bindir}/epylint
%{_bindir}/pylint
%{_bindir}/pyreverse
%{_bindir}/symilar
%files -n python3-%{name}
%license LICENSE
%{python3_sitelib}/pylint*
# backwards compatible versioned executables and manpages:
%{_bindir}/*-3
%{_bindir}/*-%{python3_version}
%changelog
* Feb Mov 01 2022 Ge Wang <wangge20@h-partners.com> - 2.12.2-1
- update to version 2.12.2
* Mon Jan 10 2022 wulei <wulei80@huawei.com> - 2.6.0-3
- lgnore some test cases
* Thu Oct 28 2021 xu_ping <xuping33@huawei.com> - 2.6.0-2
- add python3-six model to fix some testcase failed
* Mon Jul 19 2021 OpenStack_SIG <openstack@openeuler.org> - 2.6.0-1
- update to 2.6.0
* Wed Jun 24 2020 chengzihan <chengzihan2@huawei.com> - 2.4.4-0
- Package upgrade
* Fri Feb 28 2020 daiqianwen <daiqianwen@huawei.com> - 2.1.1-4
- modify spec
* Mon Feb 17 2020 daiqianwen <daiqianwen@huawei.com> - 2.1.1-3
- package init