!13 update to 2.12.2
From: @caodongxia Reviewed-by: @zhuchunyi Signed-off-by: @zhuchunyi
This commit is contained in:
commit
7e14f9a884
BIN
pylint-2.12.2.tar.gz
Normal file
BIN
pylint-2.12.2.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
39
pylint.spec
39
pylint.spec
@ -1,10 +1,10 @@
|
|||||||
Name: pylint
|
Name: pylint
|
||||||
Version: 2.6.0
|
Version: 2.12.2
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: Analyzes Python code looking for bugs and signs of poor quality
|
Summary: Analyzes Python code looking for bugs and signs of poor quality
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://www.pylint.org/
|
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
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
@ -55,10 +55,7 @@ and much more.
|
|||||||
Additionally, it is possible to write plugins to add your own checks.
|
Additionally, it is possible to write plugins to add your own checks.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n pylint-2.6.0
|
%autosetup -p1
|
||||||
|
|
||||||
# Convert DOS line endings to Unix
|
|
||||||
sed -i 's/\r//g' README.rst
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -67,48 +64,32 @@ sed -i 's/\r//g' README.rst
|
|||||||
%py3_install
|
%py3_install
|
||||||
rm -rf %{buildroot}%{python3_sitelib}/pylint/test
|
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
|
# Add -%%{python3_version} to the binaries and manpages for backwards compatibility
|
||||||
for NAME in epylint pylint pyreverse symilar; do
|
for NAME in epylint pylint pyreverse symilar; do
|
||||||
mv %{buildroot}%{_bindir}/{$NAME,${NAME}-%{python3_version}}
|
mv %{buildroot}%{_bindir}/{$NAME,${NAME}-%{python3_version}}
|
||||||
ln -s ${NAME}-%{python3_version} %{buildroot}%{_bindir}/${NAME}-3
|
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} %{buildroot}%{_bindir}/${NAME}
|
||||||
ln -s ${NAME}-%{python3_version}.1 %{buildroot}%{_mandir}/man1/${NAME}.1
|
|
||||||
done
|
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
|
%files
|
||||||
%doc README.rst ChangeLog examples elisp
|
%doc CONTRIBUTORS.txt
|
||||||
%license COPYING
|
%license LICENSE
|
||||||
%{_bindir}/epylint
|
%{_bindir}/epylint
|
||||||
%{_bindir}/pylint
|
%{_bindir}/pylint
|
||||||
%{_bindir}/pyreverse
|
%{_bindir}/pyreverse
|
||||||
%{_bindir}/symilar
|
%{_bindir}/symilar
|
||||||
%{_mandir}/man1/epylint.1*
|
|
||||||
%{_mandir}/man1/pylint.1*
|
|
||||||
%{_mandir}/man1/pyreverse.1*
|
|
||||||
%{_mandir}/man1/symilar.1*
|
|
||||||
|
|
||||||
%files -n python3-%{name}
|
%files -n python3-%{name}
|
||||||
%license COPYING
|
%license LICENSE
|
||||||
%{python3_sitelib}/pylint*
|
%{python3_sitelib}/pylint*
|
||||||
# backwards compatible versioned executables and manpages:
|
# backwards compatible versioned executables and manpages:
|
||||||
%{_bindir}/*-3
|
%{_bindir}/*-3
|
||||||
%{_bindir}/*-%{python3_version}
|
%{_bindir}/*-%{python3_version}
|
||||||
%{_mandir}/man1/*-3.1*
|
|
||||||
%{_mandir}/man1/*-%{python3_version}.1*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Thu Oct 28 2021 xu_ping <xuping33@huawei.com> - 2.6.0-2
|
||||||
- add python3-six model to fix some testcase failed
|
- add python3-six model to fix some testcase failed
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user