2020-02-26 16:57:16 +08:00
|
|
|
Name: pylint
|
2023-12-19 09:53:27 +08:00
|
|
|
Version: 3.0.3
|
2022-04-27 11:31:32 +08:00
|
|
|
Release: 1
|
2020-06-24 19:59:51 +08:00
|
|
|
Summary: Analyzes Python code looking for bugs and signs of poor quality
|
2020-02-26 16:57:16 +08:00
|
|
|
License: GPLv2+
|
2020-06-24 19:59:51 +08:00
|
|
|
URL: http://www.pylint.org/
|
2023-12-19 09:53:27 +08:00
|
|
|
Source0: https://github.com/pylint-dev/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
2020-02-26 16:57:16 +08:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
2020-06-24 19:59:51 +08:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
2021-07-19 16:59:41 +08:00
|
|
|
BuildRequires: python3-toml
|
2023-05-15 15:58:41 +08:00
|
|
|
BuildRequires: python3-pip
|
|
|
|
|
BuildRequires: python3-wheel
|
|
|
|
|
BuildRequires: python3-editables
|
|
|
|
|
BuildRequires: python3-hatch-vcs
|
|
|
|
|
BuildRequires: python3-hatchling
|
2020-06-24 19:59:51 +08:00
|
|
|
# For tests
|
2023-08-10 17:16:42 +08:00
|
|
|
BuildRequires: python3-astroid >= 2.15.5
|
2023-05-15 15:58:41 +08:00
|
|
|
BuildRequires: python3-dill
|
2020-06-24 19:59:51 +08:00
|
|
|
BuildRequires: python3-isort
|
|
|
|
|
BuildRequires: python3-mccabe
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
BuildRequires: python3-pytest-runner
|
2023-05-15 15:58:41 +08:00
|
|
|
BuildRequires: python3-tomlkit
|
2021-10-28 20:59:01 +08:00
|
|
|
BuildRequires: python3-six
|
2020-06-24 19:59:51 +08:00
|
|
|
|
|
|
|
|
# For the main pylint package
|
2020-02-26 16:57:16 +08:00
|
|
|
Requires: python3-%{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description
|
2020-06-24 19:59:51 +08:00
|
|
|
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.
|
2020-02-26 16:57:16 +08:00
|
|
|
|
|
|
|
|
%package -n python3-%{name}
|
2020-06-24 19:59:51 +08:00
|
|
|
Summary: %{summary}
|
2023-08-10 17:16:42 +08:00
|
|
|
Requires: python3-astroid >= 2.15.5
|
2023-05-15 15:58:41 +08:00
|
|
|
Requires: python3-dill
|
2020-06-24 19:59:51 +08:00
|
|
|
Requires: python3-setuptools
|
|
|
|
|
Requires: python3-mccabe
|
|
|
|
|
Requires: python3-isort
|
2023-05-15 15:58:41 +08:00
|
|
|
Requires: python3-tomlkit
|
2023-08-10 17:16:42 +08:00
|
|
|
Obsoletes: python3-pylint-gui
|
2020-06-24 19:59:51 +08:00
|
|
|
%{?python_provide:%python_provide python3-%{name}}
|
2020-02-26 16:57:16 +08:00
|
|
|
|
|
|
|
|
%description -n python3-%{name}
|
2020-06-24 19:59:51 +08:00
|
|
|
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.
|
2020-02-26 16:57:16 +08:00
|
|
|
|
|
|
|
|
%prep
|
2023-05-15 15:58:41 +08:00
|
|
|
%autosetup -p1 -n pylint-%{version}
|
2020-02-26 16:57:16 +08:00
|
|
|
|
|
|
|
|
%build
|
2023-05-15 15:58:41 +08:00
|
|
|
%pyproject_build
|
2020-02-26 16:57:16 +08:00
|
|
|
|
|
|
|
|
%install
|
2023-05-15 15:58:41 +08:00
|
|
|
%pyproject_install
|
2020-02-26 16:57:16 +08:00
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/pylint/test
|
|
|
|
|
|
2020-06-24 19:59:51 +08:00
|
|
|
# Add -%%{python3_version} to the binaries and manpages for backwards compatibility
|
2023-12-19 09:53:27 +08:00
|
|
|
for NAME in pylint pyreverse symilar; do
|
2020-02-26 16:57:16 +08:00
|
|
|
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
|
2022-04-27 11:31:32 +08:00
|
|
|
%doc CONTRIBUTORS.txt
|
|
|
|
|
%license LICENSE
|
2020-06-24 19:59:51 +08:00
|
|
|
%{_bindir}/pylint
|
2023-05-15 15:58:41 +08:00
|
|
|
%{_bindir}/pylint-config
|
2020-06-24 19:59:51 +08:00
|
|
|
%{_bindir}/pyreverse
|
|
|
|
|
%{_bindir}/symilar
|
2020-02-26 16:57:16 +08:00
|
|
|
|
|
|
|
|
%files -n python3-%{name}
|
2022-04-27 11:31:32 +08:00
|
|
|
%license LICENSE
|
2020-02-26 16:57:16 +08:00
|
|
|
%{python3_sitelib}/pylint*
|
2020-06-24 19:59:51 +08:00
|
|
|
# backwards compatible versioned executables and manpages:
|
|
|
|
|
%{_bindir}/*-3
|
|
|
|
|
%{_bindir}/*-%{python3_version}
|
2020-02-26 16:57:16 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2023-12-19 09:53:27 +08:00
|
|
|
* Tue Sep 19 2023 xu_ping <707078654@qq.com> - 3.0.3-1
|
|
|
|
|
- update to 3.0.3
|
|
|
|
|
|
2023-08-10 17:16:42 +08:00
|
|
|
* Wed Aug 9 2023 shangjiwei <cyrus_shang@163.com> - 2.17.5-1
|
|
|
|
|
- update to 2.17.5
|
|
|
|
|
|
2023-05-15 15:58:41 +08:00
|
|
|
* Mon May 15 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2.17.2-1
|
|
|
|
|
- update to 2.17.2
|
|
|
|
|
|
2022-04-27 11:31:32 +08:00
|
|
|
* Wed Apr 27 2022 caodongxia <caodongxia@h-partners.com> - 2.12.2-1
|
|
|
|
|
- update to 2.12.2
|
|
|
|
|
|
2021-10-28 20:59:01 +08:00
|
|
|
* Thu Oct 28 2021 xu_ping <xuping33@huawei.com> - 2.6.0-2
|
|
|
|
|
- add python3-six model to fix some testcase failed
|
|
|
|
|
|
2021-07-19 16:59:41 +08:00
|
|
|
* Mon Jul 19 2021 OpenStack_SIG <openstack@openeuler.org> - 2.6.0-1
|
|
|
|
|
- update to 2.6.0
|
|
|
|
|
|
2020-06-24 19:59:51 +08:00
|
|
|
* Wed Jun 24 2020 chengzihan <chengzihan2@huawei.com> - 2.4.4-0
|
|
|
|
|
- Package upgrade
|
|
|
|
|
|
2020-02-28 17:17:09 +08:00
|
|
|
* Fri Feb 28 2020 daiqianwen <daiqianwen@huawei.com> - 2.1.1-4
|
|
|
|
|
- modify spec
|
|
|
|
|
|
2020-02-26 16:57:16 +08:00
|
|
|
* Mon Feb 17 2020 daiqianwen <daiqianwen@huawei.com> - 2.1.1-3
|
|
|
|
|
- package init
|
2021-07-19 16:59:41 +08:00
|
|
|
|