Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
e7dfc2a140
!26 Fix "similar -d args" not recognized
From: @wk333 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2024-01-04 02:47:19 +00:00
wk333
20199dd508 Fix "similar -d args" not recognized 2024-01-03 16:12:38 +08:00
openeuler-ci-bot
1ae91407a5
!25 Upgrade version to 3.0.3
From: @cherry530 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-12-19 08:18:36 +00:00
cherry530
c7c0b91097 Upgrade version to 3.0.3
Signed-off-by: cherry530 <707078654@qq.com>
2023-12-19 10:29:33 +08:00
openeuler-ci-bot
54280a88ad
!24 update to version 2.17.5
From: @lakers1023 
Reviewed-by: @cherry530, @caodongxia 
Signed-off-by: @caodongxia, @cherry530
2023-10-24 03:06:07 +00:00
cyrus.shang
df3fbcf8e3 update to 2.17.5 2023-10-24 10:23:15 +08:00
openeuler-ci-bot
71de995365
!23 update to version 2.17.2
From: @desert-sailor 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-05-23 01:39:59 +00:00
desert-sailor
07932e044c update to version 2.17.2 2023-05-22 10:37:23 +08:00
openeuler-ci-bot
7e14f9a884
!13 update to 2.12.2
From: @caodongxia 
Reviewed-by: @zhuchunyi 
Signed-off-by: @zhuchunyi
2022-05-05 03:13:53 +00:00
caodongxia
69d00e5f71 update to 2.12.2 2022-04-27 11:31:32 +08:00
4 changed files with 43 additions and 35 deletions

Binary file not shown.

BIN
pylint-3.0.3.tar.gz Normal file

Binary file not shown.

View File

@ -1,21 +1,28 @@
Name: pylint
Version: 2.6.0
Version: 3.0.3
Release: 2
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/24/4a/a07484119d23283de4d8db8176e85be3b20583eefc1cbfa8363b1414fbe2/pylint-2.6.0.tar.gz
Source0: https://github.com/pylint-dev/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-toml
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-editables
BuildRequires: python3-hatch-vcs
BuildRequires: python3-hatchling
# For tests
BuildRequires: python3-astroid >= 2.0.2
BuildRequires: python3-astroid >= 2.15.5
BuildRequires: python3-dill
BuildRequires: python3-isort
BuildRequires: python3-mccabe
BuildRequires: python3-pytest
BuildRequires: python3-pytest-runner
BuildRequires: python3-tomlkit
BuildRequires: python3-six
# For the main pylint package
@ -35,11 +42,13 @@ 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-astroid >= 2.15.5
Requires: python3-dill
Requires: python3-setuptools
Requires: python3-mccabe
Requires: python3-isort
Obsoletes: python3-pylint-gui < 1.7
Requires: python3-tomlkit
Obsoletes: python3-pylint-gui
%{?python_provide:%python_provide python3-%{name}}
%description -n python3-%{name}
@ -55,60 +64,55 @@ and much more.
Additionally, it is possible to write plugins to add your own checks.
%prep
%autosetup -n pylint-2.6.0
# Convert DOS line endings to Unix
sed -i 's/\r//g' README.rst
%autosetup -p1 -n pylint-%{version}
# Fix "similar -d args" not recognized
sed -i 's/s_opts = "hdi"/s_opts = "hd:i"/g' pylint/checkers/similar.py
%build
%py3_build
%pyproject_build
%install
%py3_install
%pyproject_install
rm -rf %{buildroot}%{python3_sitelib}/pylint/test
mkdir -pm 755 %{buildroot}%{_mandir}/man1
install -pm 644 man/*.1 %{buildroot}%{_mandir}/man1/
# Add -%%{python3_version} to the binaries and manpages for backwards compatibility
for NAME in epylint pylint pyreverse symilar; do
for NAME in pylint pyreverse symilar; do
mv %{buildroot}%{_bindir}/{$NAME,${NAME}-%{python3_version}}
ln -s ${NAME}-%{python3_version} %{buildroot}%{_bindir}/${NAME}-3
mv %{buildroot}%{_mandir}/man1/{${NAME}.1,${NAME}-%{python3_version}.1}
ln -s ${NAME}-%{python3_version}.1 %{buildroot}%{_mandir}/man1/${NAME}-3.1
ln -s ${NAME}-%{python3_version} %{buildroot}%{_bindir}/${NAME}
ln -s ${NAME}-%{python3_version}.1 %{buildroot}%{_mandir}/man1/${NAME}.1
done
%check
export PYTHONPATH=%{buildroot}%{python3_sitelib}
%{__python3} bin/pylint -rn --rcfile=pylintrc --load-plugins=pylint.extensions.docparams, pylint.extensions.mccabe pylint || :
# Skip failing tests.
%{__python3} -m pytest -v -k "not (test_baseline_benchmark_j1 or test_baseline_lots_of_files_j1 or test_baseline_lots_of_files_j10 \
or test_baseline_benchmark_check_parallel_j10 or test_by_module_statement_value or import_outside_toplevel)"
%files
%doc README.rst ChangeLog examples elisp
%license COPYING
%{_bindir}/epylint
%doc CONTRIBUTORS.txt
%license LICENSE
%{_bindir}/pylint
%{_bindir}/pylint-config
%{_bindir}/pyreverse
%{_bindir}/symilar
%{_mandir}/man1/epylint.1*
%{_mandir}/man1/pylint.1*
%{_mandir}/man1/pyreverse.1*
%{_mandir}/man1/symilar.1*
%files -n python3-%{name}
%license COPYING
%license LICENSE
%{python3_sitelib}/pylint*
# backwards compatible versioned executables and manpages:
%{_bindir}/*-3
%{_bindir}/*-%{python3_version}
%{_mandir}/man1/*-3.1*
%{_mandir}/man1/*-%{python3_version}.1*
%changelog
* Wed Jan 03 2024 wangkai <13474090681@163.com> - 3.0.3-2
- Fix "similar -d args" not recognized
* Tue Sep 19 2023 xu_ping <707078654@qq.com> - 3.0.3-1
- update to 3.0.3
* Wed Aug 9 2023 shangjiwei <cyrus_shang@163.com> - 2.17.5-1
- update to 2.17.5
* Mon May 15 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2.17.2-1
- update to 2.17.2
* Wed Apr 27 2022 caodongxia <caodongxia@h-partners.com> - 2.12.2-1
- update to 2.12.2
* Thu Oct 28 2021 xu_ping <xuping33@huawei.com> - 2.6.0-2
- add python3-six model to fix some testcase failed

4
pylint.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: pylint-dev/pylint
tag_prefix: "^v"
separator: "."