!17 update to version 2.12.2

From: @wang--ge 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2022-11-01 08:56:08 +00:00 committed by Gitee
commit 775cb6247a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 10 additions and 30 deletions

Binary file not shown.

BIN
pylint-2.12.2.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,10 +1,10 @@
Name: pylint
Version: 2.6.0
Release: 3
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/24/4a/a07484119d23283de4d8db8176e85be3b20583eefc1cbfa8363b1414fbe2/pylint-2.6.0.tar.gz
Source0: https://files.pythonhosted.org/packages/9d/6b/732db4470fb03760af3aada21189c95676c0ec514c3b044b42929e018224/pylint-2.12.2.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
@ -55,10 +55,7 @@ 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
%build
%py3_build
@ -67,49 +64,32 @@ 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_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 \
or test_can_list_directories_without_dunder_init or missing_kwoa_py3 or unused_typing_imports or star_needs_assignment_target_py35)"
%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
* 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