Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
2ca0feeaf7
!27 Fix "similar -d args" not recognized
From: @wk333 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2024-01-04 02:48:12 +00:00
wk333
38ff16f085 Fix "similar -d args" not recognized 2024-01-03 16:30:35 +08:00
openeuler-ci-bot
775cb6247a
!17 update to version 2.12.2
From: @wang--ge 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2022-11-01 08:56:08 +00:00
wang--ge
ed68496e87 update to version 2.12.2 2022-11-01 16:11:06 +08:00
openeuler-ci-bot
4adec5eaa1
!11 修复pylint在python3.9环境编译失败问题
Merge pull request !11 from 吴磊磊/openEuler-22.03-LTS-Next
2022-01-10 11:12:02 +00:00
wu-leilei
275f5b4df5 lgnore some test cases 2022-01-10 09:25:09 +08:00
openeuler-ci-bot
e7432d011c !8 pylint: 提取master分支补丁修复21.09测试失败的问题
From: @chenxi-mao
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-11-03 11:08:07 +00:00
cherry530
5e2c84e4fe add python3-six to fix some testcase failed
Signed-off-by: cherry530 <xuping33@huawei.com>
2021-11-03 09:38:35 +08:00
openeuler-ci-bot
8c5660ae5b !5 [sync] PR-4: update pylint package for openstack wallaby
From: @openeuler-sync-bot
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-08-16 08:00:47 +00:00
liksh
936c6f716b update to 2.6.0
(cherry picked from commit b654543ffdf77e2e553a4041648a9712229162e8)
2021-08-16 15:34:56 +08:00
3 changed files with 25 additions and 26 deletions

BIN
pylint-2.12.2.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,20 +1,22 @@
Name: pylint
Version: 2.4.4
Version: 2.12.2
Release: 2
Summary: Analyzes Python code looking for bugs and signs of poor quality
License: GPLv2+
URL: http://www.pylint.org/
Source0: %{pypi_source}
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}
@ -54,9 +56,8 @@ Additionally, it is possible to write plugins to add your own checks.
%prep
%autosetup -p1
# Convert DOS line endings to Unix
sed -i 's/\r//g' README.rst
# Fix "similar -d args" not recognized
sed -i 's/s_opts = "hdi"/s_opts = "hd:i"/g' pylint/checkers/similar.py
%build
%py3_build
@ -65,47 +66,44 @@ sed -i 's/\r//g' README.rst
%py3_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
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_by_module_statement_value or import_outside_toplevel)"
%files
%doc README.rst ChangeLog examples elisp
%license COPYING
%doc CONTRIBUTORS.txt
%license LICENSE
%{_bindir}/epylint
%{_bindir}/pylint
%{_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> - 2.12.2-2
- Fix "similar -d args" not recognized
* 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
@ -114,3 +112,4 @@ export PYTHONPATH=%{buildroot}%{python3_sitelib}
* Mon Feb 17 2020 daiqianwen <daiqianwen@huawei.com> - 2.1.1-3
- package init